Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

// I am not sure about the programming codes //Need help with validation //Need

ID: 3647057 • Letter: #

Question

// I am not sure about the programming codes
//Need help with validation
//Need help with alignment of EmpId and Gross Pay
//Need help with getting the EmpID to up in the console window.

#include <iostream>
#include <iomanip>
#include <cmath>

using namespace std;

int main ()
{
const int empID =7; // Number of employees
int employees[empID] = {5658845, 4520125, 7895122, 8777541,
8451277, 1302850, 7580489}; //Array of employees ID number
int numHours[empID]; // Display the hours worked by each employee
double payRate [empID]; // Display the pay rate earned by each employee
int count;
double grossWages;



// Inputting validation



for(count = 0; count < empID; count++)
{
cout << "Enter employee Id:" << (count + 1) << endl;
cin >> employees[count];
cout << " Enter the hours earned by each employee." << (count + 1) << endl;
cin >> numHours[count];
cout << " Enter the employees pay rate." << (count + 1 ) << endl;
cin >> payRate[count];
}

//Set the desire output formatting for numbers
cout <<fixed<<showpoint<<setprecision(2);

for(count = 0; count < empID; count++)

{
double grossWages = numHours[count] * payRate[count];
cout << "Employee numbers" << (count + 1);
cout <<"The wages are $" << grossWages << endl;
cout << "Employee ID and Wages" << endl;

}



// Validate the employees less than 6.
if (numHours < 6)

return NULL;

//Format the program to dis

cout << "_______________________________ ";

}

Explanation / Answer

perfectly working code!!! #include #include #include using namespace std; int main () { int employees[7] = {5658845,4520125,7895122,8777541,8451277,1302850,7580489}; //Array of employees ID number int numHours[7]; // Display the hours worked by each employee double payRate[7]; // Display the pay rate earned by each employee int count; double grossWages; for(count = 0; count < 7; count++) { cout