Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python. This program builds on the completed programs from Program 1 and Program 2 . Add these additional features to your completed Chapter 4

In Python. This program builds on the completed programs from Program 1 and Program 2. Add these additional features to your completed Chapter 4 Part 2 Program 2.
Calculate and display the:
The number of integers entered.
The total (sum) of the integers
The average of the integers.
Be sure to follow the Program Submission Guidelines document and to use only concepts that we've covered in class so far (including the .isdigit() method above). Do not include min(), max(), user defined functions, lists, etc. or you will receive a zero for the assignment.
Ex: Here is an example of the input and output (the input below is italicized for clarification only -- not to be incorporated into the program)
Enter a positive integer, 0 to stop: 10
Enter a positive integer, 0 to stop: 20
Enter a positive integer, 0 to stop: 30
Enter a positive integer, 0 to stop: 40
Enter a positive integer, 0 to stop: 50
Enter a positive integer, 0 to stop: q
That is not a positive integer
Enter a positive integer, 0 to stop: 0
The largest integer is: 50
The smallest integer is: 10
The number of integers 25 or over is: 3
The number of integers less than 25 is: 2
The number of integers entered is: 5
The sum of the integers entered is: 150
The average of the integers entered is: 30.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_2

Step: 3

blur-text-image_3

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

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions