Hey guys and girls.
Im working on a program at the moment, the aim of which is to determine a users age level (by year at school), and give them a set of randomly generated maths problems based on their age (eg- 1st grade only has to deal with numbers between 1 and 10, and plus and minuses. While 7th grade has to deal with numbers between -999 and 999 in addition subtraction multiplacation and division).
Iv got the basic code of the program working (via the use of several switches), but have been stumped on one of the final parts of the task. I have to add a help command. So instead of inputting the correct awnser the user imputs the letter 'h' and gets a hint towards the answer.
Example -
100 + 99 = 'h' (the correct answer being 199)
##9 (this is what i want the program to output after h has been imputted)
h
#99 (and if h is inputted again another number is revealed)
h
199 (h can be continously entered until the correct awnser is revealed)
From what iv gathered I have to convert the intiger i have set up for the answer into a string, but from there im stumped, iv looked up several 'guessing' games where blanked out letters are unblocked as the correct letter is imputted but im unable to find anything that will continuely unblock numbers on the fashion I need unforchantly.
Any help on this will be greatly appriciated.