1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
int main()
{
//string firstname, lastname,a, b, fullname;
string firstname, lastname,a, c, fullname;
//float Mon, Tue, Wed, Thu, Fri, TotalHours;
float Mon, Tue, Wed, Thu, Fri, TotalHours, b;
cout << "Enter your first name: " << endl;
cin >> firstname;
cout << "Enter your last name: " << endl;
cin >> lastname;
a = getName(firstname, lastname);
cout << "Enter the hours you worked for each day of the week (Monday-Friday)" << endl << endl;
cout << "Monday: ";
cin >> Mon;
cout << "Tuesday: ";
cin >> Tue;
cout << "Wednesday: ";
cin >> Wed;
cout << "Thursday: ";
cin >> Thu;
cout << "Friday: ";
cin >> Fri;
b = getHours(Mon, Tue, Wed, Thu, Fri);
//c = printPay(fullname, TotalHours);
c = printPay(fullname, b);
return 0;
}
|