Question
Write a program named question6c.cpp that demonstrates the use of the following functions. A C++ function named getName()prompts the user for two string values, first
Write a program named question6c.cpp that demonstrates the use of the following functions. A C++ 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, l.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.
Submit: Program question6a.cpp + output
Program question6b.cpp + output
Program question6c.cpp + output
Step by Step Solution
3.32 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
include include using namespace std string getName string firstlast cout first cout last ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started