IT5 OOP Prelim Lab Exam
Computers are playing an increasing role in education. Write a program that will help an elementary school student learn multiplication. Use the Next method from an object of type Random to produce two positive one-digit integers. It should display a question, such as
How much is 6 times 7?
The student should then type the answer into a TextBox. Your program should check the student’sanswer. If it is correct, display "Very good!" in a Label, then ask another multiplication question. If the answer is incorrect, display "No. Please try again." in the same Label, then let the student try the same question again until the student finally gets it right. A separate method should be used to generate each new question. This method should be called once when the program begins execution and then each time the user answers a question correctly.
0 comments:
Post a Comment