Question: In C++ please!!! Mostly need help on the final output. I can't figure out how to show the name. Write a program to compute earnings
Write a program to compute earnings for an employee. The program will use separate functions: to get the user's name, to get a floating point value (called once for the rate of pay and again for the hours worked). Final output will show the user's name and the total pay, showing \$ and two places after the decimal point. Prototypes: void intro(); // shows information about what the program will do string getName(); // prompts for, inputs and returns a name entered by the user float getFloat(); // called once to return the rate of pay and once for the hours worked - NOTE: The prompts for these will be in the main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
