Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

pls help me to solve this question using c++ switch structure

0 votes
asked May 2, 2018 by anonymous
write a program that read a student score and print the student grade based on the ff grade system mark are rounded to the nearest integer use switch structure mark range 70-100 A 60-69 B 50-59 C 40-44 E 0-39 F

1 Answer

0 votes
answered May 17, 2018 by muha
you can write it yourself but i an give you some help:

you need to have a variable for the Menu

int Menu;

switch(Menu){

       case 1:

                 break;

      ...

}

___________________________________

for the score you can use an if statement like the following:

if(score >=0 && score <=39){

       cout << "F";

}
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.
...