You have been hired by a school management to design a software program which will act as a Math Tutor for the students. The following are basic guidelines as to how the program should function.
“Two unique random numbers in the range 0 to 99 are to be generated each time the program is run. The software should compute the sum of those two numbers, display the numbers on the screen and prompt the user for an answer. When answered correctly, a CONGRATULATIONS message should be displayed, If answered incorrectly, the user must be given two more chances to answer Else the answer should be displayed with some meaningful comments. ”
In addition to this, the students must be given the option of entering ‘y/n’ to continue using the program or to exit the program. When the user enters ‘y’, a new set of random numbers must be generated and the entire program should repeat itself.

A fairly simple homework assignment. Hope you enjoy learning how to code it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.