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;
Comments
Leave a comment