
Program type C
Write code that will fill the array a (declared below) with numbers typed in at the keyboard. Each line refers to an individual student’s quiz grades. So, there are 4 students with 3 grades that can entered through the keyboard. (The grades are out of 10)
int a[4][3];
For this assignment, create a function that calculates the average of a 1-d array and returns that average. Call this function multiple times to find averages across all rows and columns.
Store each student’s quiz grades in an array called st_ave.
Also store average of each quiz across all 4 students in another array called quiz_ave.
Print all the information in a format that resembles the gray boxes below.
![student 1
10
10
10
10.0
st_ave[0]
student 2
2
1
1.0
st_ave[1]
student 3
8
9.
7.7
st_ave[2]
student 4
8
4
10
7.3
st_ave[3]
quiz_ave
7.0
5.0
7.5
The image is an example of quiz_ave and st_ave across the entire array.
quiz_ave[0]
quiz_ave[1]
quiz_ave[2]](https://content.bartleby.com/qna-images/question/f1d83782-4cfc-4984-9b8a-d1f4073f692c/945e3c8a-d7cd-4b11-85b5-0543b22dcb2a/1wyecv_thumbnail.png)

Trending nowThis is a popular solution!
Step by stepSolved in 2 steps with 1 images

- write a c++ program: Create an array with 11 integers, which will be randomly selected from the range of 0 to 100. Print the items of the array on screen as one line. Develop a function that takes the array as argument and perform these operations: -Find the minimum of array items and replace (swap) with first item of the array. -Find the maximum of array items and replace (swap) with last item of the array. -Find the average of array’s items and assign it to middle location of the array. The average of numbers should be calculated as an integer. (hint: static_cast<int>(float))arrow_forward1. declare an array to hold 12 floating point numbers: 2. Now that we have our array, set all 12 numbers to -100. 3. Change all even positions (all lines with an even index: 0,2,4, etc) to 96.8Use a function call to print the array.arrow_forwardusing chapters 1 to 7 from the book c how to program 8 editionarrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





