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;
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment