Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

programing use c++ COMP209: Introduction to Programming Lab Assessment 1 Question1: Write a C++ program that prompt the user to enter Two t-shirts prices and

programing use c++
image text in transcribed
COMP209: Introduction to Programming Lab Assessment 1 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

Refactoring Databases Evolutionary Database Design

Authors: Scott Ambler, Pramod Sadalage

1st Edition

0321774515, 978-0321774514

More Books

Students also viewed these Databases questions