# Answer to Question #50404 in C++ for elie

Question #50404

Write a program that can enter marks for number of students and calculate their Total and class

average with the following format

The inputs:

ID (As 1 dimension array of Integers), First (As1 dimension array of Doubles), Second (As 1 dimension

array of Doubles), Final (As 1 dimension array of Doubles), Total (As 1 dimension array of Doubles), Grad

(As 1 dimension array of Chars)

The Grades are: A for 90’s, B for 80’s, C for 70’s, D for 60’s and F for less than 60.

Example of the output:

St_Nm ID First Second Final Total Grade

1 20071156 15.5 16.5 30.1 62.1 D

2 20071154 15.0 16.5 30.1 62.6 D

Class average for 10 students is: 72.5

average with the following format

The inputs:

ID (As 1 dimension array of Integers), First (As1 dimension array of Doubles), Second (As 1 dimension

array of Doubles), Final (As 1 dimension array of Doubles), Total (As 1 dimension array of Doubles), Grad

(As 1 dimension array of Chars)

The Grades are: A for 90’s, B for 80’s, C for 70’s, D for 60’s and F for less than 60.

Example of the output:

St_Nm ID First Second Final Total Grade

1 20071156 15.5 16.5 30.1 62.1 D

2 20071154 15.0 16.5 30.1 62.6 D

Class average for 10 students is: 72.5

Expert's answer

## Comments

## Leave a comment