Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ A software company sells a package that retails for $99. Quantity discounts are given according to the following table. Quantity Discount 10-19 20% 20-49

C++ A software company sells a package that retails for $99. Quantity discounts are given according to the following table.

Quantity Discount

10-19 20% 20-49 30% 50-99 40% 100 or more 50%

Write a program that asks for todays date ( You MUST use cin>>date .Do not use getline(cin, date)), the company name and the quantity they wish to buy and computes the total cost of the purchase. If the user enters a negative value for the quantity, tell him/her invalid quantity. If a zero is entered, tell Hope you decide to buy our software in the future.

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions