// Using switch statement Write a C program to input marks of five subjects Physics, Chemistry, Biology, Mathematics and Computer. // Calculate percentage and grade according to following: // Percentage >= 90% : Grade A // Percentage >= 80% : Grade B // Percentage >= 70% : Grade C // Percentage >= 60% : Grade D // Percentage >= 40% : Grade E // Percentage < 40% : Grade F #include < iostream > using namespace std ; int main () { float phy_g , phy_t , chem_g , chem_t , bio_g , bio_t , math_g , math_t , comp_g , comp_t , per ; cout << " Enter your Physics marks: " ; cin >> phy_g ; cout << " Out of: " ; cin >> phy_t ; cout << " Enter your Chemistry marks: " ; cin >> chem_g ; cout << " Out of...
Comments
Post a Comment