Answer to Question #37231 in Java | JSP | JSF for Natalie

Question #37231
So I have a personality programming assignment. I have to convert a string of answers like this:
Betty Boop
BABAAAABAAAAAAABAAAABBAAAAAABAAAABABAABAAABABABAABAAAAAABAAAAAABAAAAAA
into Betty Boop: [90, 15, 10, 10] = ISTJ < that means their personality type.
I have this line of code to convert the number of B answers into a percentage:

int percentageofB = data * 100 / totQ; and I keep getting an error saying:
operator / cannot be applied to int,int[]
Idk what's wrong...
0
Expert's answer

Answer in progress...

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS