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.
1
Expert's answer
2013-03-12T12:01:03-0400
#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 the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS