Date: grade report l Student ID A1 A2 A3 Midterm Final 208940146 79.61 66.88 82.
ID: 3806283 • Letter: D
Question
Date: grade report l
Student ID
A1
A2
A3
Midterm
Final
208940146
79.61
66.88
82.28
97.63
90
211751425
57.36
44.15
76.89
58.56
74.16
217552682
76.62
97.9
52.18
51.85
70.58
209382010
68.83
84.21
82.63
78.2
77
208748369
85.88
70.86
87.28
70
84.4
214923698
33.73
92.78
75.42
65
52.06
209358209
75.09
53.3
62.1
79.06
65
217216546
35.66
89.58
61.76
68.4
56.25
209330240
40.77
14.47
71.96
51.13
47.58
209962089
53.08
36.84
61.52
69.84
45
209748613
79.01
69.27
70.77
47.81
46.5
204589375
78.2
58.41
76.56
88.86
87.93
201711045
93.51
83.35
53.1
44.54
73.36
201347666
69.16
84.62
67.19
56.24
52.33
217767818
58.92
55.18
71.68
57.76
58.05
204663353
74.71
96.45
69.92
62.55
93.46
217231914
99.37
75.69
83.47
76.06
84.68
214234701
78.05
63.69
70.47
45.89
57.28
217456259
72.97
37.54
84.64
86.89
78.5
218760039
64.81
49.52
81.22
57.47
58.86
202793785
71.97
80.78
80.77
68.99
66.15
207878003
45.52
45.99
57.82
18.26
10.33
219611256
68.55
90.94
71.2
60.25
62.16
212895880
48.71
40.48
79.44
69.37
88.9
217928195
44.05
72.44
89.3
49.78
53.26
209644608
70.59
84.64
64.22
58.24
54.99
200281861
96.13
69.03
55.58
72.22
59.63
212457606
85.86
95.15
96.92
88.42
90.81
204621907
46.8
67.71
35.71
92.58
62.54
210548679
64.01
38.86
77.04
57.21
58.13
214499839
46.85
59
67.49
35.54
57.45
212148315
82.31
67.09
57.64
74.12
89.53
211767328
61.07
65.2
41.41
35.67
77.15
208668696
67.73
91.06
87.74
76.27
81.17
204883458
81.54
83.95
72.06
77.73
69.38
208579207
76.52
51.66
83.3
74.68
64.5
200203549
76.03
75.5
72.51
64.74
85.24
212176428
68.19
19.54
62.3
70.88
85.99
219159503
97.61
55.23
89.74
72.14
56.79
201908930
70.49
74.41
76.09
72.13
75.21
200711811
49.1
55.28
68.17
37.27
47.15
217724701
98.43
53.39
77.54
86.45
78.54
204938827
74.55
70.26
51.75
67.85
55.58
200178301
73.8
71.36
72.69
66.62
77.93
216298405
71.5
98.59
72.27
62.07
78.08
202809989
57.69
91.14
74.91
65.71
69.25
217597328
41.6
84.98
41.16
65.35
85.73
201907536
77.02
56.68
64.24
72.69
67.5
207051202
35.77
49.68
34
52.83
18.97
211868411
84.04
53.89
48.66
40.42
61.07
211703632
59.19
92.22
74.22
64.41
79.78
213353635
57.34
83.25
53.68
69.47
75.3
212960542
54.81
82.31
57.65
55.19
45.51
208667381
85.43
57.77
73.39
84.64
93.44
202795175
51.46
71.43
62.62
61.57
71.24
Calculate the final mark for each student according to the following rules:
Each assignment is worth 5%
midterm is worth 40%
final is worth 45%,
Once the final mark is calculated create a function to find the final letter grade for all the final marks. Assign the letter grade according to the scheme below:
GRADE GRADE POINT PER CENT RANGE DESCRIPTION
A+ 9 90-100
A 8 80-89
B+ 7 75-79
B 6 70-74
C+ 5 65-69
C 4 60-64
D+ 3 55-59
D 2 50-54
E 1 45-49
F 0 below 45
Report the grade distribution based on the letter grade graphically.
Find the curve/math function that can best fit the grade distribution for each term. Plot the curve/math function.
Report the pass rate for the term.
Write a menu driven program to illustrate above analysis on grades.
Student ID
A1
A2
A3
Midterm
Final
208940146
79.61
66.88
82.28
97.63
90
211751425
57.36
44.15
76.89
58.56
74.16
217552682
76.62
97.9
52.18
51.85
70.58
209382010
68.83
84.21
82.63
78.2
77
208748369
85.88
70.86
87.28
70
84.4
214923698
33.73
92.78
75.42
65
52.06
209358209
75.09
53.3
62.1
79.06
65
217216546
35.66
89.58
61.76
68.4
56.25
209330240
40.77
14.47
71.96
51.13
47.58
209962089
53.08
36.84
61.52
69.84
45
209748613
79.01
69.27
70.77
47.81
46.5
204589375
78.2
58.41
76.56
88.86
87.93
201711045
93.51
83.35
53.1
44.54
73.36
201347666
69.16
84.62
67.19
56.24
52.33
217767818
58.92
55.18
71.68
57.76
58.05
204663353
74.71
96.45
69.92
62.55
93.46
217231914
99.37
75.69
83.47
76.06
84.68
214234701
78.05
63.69
70.47
45.89
57.28
217456259
72.97
37.54
84.64
86.89
78.5
218760039
64.81
49.52
81.22
57.47
58.86
202793785
71.97
80.78
80.77
68.99
66.15
207878003
45.52
45.99
57.82
18.26
10.33
219611256
68.55
90.94
71.2
60.25
62.16
212895880
48.71
40.48
79.44
69.37
88.9
217928195
44.05
72.44
89.3
49.78
53.26
209644608
70.59
84.64
64.22
58.24
54.99
200281861
96.13
69.03
55.58
72.22
59.63
212457606
85.86
95.15
96.92
88.42
90.81
204621907
46.8
67.71
35.71
92.58
62.54
210548679
64.01
38.86
77.04
57.21
58.13
214499839
46.85
59
67.49
35.54
57.45
212148315
82.31
67.09
57.64
74.12
89.53
211767328
61.07
65.2
41.41
35.67
77.15
208668696
67.73
91.06
87.74
76.27
81.17
204883458
81.54
83.95
72.06
77.73
69.38
208579207
76.52
51.66
83.3
74.68
64.5
200203549
76.03
75.5
72.51
64.74
85.24
212176428
68.19
19.54
62.3
70.88
85.99
219159503
97.61
55.23
89.74
72.14
56.79
201908930
70.49
74.41
76.09
72.13
75.21
200711811
49.1
55.28
68.17
37.27
47.15
217724701
98.43
53.39
77.54
86.45
78.54
204938827
74.55
70.26
51.75
67.85
55.58
200178301
73.8
71.36
72.69
66.62
77.93
216298405
71.5
98.59
72.27
62.07
78.08
202809989
57.69
91.14
74.91
65.71
69.25
217597328
41.6
84.98
41.16
65.35
85.73
201907536
77.02
56.68
64.24
72.69
67.5
207051202
35.77
49.68
34
52.83
18.97
211868411
84.04
53.89
48.66
40.42
61.07
211703632
59.19
92.22
74.22
64.41
79.78
213353635
57.34
83.25
53.68
69.47
75.3
212960542
54.81
82.31
57.65
55.19
45.51
208667381
85.43
57.77
73.39
84.64
93.44
202795175
51.46
71.43
62.62
61.57
71.24
Explanation / Answer
#include<iostream>
#include<stdio.h>
#include<math.h>
int main()
{
int stud_id,i,j,ch;
char grade;
//float ass1, ass2, ass3, mid_term, final, final_grade;
float data(int,float,float,float,float,float);
float calc(float ass_res,float mid_res,float final_res,float total);
printf(" 1. Enter New students Details");
printf(" 2. Calculation for Grade");
printf(" Enter your choice:");
scanf("%d",&ch);
switch(ch)
{
case 1:
printf(" Enter New Student details:");
printf("%f",data(stud_id,ass1,ass2,ass3,mid_term,final));
break;
case 2:
printf(" Calculate Students Grade");
printf("%f", calc(ass_res,mid_res, final_res,total));
printf(" Student ID:");
printf(" Assignment Mark1: %f",ass1);
printf(" Assignment MArk2: %f",ass2);
printf(" Assignment Mark3: %f",ass3);
printf(" Mid term Mark: %f",mid_term);
printf(" Final Mark: %f",final);
printf(" Total Mark: %f",total);
default:
printf(" Enter Correct choice:");
return 0;
}
}
float data(int stud_id,float ass1,float ass2, float ass3,float mid_term,float final)
{
printf(" Enter Number of Students to be entered:");
scanf("%d",&n);
for(i=0; i<n; i++)
{
printf(" Enter the Student ID:");
scanf("%d",&stud_id);
printf(" Enter Assignment Mark1:");
scanf("%f",&ass1);
printf(" Enter Assignment MArk2:");
scanf("%f",&ass2);
printf(" Enter Assignment Mark3:");
scanf("%f",&asss3);
printf(" Enter Mid term MArk:");
scanf("%f",&mid_term);
printf(" Enter Final MArk:");
scanf("%f",&final);
}
}
float calc(float ass_res,float mid_res,float final_res,float total)
{
float ass_res=(ass1/5)+(ass2/5)+(ass3/5);
float mid_res=(mid_term)/40;
float final_res=(final)/45;
float total=ass_res+mid_res+final_res;
if(total<=45)
printf("Grade is: F Grade Point is: 0");
else if(total<=49)
printf("Grade is E Grade Point is: 1");
}
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.