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.
I have a java
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:
Sample output:
Please choose an operation to practice:
- Addition
- Subtraction
- Multiplication
- Division
- 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:
- Addition
- Subtraction
- Multiplication
- Division
- Quit
Enter the number of your choice: 5
Goodbye.
![](/static/compass_v2/shared-icons/check-mark.png)
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)