Question: please help me with a java code for this Write a code that asks the user to keep entering numbers. When the user enters 0

please help me with a java code for this
Write a code that asks the user to keep entering numbers. When the user enters 0 the
program should show the count of numbers entered, the total, average, highest and
lowest of the numbers.
YOU MAY USE THE FOLLOWING DESCRIPTION FOR YOUR
LOOP CODE
// declare variables for total & count, set them to 0
// declare variable for num
// read num from user
// declare variables for min & max, set them to num
// while (num not equal to 0)
// use if statements to check/update new min and max
// add num into total
// increase count
// read num again
////
// calculate average and print all stats results
Please note AVERAGE should display as a decimal number!
What to submit:
1. Source code .java file (no .class file is needed)(75%)
2. DONT FORGET TO COMMENT YOUR CODE (5%)
- At least provide your name and a simple description of your
program as the header comment
3. Style of your code (5%)
- Source code formatting and organization: indentation, blank lines, ...
- Choice of variable identifier names (should be descriptive and
meaningful)
4. Screen shots to show how well your program works (you may need
to include all the test cases that indicate your program works for all
different scenarios)(10%)

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!