Answered step by step
Verified Expert Solution
Link Copied!

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
image text in transcribed
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

What five activities constitute giving legal advice?

Answered: 1 week ago

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago