64 730
Assignments Done
99,3%
Successfully Done
In September 2018

Answer to Question #22935 in C++ for Lorz

Question #22935
Write a C++ program in which you declare a variable that holds an hourly wage.
Prompt the user to enter an hourly wage. Multiply the wage by 40 hours and print the
standard weekly pay.
Expert's answer
#include <iostream>
#include <conio.h>

using namespace std;

int main()
{
double hourlywage;
double standardweeklypay;
cout<<"Enter an hourly wage: ";
cin>>hourlywage;
standardweeklypay=hourlywage*40;
cout<<"Standard weekly pay: "<<standardweeklypay;
getch();
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

Assignment Expert
12.01.15, 19:00

Dear zexy, please use panel for submitting new questions.

zexy
12.01.15, 06:08

Create a class named RealtorCommission. Fields include the sale price of a house, the
sales commission rate, and the commission. Create two constructors. Each constructor
requires the sales price (expressed as a double) and the commission rate. One construc-
tor requires the commission rate to be a double, such as .06. The other requires the sale
price and the commission rate expressed as a whole number, such as 6. Each constructor
calculates the commission value based on the price of the house multiplied b

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions