Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Java language please! No array needed! Please answer within 12 hours ! Will give great review! In this assignment, you will create a Java program.

Java language please! No array needed! Please answer within 12 hours ! Will give great review!
image text in transcribed
In this assignment, you will create a Java program. The program prompts users for numbers between 0 and 100, and calculates the minimum, maximum, and average of the numbers. I. General Requirements 1) The program will keep prompting user to input a valid integer (0-100) until a -1 is input, e.g, "Please input an integer 0-100 (-1 to stop)." 2) If an invalid integer is given, the program will print an error message "XXX is not a valid input." where XXX is the given integer, and prompt again. 3) After a -1 is input, if no valid number was ever input, i.e., the first input is -1, the program prints "Good bye!" and exits. Otherwise, the program prints the minimum, maximum, and the average of the integers, and exits. 4) You may use any systems or tools to create and run your program. 5) You must follow the guidelines in the programming guideline document. 6) A sample run will look like this: Please input an integer 0-100 (-1 to stop): 28 Please input an integer 0-100 (-1 to stop): 200 200 is not a valid input. Please input an integer 0-100 (-1 to stop): 10 Please input an integer 0-180 (-1 to stop): -1 min is 10 max is 20 average is 15

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeffrey A. Hoffer Fred R. McFadden

4th Edition

0805360476, 978-0805360479

More Books

Students also viewed these Databases questions

Question

=+ Do you think a country can overinvest in human capital? Explain.

Answered: 1 week ago

Question

Brief the importance of span of control and its concepts.

Answered: 1 week ago

Question

What is meant by decentralisation?

Answered: 1 week ago