Write C++ code to handle the following tasks. Every course offered in university has credit hours. Assuming that course can have either 3 credit hours or 4 credit hours. Grade of student depends on credit hours of course and marks obtained. You are supposed to input credit hours of course and marks obtained in course. Print grade according to given detail. Can you handle 6 credit hours course based on the data given, write code for 6 credit hours course also. If credit hour of course is 4 If credit hour of course is 3 · Grade is A if points are greater than or equal to 64 · Grade is B if points are greater than or equal to 52 and less than 64 · Grade is C if points are greater than or equal to 40 and less than 52 · Grade is D if points are greater than or equal to 32 and less than 40 · Otherwise grade is F · Grade is A if points are greater than or equal to 48 · Grade is B if points are greater than or equal to 39 and less than 48 · Grade is C if points are greater than or equal to 30 and less than 39 · Grade is D if points are greater than or equal to 24 and less than 30 · Otherwise grade is F
Write C++ code to handle the following tasks. Every course offered in university has credit hours. Assuming that course can have either 3 credit hours or 4 credit hours. Grade of student depends on credit hours of course and marks obtained. You are supposed to input credit hours of course and marks obtained in course. Print grade according to given detail. Can you handle 6 credit hours course based on the data given, write code for 6 credit hours course also.
If credit hour of course is 4 |
If credit hour of course is 3 |
· Grade is A if points are greater than or equal to 64 · Grade is B if points are greater than or equal to 52 and less than 64 · Grade is C if points are greater than or equal to 40 and less than 52 · Grade is D if points are greater than or equal to 32 and less than 40 · Otherwise grade is F
|
· Grade is A if points are greater than or equal to 48 · Grade is B if points are greater than or equal to 39 and less than 48 · Grade is C if points are greater than or equal to 30 and less than 39 · Grade is D if points are greater than or equal to 24 and less than 30 · Otherwise grade is F
|
Step by step
Solved in 3 steps with 3 images