Question: Write c++ program that demonstrates the use of the following functions. Function named getName() prompts the user for two string values; first name and last

Write c++ program that demonstrates the use of the following functions. Function named getName() prompts the user for two string values; first name and last name and return a combination of the two as one value. The second function getHours() calculate employee's weekly pay, it must receive one argument, fullName(), a string variable and a float value for the rate. It must then prompt the user for hours worked for each day of the week, i.e. Monday - Friday and calculates the weekly pay.Employees who have worked more than 40 hours that week will receive a bonus of 10% and those who have worked less than 40 hour will receive 10% less pay for that week.

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!