void generateProblem() { String t= aStudy.name + " is interested in the proportion of adults that " + aStudy.obj + ". " + aStudy.genderC + " sampled " + aStudy.n + " people and found " + aStudy.y + " people " + aStudy.obj + ". " + aStudy.name + " claims that the population proportion that " + aStudy.obj2 + " is " + aStudy.relation + " " + int(100*aStudy.p) + "%. Do you agree or disagree with this claim?"; drawStrings(t, 30, 44, 25); }