Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this homework, you will write a C++ program that calculates student grades for a course. In this course, there are 10 students and there

In this homework, you will write a C++ program that calculates student grades for a course. In this course, there are 10 students and there are total of 7 scores for each student. Students weighed total score is calculated as follows:

Total: (0.1*HW1) + (0.1*HW2) + (0.1*HW3) + (0.1*HW4) + (0.15*Test1) + (0.15*Test2) + (0.3*Final)

Student/Grade table is given below:

HW1

HW2

HW3

HW4

Test 1

Test 2

Final

Student 1

78

77

55

58

97

61

Student 2

68

73

55

100

61

73

Student 3

58

72

77

97

61

63

Student 4

90

53

66

52

75

85

Student 5

81

95

60

56

66

95

Student 6

74

83

87

50

82

74

Student 7

100

72

67

87

80

80

Student 8

55

91

80

85

63

90

Student 9

74

87

79

51

74

71

Student 10

66

62

62

88

74

85

Students did not take the Final exam yet, therefore, the Final column is empty. In your program, you will create a two-dimensional int array (10 by 6) and load this table into that array (first 6 columns for 10 students). Later, you will provide following menu to the user:

Calculate average of all scores

Calculate the average of each column. You will print a message such as:

HW1 HW2 HW3 HW4 Test 1 Test 2

Average Scores: 74.4 76.5 68.8 72.4 73.3 77.7

Calculate the standard deviation of all scores

Calculate the std of each column. You will print a message such as:

HW1 HW2 HW3 HW4 Test 1 Test 2

Std Scores: 13.1 12.3 10.7 19.6 10.7 10.7

Calculate Student Current Grade

You get a number from the user between 1-10 to identify a student. Later, you will calculate a weighted average score (before the final exam) for that student. Please see the weights formula above.

Calculate Min. Final Score for an 80 (B) average

You get a number from the user between 1-10 to identify a student. Later, you will calculate the minimum Final exam score that is necessary for that student to get an average of 80 by the end of the semester. Please see the weights formula above.

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

Recommended Textbook for

Learning PostgreSQL

Authors: Salahaldin Juba, Achim Vannahme, Andrey Volkov

1st Edition

178398919X, 9781783989195

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago