63 088
Assignments Done
99,1%
Successfully Done
In July 2018

Answer to Question #26234 in C++ for emma

Question #26234
Wags are paid at a standard hourly rate for 40 hours per week and at time and one half for overtime. Write a c++ program that calculates and displays the weekly payment, given the standard wage amount and the number of hours of overtime as inputs.
Expert's answer
#include <iostream>
using namespace std;
int main(){
cout<<"Enter wage amount\n";
double wage;
cin>> wage;
cout<<"Input number of hours overtime\n";
int over;
cin>>over;
cout<<"Your paid: ";
cout<< 40*wage + over * 1.5 * wage <<endl;

system("pause");
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions