Course Solutions Uncategorized (Solved) : Need Help Code Currently Works However Program Crashes Whenever Pressed Need Program Catc Q26236707 . . . .

(Solved) : Need Help Code Currently Works However Program Crashes Whenever Pressed Need Program Catc Q26236707 . . . .

 

I need help with a code I have. It currently works however theprogram crashes whenever <ENTER> is pressed. I need theprogram to catch the <ENTER> key and say:

– if it’s Hours Worked: “that is not an integer > 0, tryagain”

– if it’s Pay Rate: “pay rate must be greater than $5 but lessthan or equal to $15

then allow the user to enter another number in a line below.

Here’s the code:

#include <iostream>

#include <iomanip>

#include <string>

using namespace std;

// Constant for the array size.

const int EMPLOYEE_SIZE = 7;

// Function Prototypes

void getEmployeeInfo(int empId[], int hours[], double payRate[],double wages[], int EMPLOYEE_SIZE);

void displayWages(int empId[], double wages[], intEMPLOYEE_SIZE);

void

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Solved) : Java Program Specification Read Dates Variety Different Formats Parse Dates Print Converte Q31218084 . . . .(Solved) : Java Program Specification Read Dates Variety Different Formats Parse Dates Print Converte Q31218084 . . . .

<p><em><strong>Java</strong></em></p><p><strong>Program Specification</strong></p><p>You will read in dates in a variety of different formats, parsethe dates, and then print them out in a converted format. The dateswill be entered in one line