x.Hmeed help to finish this program thanks: complet the area in red Solution x.X
ID: 3617852 • Letter: X
Question
x.Hmeed help to finish this program thanks: complet the area in redExplanation / Answer
x.Xlor="red">please rate - thanks //PURPOSE: This program inputs information about an employee and calculates the employee's pay. // This process is continued until the user indicates that he/she desires to quit. //NOTE: This program has exactly four syntax errors and one logic error. All errors are related // to loops. Read the comments carefully for each function to determine the purpose of each one. #include #include using namespace std; // Function Prototypes: void Asterisks(int howMany); //print asterisks int GetHours(); //get hours worked float GetRate(); //get rate of pay void PrintPay(float hourRate, int numberHours, float pay, int id); //print pay char PromptForMore(); //get more? int main () { //local variables char reply; // ='y'-repeat process; ='n'-stop float rateOfPay; //rate of pay per hour int hoursWorked; //hours worked int idNumber; //ID of the employee float overTimePay; //employee overtime float payAmount; //employee pay //process employees while the user says there are more do { Asterisks(30); // print a line with 30 asterisks // get the employee's data hoursWorked = GetHours(); rateOfPay = GetRate(); cout > idNumber; //calculate the pay if (hoursWorkedRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.