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...
Comments
Leave a comment