78 442
Assignments Done
Successfully Done
In September 2019

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;
cout<<"Your paid: ";
cout<< 40*wage + over * 1.5 * wage <<endl;

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!


No comments. Be first!

Leave a comment

Ask Your question

Privacy policy Terms and Conditions