



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
project of cpu cpu project for 1st years students they can use it for our porseonal purpose cpu project for 1st years students they can use it for our porseonal purpose cpu project for 1st years students they can use it for our porseonal purpose cpu project for 1st years students they can use it for our porseonal purpose
Typology: Essays (university)
1 / 5
This page cannot be seen from the preview
Don't miss anything!
input/output logic(if statements, switch statements) #include
using namespace std; int main() {double maths,english,physics,cpu,marks; int score; cout<<"Enter the marks Of Maths = " ;
cin>>maths;
if(maths>100) { cout<<"Wrong Marks Entered\n"; } cout<<"Enter the marks Of English = ";
cin>>english;
if(english>100) { cout<<"Wrong Marks Entered\n"; }
cout<<"Enter the marks Of Physics = ";
cin>>physics;
score=marks*100/400;
cout<<"\nThe total Score :"<<score;
if(score>100) cout<<"\nYou Entered Invalid Marks";
if(score==100) cout<<"\nYou Get a Perfect Score";
switch(score) { case 0 ... 59 : cout<<"\nYou Get F Grade";
break;
case 60 ... 69 : cout<<"\nYou Get D Grade";
break;
case 70 ... 79 : cout<<"\nYou Get C Grade";
break;
case 80 ... 89 : cout<<"\nYou Get B Grade";
break;
case 90 ... 100: cout<<"\nYou Get A Grade";
break; } getch(); return 0; }