Solved–Problem Write a program such that — Homework 02–Solution

$30.00 $19.00

Problem Write a program such that: 1. Ask the user to enter the price of a product A and product B. Store them as doubles. 2. Print the total cost, including sales tax. Assume the tax rate is 8.875%. 3. If the total cost is more than 20 dollars, print “It’s expensive!” (Try this even…

You’ll get a: . zip file solution

 

 
Categorys:
Tags:

Description

5/5 – (2 votes)

Problem

Write a program such that:

1. Ask the user to enter the price of a product A and product B. Store them as doubles.

2. Print the total cost, including sales tax. Assume the tax rate is 8.875%.

3. If the total cost is more than 20 dollars, print “It’s expensive!” (Try this even though you have not learned if statements.)