Computers and Technology

Write a python program to do the following:

(a) ask the user to enter as many integers from 1 to 10 as he/she wants. store the integers entered by the user in a list. every time after the user has entered an integer, use a yes/no type question to ask whether he/she wants to enter another one.

(b) display the list.

(c) calculate and display the average of the integers in the list.

(d) if the average is higher than 7, subtract 1 from every number in the list. display the modified list.

the following is an example:

enter an integer from 1 to 10: 5

enter another integer? [y/n] y

enter an integer from 1 to 10: 8

enter another integer? [y/n] y

enter an integer from 1 to 10: 9

enter another integer? [y/n] y

enter an integer from 1 to 10: 7

enter another integer? [y/n] y

enter an integer from 1 to 10: 8

enter another integer? [y/n] n

number list: [5, 8, 9, 7, 8]

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:10, 17795
Look at the far left lane in the picture. explain what the red car is doing and what it needs to do to travel safely.
Answers: 2
image
Computers and Technology, 22.06.2019 18:40, penelopymorales24
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
image
Computers and Technology, 22.06.2019 23:50, Crull5999
List a few alternative options and input and output over the standerd keyboard and monitor. explain their functioning in details.
Answers: 2
image
Computers and Technology, 23.06.2019 19:00, nayo2006
Acompany is hiring professionals for web designing. the firm is small with few resources. they want employees who possess problem-solving skills and can independently carry out responsibilities. which kind of employee should they select?
Answers: 2
Do you know the correct answer?
Write a python program to do the following:

(a) ask the user to enter as many integers...

Questions in other subjects: