Question: c++ PROGRAM 2: Write a program to compute an employee's wages. The user should be prompted to enter a first name, last name, hours worked
PROGRAM 2: Write a program to compute an employee's wages. The user should be prompted to enter a first name, last name, hours worked and rate of pay (numbers as floats). Output should show the total pay earned. prototypes: void intro: string getName(); // called once to get the first name and another time to get the last name float getValue(); // called once to get the hours worked and once to get the rate of pay float compute Earnings(float, float); // computes the total pay earned void showEarnings(string, string float); // shows the user's full name and the total pay earned
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
