{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

week5_lab - Payroll\Main.cpp#include"stdafx.h#include...

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

View Full Document Right Arrow Icon
Sheet1 Page 1 Payroll\Main.cpp #include "stdafx.h" #include <iostream> #include <string> #include <iomanip> #include <cctype> #include <ctime> using std::ios using namespace std #include <iomanip> using std::setprecision using std::setiosflags #include <cstdlib> #include "employ.h" #include "boss.h" #include "commis.h" #include "piece.h" #include "hourly.h" #include "Seasonal.h" int determineMonth () void setData (int) int deptNum, x char firstName[32], lastName[32] int birthDay, birthMonth, birthYear int hireDay, hireMonth, hireYear char streetAddress[50] , streetCity [50], streetState[50] , streetZip [ 50] double weeklySalary, comm, hrWage, hrWrkd, perPiece int qty char run int main ( ) { // set output formatting cout << setiosflags ( ios :: fixed | ::showpoint) cout << setprecision ( 2 ) do{bool testDept=false { cout <<"Select a department: "<<endl <<endl cout <<"Department 1-Boss"<<endl cout <<"Department 2-Commission"<<endl cout <<"Department 3-Piece"<<endl cout <<"Department 4-Hourly"<<endl cout <<"Department 5-Seasonal"<<endl cout <<"Department Number: " cin >> deptNum cin.ignore(100,'\n'} switch (deptNum) {
Background image of page 1

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

View Full Document Right Arrow Icon
Sheet1 Page 2 case 1: x-1
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}