Lee_assig7 - /Cheu Lee #include <iostream> #include...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//Cheu Lee #include <iostream> #include <cmath> #include <conio.h> using namespace std; int main() { int choice; cout<<"What would you like to do? choose 1, 2, 3 or 4:\n"; cout<<"+----------------------------------------------+\n"; cout<<"| 1. Using Payroll Program |\n"; cout<<"| 2. Taking a quiz |\n"; cout<<"| 3. Find Your Letter Grade |\n"; cout<<"| 4. Exit |\n"; cout<<"+----------------------------------------------+\n"; cin>>choice; switch (choice) s { case 1: { double salary, raise, Nsalary; cout<< "You have chosen the Payroll Program." <<endl; cout<< "Input your current salary: "; cin>> salary; c { raise= salary*.152; Nsalary= salary + raise; cout<< "Current salary: " <<salary <<endl; cout<< "Your raise: " <<raise <<endl; cout<< "Your new salary: " <<Nsalary <<endl; break; } e { raise= salary*.176; Nsalary= salary + raise; cout<< "Current salary: " <<salary <<endl; cout<< "Your raise: "<<raise <<endl; cout<< "Your new salary: "<<Nsalary <<endl;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Lee_assig7 - /Cheu Lee #include &lt;iostream&gt; #include...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online