Create a program that reads the data into an array or vector. . Run the program with 3 grades per student using the sample data below. Calculate averages and a letter grade A= 90 to 100, B= 80 to 89, C= 70 to 79, D=60 to69, F= anything 59 or less. Student Name Score 1 Score 2 Score 3 Average Mary Brown 100 90 90 ? George Smith 90 30 50 ? Dale Barnes 80 78 82 ? Sally Dolittle 70 65 80 ? Conrad Bailer 60 58 71 ? You should get the following results: Mary Brown has an average of 93.33 which gives the letter grade of A George Smith has an average of 56.67 which gives the letter grade of F Dale Barnes has an average of 80.00 which gives the letter grade of B Sally Dolittle has an average of 71.67 which gives the letter grade of C Conrad Bailer has an average of 63.00 which gives the letter grade of D
- Create a program that reads the data into an array or
vector . .
Run the program with 3 grades per student using the sample data below. Calculate averages and a letter grade A= 90 to 100, B= 80 to 89, C= 70 to 79, D=60 to69, F= anything 59 or less.
Student Name |
Score 1 |
Score 2 |
Score 3 |
Average |
Mary Brown |
100 |
90 |
90 |
? |
George Smith |
90 |
30 |
50 |
? |
Dale Barnes |
80 |
78 |
82 |
? |
Sally Dolittle |
70 |
65 |
80 |
? |
Conrad Bailer |
60 |
58 |
71 |
? |
You should get the following results:
Mary Brown has an average of 93.33 which gives the letter grade of A
George Smith has an average of 56.67 which gives the letter grade of F
Dale Barnes has an average of 80.00 which gives the letter grade of B
Sally Dolittle has an average of 71.67 which gives the letter grade of C
Conrad Bailer has an average of 63.00 which gives the letter grade of D
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images