Question: Introduction To Java Objectives: To generate random numbers, and use them in our Java program. To use information provided by the user (via the keyboard)

 Introduction To Java Objectives: To generate random numbers, and use them

Introduction To Java Objectives: To generate random numbers, and use them in our Java program. To use information provided by the user (via the keyboard) in our program. Description: Your task is to create a simple Maths Tutor program. First the user must choose if they want an Addition or Subtraction question (use A or S). This program will choose two random numbers (between 1 and 10 inclusive) and display a problem for the user to solve, e.g. 7+2 = The user can then enter the answer to the problem. If the user was correct, the program must display a nice message. If the user was wrong, program must tell them and display the correct answer. For subtraction questions, the smaller number must always be subtracted from the larger number (so that the answer can never be a negative number). Good coding practices are expected. Sample Output: Sample Output: MATHS TUTOR MATHS TUTOR What do you want to practice? (A)ddition or (S)ubtraction. A What do you want to practice? (A)ddition or (S)ubtraction. S 8+9 = 17 5-1 = 3 Correct! Wrong! The correct answer is 4

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!