Answered step by step
Verified Expert Solution
Question
1 Approved Answer
An online software store just had a sale. The percentage discount on their items was given based on the following chart: Price Discount $0-$15
An online software store just had a sale. The percentage discount on their items was given based on the following chart: Price Discount $0-$15 5% >$15 and $35 The end-user wants to figure out how much their total will be based on the total purchase price. Assume 8% sales tax is added to the total after the discount is applied, for example: Purchase price = $80 Discount = .20*(%80) = $16 Total after discount = $64 Tax = .08*($64) = $5.12 Total after tax = $69.12 Write a GUI program that has the three options (radio buttons) for a percent discount based on the price of an item, an input entry box for the price, an output label for: the total after tax, the tax, and the discount, and two buttons: Total and Exit. Once the user enters the price into the entry box and clicks the Total button, the output labels will appropriately display the necessary amounts. If the price doesn't satisfy the range identified for the discount some error message should be displayed notifying the user.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started