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

#include using namespace std; void main() { int x = 0; int y = 0; char z = \' \'

ID: 3654554 • Letter: #

Question

#include using namespace std; void main() { int x = 0; int y = 0; char z = ' ' ; } void getHoursRate(double h, double r) { cout << "Input how many hours worked"; cin >> h; cout << "Input the rate per hour"; cin >> r; } double payCheck(double h, double r) { double FirstFortyHours= h, OverTimeHours= 0; if ( h > 40) { FirstFortyHours = 40; OverTimeHours = h - 40; } return FirstFortyHours * r + OverTimeHours * r * 1.5; } void printCheck (double h, double r, double amount) { cout<<"Hours Worked: "<< h <<endl; cout<<"Rate per hour: "<< r <<endl; cout<<"Salary: "<< amount << endl; } void funcOne(int x , int y) { int value; cout << "Enter an intger number"; cin >> value; x = 2 * x + y - value; } void nextChar(char z) { z = (z - 97 + 1) % 26 + 97; system("pause"); } void main2() { int x, y; char z; double rate, hours; double amount; (x, y, z); cout<<"Calling initialize "; cout<<"x= "<< x << " "<< "y= "<< y <<" "<< "z= " <<z <<endl; cout<<" Calling getHoursRate "; getHoursRate(hours,rate); cout<<"Hours= "<<hours<<" "<<"Rate= "<<rate<<endl; cout<<" Calling payCheck "; amount=payCheck(hours, rate); cout<<"Amount= "<<amount<<endl; cout<<" Calling printCheck "; printCheck(hours, rate, amount); cout<<" Calling funcOne "; x= 15; y= 10; funcOne(x, y); cout<<"x= "<<x<<endl; cout<<" Calling nextChar "; z= 'z'; nextChar(z); cout<<"z = "<< z <<endl; system("pause"); } can you take a look at it?

Explanation / Answer

#include#includeusing namespace std; void funcOne(); void getHoursRate(); void nextChar(); double rate, hours; double amount; int value,x,y; char z; void main2() ; void getHoursRate() { cout > hours; cout > rate; } double payCheck() { double FirstFortyHours= hours, OverTimeHours= 0; if ( hours > 40) { FirstFortyHours = 40; OverTimeHours = hours - 40; } return FirstFortyHours * rate + OverTimeHours * rate * 1.5; } void printCheck () { cout