Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1. Based on the Figure 2.0, answer question below: 6 4 2 5 3 1 Figure 2.0: Scores for six subjects a) Define a two-dimensional
1. Based on the Figure 2.0, answer question below: 6 4 2 5 3 1 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 s * Marks for subject 2 Is 97 Marks for subject 3 is 79 Maris for subject 4 is 86 Marks for subjects is 4 Total marks for the student is 444 Average marks for the student is 68.6 // This program stores, in an array, the marks scored by 1) a students for 5 subjects. The program display marks for each subject marks, total marks and average marks for the student. #include
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started