please help me write a code that allows me to calculate grades.
the question is:
program should prompt user to enter
i) total marks for each module
ii) marks obtained in each module.
calculate percentage of four modules, then program should calculate semester percentage & semester grade then display it on screen
the criteria of finding the grade should be:
1- if percentage >=70 then grade= D
2- if percentage >=60 && percentage <70 then grade=M
3- if percentage >=50 && percentage <60 then grade=P
4- if percentage >=10 && percentage <50 then grade=R
5 2- if percentage <10 then grade=F
SAMPLE OUTPUT:
Please enter total marks and marks obtained in Module 1
Total Marks: 100
Marks obtained: 70
Percentage: 70
Grade: D
Please enter total marks and marks obtained in Module 2
Total Marks: 100
Marks obtained: 60
Percentage: 60
Grade: M
Please enter total marks and marks obtained in Module 1
Total Marks: 100
Marks obtained: 55
Percentage: 55
Grade: P
Please enter total marks and marks obtained in Module 1
Total Marks: 100
Marks obtained: 40
Percentage: 40
Grade: R
Make good use of conditions, loops and functions where possible.
Please HEEEEEEEEEEEEEEEEEEEELP Me write this code.
This is not how you do compound conditional statements in C++. You ought to go back to your textbook and read up on how to use the && and || operators.