Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help to solve and focus in comment 2. Write a program to keep track of the marks for 5 subjects taken by 20 students.

please help to solve and focus in comment

image text in transcribed
2. Write a program to keep track of the marks for 5 subjects taken by 20 students. The program will also calculate the total marks for all the subjects of each student. The program should use a two dimensional array named studMarks that holds the marks for each subject taken by the students and a one dimensional array named totMarks that holds the total marks for all the subjects of each student. The program contains the following functions: a) readData: This function receives the studMarks array. It reads marks for each subject of the students and stored them in the studMarks array. b) calTotMarks: This function receives a row of the studMarks array and the totMarks array. It calculates the total marks for all the subjects of a student and store the total marks in the totMarks array. C) display: This function displays the marks for each subject of the students and the total marks for all the subjects of each student

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Programming questions