Question: solve this // This program stores, in an array, the marks scored by // a students for 5 subjects. The program display marks for each

solve this
solve this // This program stores, in an array, the marks scored
by // a students for 5 subjects. The program display marks for
each subject // marks, total marks and average marks for the student

// This program stores, in an array, the marks scored by // a students for 5 subjects. The program display marks for each subject // marks, total marks and average marks for the student #include using namespace std; int main() double total; // total marks double average; // student's average marks // ) Define array marks with elements type double to store marks for five subjects as 88, 97, 79, 86, 94. total - 0; // Display the marks for each subject and total and average marks. return 0; Figure 2.1: A program to display marks for five subjects 1. Based on the Figure 2.0, answer question below: 6 5 21 Figure 2.0: Scores for six subjects a) Define a two-dimensional array, scores to store the data as shown in Figure 2. (3 marks) b) Write a statement to store the value 17 in the last column of the last row in the array, scores. (2 marks) 2. Complete the program as shown in Figure 2.1, to get output as follows: (10 marks) Output: Marks for subject 1 is 86 Marks for subject 2 is 97 Marks for subject 3 is 79 Marks for subject 4 is 86 Marks for subject 5 is 94 Total marks for the student is 444 Average marks for the student is 88.8 1. Based on the Figure 2.0 answer question below EL AL Figure 2. Scare for sesajes Define two-dimensional y come we the data wasiwa Write a statement to store the value 17 in the last one the latte 2. Complete the program as shown in Figure 21. og Opustowe Output wordt ow or act www for at Tyre is SLUIT BITG12333 SULIT This programs in an amay, the marks owned by sedents for subjects. The program display marks for each other makstaks and were marks for the student include contra ning namespace de intment double total / total marks dohle average 1 students were Define array make it mean type debe ter more line sa 97, 79, M. total - Of Display the marks for each subject and total and were maria En 03 Pe 2.1: A program to duplas arts for the who

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!