Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program which repeatedly reads numbers until the user enters done. Once done is entered, print out the total, count, and average of the

Write a program which repeatedly reads numbers until the user enters "done". Once "done" is entered, print out the total, count, and average of the numbers.
Enter a number: 4
Enter a number: 5
Enter a number: 7
Enter a number done
Exercise 2: Write another program that prompts for a list of numbers as above and at the end prints out both the maximum and minimum of the numbers instead of the average.
Enter a number: 4
Enter a number: 5
Enter a number 7
Enter a number done
Maximum =7.0
Minimum 4.0

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

More Books

Students also viewed these Databases questions

Question

How does selection differ from recruitment ?

Answered: 1 week ago

Question

What does Processing of an OLAP Cube accomplish?

Answered: 1 week ago