Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For this program, you are going to ask the user how many integers they want to input, store them, output the list, and output the

For this program, you are going to ask the user how many integers they want to input, store them, output the list, and output the average of the list.
Details:
The program should contain a function for prompting the user for how many integers they want to store
The number of integers stored must be at least 1
If the user enters bad data, they should be told it's bad and be allowed to enter another integer
The program should contain another function that prompts the user for the integers they want to store
The numbers entered by the user must be integers
This function should have an input parameter with a default value. The default value should be used for each integer request except the last one which should override the parameter with something like "Enter your last integer: "

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions