Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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

Mastering Big Data Interview 751 Comprehensive Questions And Expert Answers

Authors: Mr Bhanu Pratap Mahato

1st Edition

B0CLNT3NVD, 979-8865047216

More Books

Students also viewed these Databases questions

Question

3. What is the language of the regular expression (**1)*

Answered: 1 week ago

Question

b. Why were these values considered important?

Answered: 1 week ago