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:

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
ChapterC: Finding And Fixing Program Errors
Section: Chapter Questions
Problem 5RQ
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Windows 10 Comprehensive 2019
Microsoft Windows 10 Comprehensive 2019
Computer Science
ISBN:
9780357392607
Author:
FREUND
Publisher:
Cengage
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Enhanced Discovering Computers 2017 (Shelly Cashm…
Enhanced Discovering Computers 2017 (Shelly Cashm…
Computer Science
ISBN:
9781305657458
Author:
Misty E. Vermaat, Susan L. Sebok, Steven M. Freund, Mark Frydenberg, Jennifer T. Campbell
Publisher:
Cengage Learning