My students are working on a program where at the end they are showing the percent of problems correct. For some reason when they try to print “0 %” or " 100%" it works fine but any other number beside 0,100 will not show the % sign. I am guessing it has something to do with the computer thinking it is mod. I would have thought that being inside quotes it would just read it as a string. I tried to attach some pics here but I guess that is not supported or I just don’t know how to do it.
Make sure that the element is long enough to hold all of the characters. Try setting it to 320.
While we’re on the subject, it might be a lot faster to just do this instead of using
if else to show the score:
setText("loserPercentage", ((10-numberWrong)*100) + "%");