Can smbd help me to convert some values from real to virtual?

1. Write C++ statements that read two values i.e. num1 and num2. Multiplies the value of num1?

  • 1. Write C++ statements that read two values i.e. num1 and num2. Multiplies the value of num1 by 2, adds the value of num2, and then stores the result in newNum. Then write a C++ statement that outputs the value of newNum.????? 2. Write a C++ statement that prompts the user to input a length and weight expressed in inches and pounds, respectively. Convert the length in inches to centimeter and weight in pounds to kilograms using the following formula: 1 inch = 2.54 centimeters 1 pound = 0.45359 kilograms Then write a C++ statement to instruct the user to key in input and then output the values in centimeters and kilograms. For example: Please enter the length in inch: 20 Please enter the weight in pound: 40 The length in centimeters = 50.8 The weight in kilograms = 18.1436 1. Write a program that prompts the user to input a weekly number of working hours for a period of a month. Then calculate and display the monthly salary based on the following formula: Salary in week 1 = RM20 * number of working hours in week 1 Salary in week 2 = RM30 * number of working hours in week 2 Salary in week 3 = RM50.50 * number of working hours in week 3 Salary in week 4 = RM60.95 * number of working hours in week 4 Monthly salary = salary in week 1 + salary in week 2 + salary in week 3 + salary in week4 2. Write C++ statements that read three inputs interactively i.e. a name as a string, a pay rate and wok hour as decimal numbers. Calculate a salary by multiplying the pay rate and the work hour. Assume that the salary is a decimal number. The program should be able to produce the following output, for example, if the values of the name, pay rate and work hour are “Ahmad”, 12.50 and 45.50, respectively, then the output is: Name: Ahmad Pay rate: RM12.50 Work hour: 45.50 hours Salary: RM568.75 if u can please help

  • Answer:

    Sorry not here to do your home work thank you. Learn to do your own home-work- sorry

c++ at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Problem 1 Int num1; int num2; int newnum; cout << "please enter the number to be multiplied: "; cin >> num1; cout << "\nplease enter the multipling number: "; cin >> num2; newnum =num1*num2+num2; cout << "\n\nthe answer is " << newnum << endl; problem 2 double inches; double pounds; cout << "enter inches: "; cin >> inches; cout << "\nenter pounds: "; cin >> pounds; cout << "\n\ninches to centimeters: " << inches * 2.54 << "\npounds to kilograms: " << pounds * .45359; Problem 3 is worded weird so I didn't attempt it. Please note tat I didn't put in the include statements or the using namespace std or the return 0 tat u r gonna put in urself. I hope this helps bc I typed all this out on my iPod touch. Good Luck!!!

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.