Question: (Java) Create a simple 5 number game that verifies input (repeat until correct input is entered) Error handling (correct range, out of range, not number)

(Java)

Create a simple 5 number game that verifies input (repeat until correct input is entered)

Error handling (correct range, out of range, not number)

  1. Explain to the user
  2. A 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?
    • 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 a user enters the word "quit"

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!