Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help writing this program in Java..... Thanks! Write a program to drill elementary school students on addition, subtraction, multiplication or division. The program

I need help writing this program in Java..... Thanks!

Write a program to drill elementary school students on addition, subtraction, multiplication or division. The program must allow students to select an operation from a menu, practice 5 randomly generated problems of that type using whole numbers, and keep score of the percentage they get correct. The program must use switch, random number generation and loops.

Sample output:

Please choose an operation to practice:

1.Addition

2.Subtraction

3.Multiplication

4.Division

5.Quit

Enter the number of your choice: 4

2 x 8 = 16

Correct.

1 x 5 = 6

Incorrect. 1 x 5 = 5

6 x 4 = 24

Correct.

4 x 3 = 12

Correct.

7 x 8 = 48

Incorrect. 7 x 8 = 56

You got 60% of the problems correct.

Please choose an operation to practice:

1.Addition

2.Subtraction

3.Multiplication

4.Division

5.Quit

Enter the number of your choice: 5

Goodbye.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago