Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a c++ program for this please [1]. The local t-shirt shop sells shirts that retail for $12. Quantity discounts are given as follow: Number

image text in transcribed

write a c++ program for this please

[1]. The local t-shirt shop sells shirts that retail for $12. Quantity discounts are given as follow: Number of Shirts Discount 5-10 1090 11-20 15% 21-30 20% 31 or more 25% Write a program that prompts the user for the number of shirts required and then computes the total Price. Make sure the program accepts only nonnegative input. Text Use the following sample runs to guide you: Sample Run 1: How many shirts would you like? 4 The cost per shirt is $12 and the total cost is $48 Sample Run 2: How many shirts would you like? 0 The cost per shirt is $12 and the total cost is $0 Sample Run 3: How many shirts would you like? The cost per shirt is $10.80 and the total cost is $86.40 Sample Run 4: How many shirts would you like? -2 Invalid Input: Please enter a nonnegative integer

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

Step: 3

blur-text-image

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

Oracle Autonomous Database In Enterprise Architecture

Authors: Bal Mukund Sharma, Krishnakumar KM, Rashmi Panda

1st Edition

1801072248, 978-1801072243

More Books

Students also viewed these Databases questions

Question

What are some of the traits that describe the high-energy trait?

Answered: 1 week ago

Question

Describe effectiveness of reading at night?

Answered: 1 week ago

Question

find all matrices A (a) A = 13 (b) A + A = 213

Answered: 1 week ago

Question

explain what is meant by experiential learning

Answered: 1 week ago

Question

identify the main ways in which you learn

Answered: 1 week ago