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
PayPal Gateway not configured
PayPal Gateway not configured