Question: 1. Exercise 1: (25 points) Write a C Program that will ask the user to enter 5 numbers in an array. Then this code will

 1. Exercise 1: (25 points) Write a C Program that will
ask the user to enter 5 numbers in an array. Then this
code will arrange and display the numbers from smallest to largest. Er90
20 st: T140 5 6 12 20 Insert a copy of the

1. Exercise 1: (25 points) Write a C Program that will ask the user to enter 5 numbers in an array. Then this code will arrange and display the numbers from smallest to largest. Er90 20 st: T140 5 6 12 20 Insert a copy of the code (include comments). (20 pts) Take a sereenshot for the program output with your name in the output screen. (5 pts) Exercise 2: (25 points) Write a C prograi hat find the average of an array through one "user-defined" function. The function is called inside the main function. In the main function, the user will enter 10 integers into an array then call the user-defined function to calculate average, and later the array values will be displayed through the main. Define variable SIZE of the array to be 10 Enter 10 Numbers: XXX The average is: XXX Insert a copy of the code (include comments). (20 pts) Take a screenshot for the program output with your name in the output screen. (5 pts) Exercise 3: (25 points) Write a C program that creates a new file "Grades.txt". In this program you should ask the user to enter the grades of a class with 10 students. Those grades will be saved in the file. -Insert a copy of the code (include comments). (20 pts) - Take a screenshot for the program output with your name in the output screen. (5 pts) Exercise 4: (25 points/5 points each) Select T for True or F for False In an array declared as A[n], the index goes from A[1] to A[n]. TIF 2. Given: int x=5; int* p=&x; int ** z=&p: Then *z will be 5. TIF Given that float i=3; Then int *x=&i is valid. TIF Given array declaration is correct TIF int myPoints([4] = {{1,2,3,5}, {4,5,6,7), (7. 8,9,10} }; To initialize all elements in an array to zero, all you need to do is to initialize the first element to zero T/F Page 1 of 5 Copyright American College of the Middle East.2020

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!