Answered step by step
Verified Expert Solution
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 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
declare variable for num
read num from user
declare variables for min & max, set them to num
while num not equal to
use if statements to checkupdate 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:
Source code java file no class file is needed
DONT FORGET TO COMMENT YOUR CODE
At least provide your name and a simple description of your
program as the header comment
Style of your code
Source code formatting and organization: indentation, blank lines,
Choice of variable identifier names should be descriptive and
meaningful
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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started