Question: (Java) Create a simple 5 number game that verifies input (repeat until correct input is entered) Explain to the user User enters 5 integers (they
(Java)
Create a simple 5 number game that verifies input (repeat until correct input is entered)
- Explain to the user
- User enters 5 integers (they might enter strings or decimals or.... entry errors must be handled well....)
- Calculate:
- If each number divides by zero? Error handling (correct range, out of range, not number)
- What is the average?
- Which numbers are odd?
- Which numbers are even?
- What is the sum of all numbers entered?
- Allow user to repeat until user enters the word "quit"
- we could use the User Defined exceptions?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
