Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and the display the following data: • The lowest number in the array • The highest number in the array • The total of the numbers in the array • The average of the numbers in the array
Iceman10284
0
Newbie Poster
Recommended Answers
Jump to PostYou need to post an attempted effort before anyone will help you with homework.
Jump to Postjust to help you,
- declare a counter = 0,
- array of numbers = [],
- while counter < 20
- take input from users
- array.append(input)
- print the array
- use min function to find lowest number in array
- use max function to find greatest number …
Jump to PostI'm new too (couple months), but you have to write code, not forever think about what might work.
Try something, get it to work, then try the next thing.
For instance write the code to ask the user to input a list of 20 integers. Make that work, then try …
All 11 Replies
hughesadam_87
54
Junior Poster
Iceman10284
0
Newbie Poster
peterparker
0
Light Poster
Iceman10284
0
Newbie Poster
chophouse
25
Newbie Poster
peterparker
0
Light Poster
ScottieF
18
Newbie Poster
honybizkit
0
Newbie Poster
honybizkit
0
Newbie Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
booicu
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.