This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: cout<< "Your raise: " <<raise <<endl cout<< "Your new salary: " <<Nsalary <<endl } break case 2: int q,p cout<<"You have chosen the Quiz Mode: "<<endl cout<<"How Many States are in the United States? "<<endl cin>>q cout<<"Correct!!"<<q==50<<endl cout<<"Who is the current President?"<<endl cin>>p cout<<"Correct!!"<<p==barackObama<<endl break case 3: Sheet1 Page 2 int percent,letterGrade cout<<"You have chose to Find Your Letter Grade: "<<endl cout<<"Please Enter Your Percentage: "<<endl cin>>percent letterGrade==A if(letterGrade<=89%) letterGrade=B if(letterGrade<=79%) letterGrade==C if(letterGrade<=69%) letterGrade==D if(letterGrade<=59%) lettergrade==F cout<<"Your Letter Grade is: "<<letterGrade<<endl else if (percent==negative) int negative cout<<"Invalid Test Score"<<endl cin>>negative break case 4: cout<<"You choose to exit the program. Bye!"<<endl break default: cout<<"Invalid input, you must enter 1, 2 or 3"<<endl } return 0 }...
View Full Document
This note was uploaded on 05/16/2010 for the course CISCO EST61 taught by Professor Miller during the Spring '10 term at Fresno City College.
- Spring '10