C++ actual implementation task #2

 3rf blog:


#include<iostream> 

using namespace std;  

int main() 

double percentage, obtaindMarks; cout<<" Enter your obtained marks of matric:\n "; cin>>obtaindMarks; percentage= obtaindMarks/1100*100; cout<<"Percentage ="<<percentage; if( percentage>=90) 

cout<<"\nHere is your grade:\ngrade is A"; 

else if( percentage>=80) 

cout<<" \nHere is your grade:\ngrade is B"; 

else if( percentage>=70) 

cout<<"\nHere is your grade:\ngrade is C"; 

else if( percentage>=60) 

cout<<"\nHere is your grade:\ngrade is D"; 

else if ( percentage>=50) 

cout<<"\nHere is your grade:\ngrade is F"; 

else if ( percentage<=50) 

cout<<"\n You are unable to meet the required critaria"; 


Comments