Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Is my message persuasive? Motivating?

Answered: 1 week ago