Question: c++ program Question1: Write a C++ program that prompt the user to enter Two t-shirts prices and calculate the total cost of buying the two
Question1: Write a C++ program that prompt the user to enter Two t-shirts prices and calculate the total cost of buying the two t-shirts with the tax of each t-shirt. Assuming the tax is 5%. (Hint: assume the price is decimal number) Example: To find 10% tax of a t-shirt, we multiply the t-shirt price by (10/100) or 0.1. 300 * 0.1 = 30 The tax of the t-shirt is 30SR. Problem definition: Compute the total cost of buying two t-shirts with tax. Sample Output: Enter the first t-shirt price: 50.0 Enter the second t-shirt price: 80.0 The total price of the two t-shirt is: 136.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
