Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to read list of 5 numbers into an integer array, compute the average and print out all numbers less than average. Modify

image text in transcribedWrite a program to read list of 5 numbers into an integer array, compute the average and print out all numbers less than average.
Modify the following program to input 5 numbers and print out all numbers less than avcrage scores.c * Synopsis - Accepts input of 5 integers from the keyboard into an array of ints. * Objective Illustrates basic array definition and *access of array elements. Include Files * #include int main( void) */ int test scores[10]; /* Note int i, avg, total -0; printf( "Please enter the 5 test scores now.In" ); for ( i = 0; i ", it l ); /* Note 3 */ scanf( "%d", &test-scores[i] ); /* Note 4 */ for (i 0;i

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

Students also viewed these Databases questions

Question

Are robots going to displace all workers? Explain your answer.

Answered: 1 week ago