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)

  1. Explain to the user
  2. User enters 5 integers (they might enter strings or decimals or.... entry errors must be handled well....)
  3. 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?
  4. Allow user to repeat until user enters the word "quit"
  5. 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 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!