Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with both questions. C language is preferred. 1. Write a program using a for loop that read 10 numbers form the keyboard and

Need help with both questions. C language is preferred. image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

Understand why customers are loyal to a particular service firm.

Answered: 1 week ago