main5 - #include u using namespace std; int...

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

View Full Document Right Arrow Icon
#include <iostream> # using namespace std; u int main() { int code; i int flag = 1; while (flag !=0) { cout << " Please enter the employee's paycode: "; cin >> code; cout << endl; c switch (code) { case 1: float managerSalary; cout << "Please enter the Manager's weekly salary: " << endl << "\t"; cin >> managerSalary; while (managerSalary<0){ cout << endl << "Invalid salary" <<endl; cout << "Please re-enter salary (greater than or equal to 0): " << endl << "\t"; cin >> managerSalary; } cout << "\tManager's weekly salary is: $"<< managerSalary << endl; break; b case 2: float hourlyWage; int hours; float hourlyWorkerSalary; f cout <<"Please enter the worker's hourly wage: " << endl << "\t"; cin >> hourlyWage; while (hourlyWage<0){ cout << endl << "Invalid hourly wage" << endl; cout << "Please re-enter hourly wage (greater than or equal to 0): " << endl << "\t"; cin >> hourlyWage; } cout <<endl<< "Please enter the hours worked by the worker: " << endl << "\t"; cin >> hours; while (hours<0 || hours> 168){
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.

This note was uploaded on 09/12/2011 for the course JAVA 2312 taught by Professor Darinbrezeale during the Spring '11 term at University of Texas at Austin.

Page1 / 3

main5 - #include u using namespace std; int...

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