Professional Documents
Culture Documents
(a – b) x (z – y)
(k2 – 2j)
3. Create a program that uses the same formula above to output the result; this
time, however, prompt the user for the values a , b , x , k , j , and y . Use
appropriate variable names and naming conventions.
4. Create a program that prompts a user for his/her name. Store the user’s name
using the std::cin function and return a greeting back to the user using his/her
name.
5. Create a new program that prompts a user for numbers and determines total
revenue using the following formula:
Total Revenue = Price * Quantity
6. Build a new program that prompts a user for data and determines a commission
using the following formula:
Commission = Rate * (Sales Price – Cost)