Question: No Coding!! Write code structure for java Functions must include menuChoice(), addition(), subtraction(), multiplica- tion(), division(). Keep in mind you may write two separate addition

No Coding!!

Write code structure for java

Functions must include menuChoice(), addition(), subtraction(), multiplica- tion(), division(). Keep in mind you may write two separate addition functions for the two different addition menu options.

The menu should include the following options for the user to choose from:

1. Addition with numbers 1-10 2. Addition with numbers 1-100 3. Subtraction with numbers 1-10

4. Subtraction with numbers 1-100

5. Multiplication with numbers 1-10

6. Exit the program

Each function should use random numbers in the range specified by the menu option, but no problem should ever result in a negative answer. You are to make sure the user inputs a valid menu option, but you may assume they will always enter integers.

Your program must also keep track of the performance of the user in each category (addition, subtraction, multiplication, division). A 2D array should keep track of the correct responses and total questions asked in each category. This should be done inside of your functions passing by reference.

The exit menu options should print the statistics for the performance of the user in the form. Addition: #right/ #asked - #% correct.

Sample Output

Arithmetic Calculator: 1. 5 addition problems with number between 1 and 10 2. 5 addition problems with number between 1 and 100 3. 5 subtraction problems with number between 1 and 10 4. 5 subtraction problems with number between 1 and 100 5. 5 multiplication problems with number between 1 and 10 6. Exit Choose a menu option:1 10+1=11 2+7=9 9+10=19 10+6=16 5+8=13 Arithmetic Calculator: 1. 5 addition problems with number between 1 and 10 2. 5 addition problems with number between 1 and 100 3. 5 subtraction problems with number between 1 and 10 4. 5 subtraction problems with number between 1 and 100 5. 5 multiplication problems with number between 1 and 10 6. Exit Choose a menu option:9 Arithmetic Calculator: 1. 5 addition problems with number between 1 and 10 2. 5 addition problems with number between 1 and 100 3. 5 subtraction problems with number between 1 and 10 4. 5 subtraction problems with number between 1 and 100 5. 5 multiplication problems with number between 1 and 10 6. Exit Choose a menu option:3 10-8=2 9-9=0 7-3=1 7-3=1 6-6=0 Arithmetic Calculator: 

3

1. 5 addition problems with number between 1 and 10 2. 5 addition problems with number between 1 and 100 3. 5 subtraction problems with number between 1 and 10 4. 5 subtraction problems with number between 1 and 100 5. 5 multiplication problems with number between 1 and 10 6. Exit Choose a menu option:1 5+6=11 3+2=5 7+2=9 5+7=1 5+5=10 Arithmetic Calculator: 1. 5 addition problems with number between 1 and 10 2. 5 addition problems with number between 1 and 100 3. 5 subtraction problems with number between 1 and 10 4. 5 subtraction problems with number between 1 and 100 5. 5 multiplication problems with number between 1 and 10 6. Exit Choose a menu option:6 Addition: 9/10=90.0% Subtraction: 3/5=60.0% Multiplication: 0/0=0% 

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!