Question
Problem Description Create the flowchart and program for an arithmetic quiz. The program will first ask the user which of four operations they want to
Problem Description
Create the flowchart and program for an arithmetic quiz. The program will first ask the user which of four operations they want to test (addition, subtraction, multiplication, or division). The program will then create a quiz with the indicated operation and two randomized, single digit, non-negative integers (for instance, if the user indicates multiplication, the quiz will be What is x1*x2? Where x1 and x2 are two randomized numbers). If the user enters a correct response to the question, the program congratulates the user. Otherwise, the program will say the answer is wrong and display the correct answer.
Assignment Requirements
Follow the following problem solving steps to aid in completing the assignment:
Draw a simple flowchart diagram showing the process flow of the program. You may use any software that is capable of drawing flowchart diagrams like draw.io or MS PowerPoint.
I strongly recommend creating the pseudo-code for this assignment before beginning coding.
You may use either Scanner or JOptionPane to accept user input and display output.
You will need to provide screenshots of 5 test runs (+, -, *, /, and incorrect answer)
Do not forget your program header
Run and create screenshots of the following test cases
| Operation | User Response |
Test case 1 | + | Correct |
Test case 2 | - | Correct |
Test case 3 | * | Correct |
Test case 4 | / | Correct |
Test case 5 | Any | Wrong |
Example Runs of the Program
Output: What operation? (1 for addition, 2 for subtraction, 3 for multiplication, 4 for division)
Input: 2
Output: What is 8-4?
Input: 4
Output: Correct! Good job! Yay! You did it!
Output: What operation? (1 for addition, 2 for subtraction, 3 for multiplication, 4 for division)
Input: 3
Output: What is 3*9?
Input: 15
Output: Incorrect, the answer is 27.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started