Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 ... 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

Recommended Textbook for

Operating Systems Internals and Design Principles

Authors: William Stallings

8th edition

133805913, 978-0133805918

More Books

Students also viewed these Programming questions

Question

Produce a nine-step process for conducting a literature review.

Answered: 1 week ago