Question: number 2 33558 1. Write a program using a for loop that read 10 numbers form the keyboard and find their sum. Write a function

number 2
33558 1. Write a program using a for loop that read 10 numbers form the keyboard and find their sum. Write a function called average which returns the average base on the sum of the 10 numbers. (30 points) 2. Write a function called test_number which reads a number (num1) between 1 and 10. If the value is 10, square numl. If the value is 9, read a new value into numl. If inputed value is no print out the result. Implement point) t (9 Or 10) multiply numl by 99 and your code using if statements only. (30 3. What will be printed for the following program segment given x 4, y 0 and z = 2: (15 points)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
