Question: double salaryTotal = 0 ; int numOfdays = 1 ; double totalPay = 0 ; char again = ' y ' ; cout < <

double salaryTotal =0;
int numOfdays =1;
double totalPay =0;
char again ='y';
cout <<"\t ---------------------
";
cout <<"\t Welcome to Hair Clips
";
cout <<"\t ---------------------
";
do
{
cout << "How many days did the employee work this month";
cin >> numOfdays;
totalPay =0;
for (int count =1; count <= numOfdays; count++)
{
totalPay = count * costOfHairCut;
}
cout <<"X had "<< numOfClients <<" clients.
";
cout << "The total amount earned today is "<< totalPay << endl;
cout <<"Do you want to find pay for another employee (Y/y for yes or N/n for No)?";
cin >> again;
} while (again =='y'|| again =='Y');
cout << "Have a good day!" << endl;
system("pause");
return 0;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!