Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a program that reads a list of integers from the keyboard and creates the

ID: 3626711 • Letter: W

Question

Write a program that reads a list of integers from the keyboard and creates the following information: a. Finds and prints the sum and the average of the integers. b. Finds and prints the largest and the smallest integer.

am using pico. use EOF plz. and don't assume that there is no negative numbers. and i have no idea how to find the biggest and lowest answer. would be better if they are separated into different functions. please explain by detail . also what (+=) meaning is.

am new to this kind of stuff , use WHILE for loops . don't use anything else plz , i need to learn this stuff step by step. thank you

here is my code so far

#include <stdio.h>

int main (void)

int x;
int sum;


/* i think integer would be this */

while ( scanf("%d", &x != EOF));

/* i think sum would be ? */
sum = idk ;/


thank you

Explanation / Answer

Hello Dear you wrote that read number from the keyboard then why you need EOF . Second thing is you didn't mentioned that either we should use arrays or some other mechanism. I am providing you the answer with the help of arrays but if you think that it should not be done like this, you should first inform me about your required method so that i could change it accordingly, Thanks. PLZ Rate... #include #include void find_max(int [],int size); void find_min(int [],int size); void main() { int x[10]; //array of 10 integers int sum=0; float avg; printf("Enter 10 Numbers "); int i=0; while(i