11 th 2 practical c++ percentage

 11 th second practical 

      

QUESTION 

                  

                 WRITE A C++ PROGRAM TO CHECK PERCENTAGE OF A STUDENT AND DISPLAY THE DIVISION (DISTINCTION, FIRST CLASS,SECOND CLASS,THIRD CLASS OR FAIL) SCORED USING SWITCH CASE



Percentage                                             Division         

>=80                                                       DISTINCTION 

>=60 and <80                                       FIRST CLASS    

>=60 and <60                                     Second class      

>=50 and <60        .                             Third class       

<40                                                       Fail                 




Coding




#include<iostream>

using namespace std;

int main()

{

int m;

cout<<"/n Enter the mark:";

cin>>m;

m=m/1;

switch(m)

{

case 1:cout<<"/n Fail";break;

case 2:cout<<"/n Fail";break;

case 3:cout<<"/n Fail";break;

case 4:cout<<"/n Third class";break;

case 5:cout<<"/n Second class";break;

case 6:cout<<"/n First class";break;

case 7:cout<<"/n First class";break;

case 8:cout<<"/n distinction";break;

case 9:cout<<"/n distinction";break;

case 10:cout<<"/n distinction";break;


}






                  Download link 

                      

                         ðŸ‘‡



By  

        KAMESH SK


          

Comments

Popular Posts