i have to write a program that collect random caps with leters on them. one wins when all 5 caps r found. each cap has a ratio of being found. B-20% A-20% S-40% I-19% C-1%....i used a math.random and it had a range of 1-100 i assigned the first 20 to be B the next 20 to be A the next 40 to be C and so on. i need to write a class that recieves the numbers and assigns them to the letter. i am a bit confused on making classes. i made assignLetter class. i did if statements and a return statment and i keep getting this incompatiabel error with the return statement...dont know why. also how would u change and int to a char becuse i believe the letters are supposed to be converted to char not
string(i did string) so if anyone could help i would greatly appreciate it