A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10-19 10% 20-49 20% 50-99 30% 100 or more 40% Write a GUI program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount. A successful test run of the program for different inputs is as shown below:

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter8: Sql Functions And Procedures
Section: Chapter Questions
Problem 3SCG
icon
Related questions
Question

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

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

 Write a GUI program that asks the user to enter the number of packages purchased.

The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.

A successful test run of the program for different inputs is as shown below:

Software Discounts Calculator
Enter the number of packages purchased: 34
Calculate Discount Quit
Discount Amount: $594.00
Total Amount after Discount: $2376.00
Software Discounts Calculator
Enter the number of packages purchased: 10ɖ
Calculate Discount Quit
Discount Amount: $3960.00
Total Amount after Discount: $5940.00
Transcribed Image Text:Software Discounts Calculator Enter the number of packages purchased: 34 Calculate Discount Quit Discount Amount: $594.00 Total Amount after Discount: $2376.00 Software Discounts Calculator Enter the number of packages purchased: 10ɖ Calculate Discount Quit Discount Amount: $3960.00 Total Amount after Discount: $5940.00
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Running Time of Application
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning