Question 2 (15%) Write A Complete Program That Prompts The User To Enter A Series Of Integers Terminated By A 0. The Program Should Then Print Positive Integer As Follows: I) The Number Of Integers Entered (not Including The 0) The Average Of The Integers

匿名用户 最后更新于 2021-12-01 19:36 计算机类Computing

Question 2 (15%) Write a complete program that prompts the user to enter a series of integers terminated by a 0. The program should then print positive integer as follows: i) The number of integers entered (not including the 0) The average of the integers (with 1 decimal point of precision) The maximum integer iv) The minimum integer The sample output of this program is shown in Figure 13. Enter a series of integers terminated by a 0: 85 95 75 67 0 You have entered 4 integers. The average is 80.5 The maximum is 95 The minimum is 67 Figure 13 -last page (14 pages) 14

已邀请: