Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started