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

Question 1  Question 1 1. Write a program using a for loop that

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 (num) between 1 and 10. If the value is 10, square num1. If the value is 9, read a new value into numl. If inputed value is not (9 0r 10) multiply numl by 99 and print out the result. Implement your code using if statements only. (30 point)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!