An online software store just had a sale. The percentage discount on their items was given...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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. 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.
Expert Answer:
Related Book For
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The more we learn about how fashion is created, the more we face a moral dilemma that pits our individual freedom of expression and purchasing power against both the environment and the dignity and...
-
A reaction for which H = + 98.8 kJ and S = + 141.5 J/K is ________ (spontaneous or nonspontaneous) at low temperatures and ________ (spontaneous or nonspontaneous) at high temperatures.
-
In a study of natural variation in blood chemistry, blood specimens were obtained from 284 healthy people. The concentrations of urea and of uric acid were measured for each specimen, and the...
-
A cube has corners with coordinates (0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0, 0, 1), (1, 0, 1), (0, 1, 1) and (1, 1, 1). Find the vectors representing the diagonals of the cube and hence find...
-
Use the information from the balance sheet and income statement below to calculate the following ratios: Current ratio Acid-test ratio Times interest earned Inventory turnover Total asset turnover...
-
Flagstaff Co. has actual sales for July and August and forecast sales for September, October, November, and December as follows: Actual: July . . . . . . . . . . . . . . . . . . . . . . . . . . . . ....
-
11. 12. The product formed in the first step of the reaction of Br CH3-CH2-CH-CH2-CH-CH3 with excess Mg/ Et2O (Et = C2H5) is: Br (A) CH3-CH2-CH-CH2-CH-CH3 H3C-CH-CH2-CH-CH2-CH3 CH2 (B) CH3-CH CH-CH3...
-
9. Stocks that don't pay dividends yet Goodwin Technologies, a relatively young company, has been wildly successful but has yet to pay a dividend. An analyst forecasts that Goodwin is likely to pay...
-
Consider cash flows given below. With \(\mathrm{i}=8 \%\), what is the annual worth of these costs? a. \(\$ 418\) b. \(\$ 436\) c. \(\$ 502\) d. \(\$ 536\) End of Year Cost 0 $1,000 1 $100 2 $200 3...
-
Consider an economy with three possible states of the world and three traded securities (i.e., \(S=N=3\) ), with dividend matrix given by \[D=\left[\begin{array}{lll}3 & 4 & 1 \\2 & 2 & 4 \\4 & 5 &...
-
In the benzene adsorber of Example 9.7, the flow rate is increased to \(0.25 \mathrm{~m}^{3} / \mathrm{s}\). Calculate the breakthrough time and the fraction of the bed adsorption capacity that has...
-
You have two identical-looking metal spheres of the same size and the same mass. One is solid; the other is hollow. If you place them on a ramp, the gravitational torques that make them roll down the...
-
What will $250,000 grow to be in 13 years if it is in a 401(k) account with an average annual growth rate of 9 percent? A. 766,451.15 B. 785,169.75 C. 795,119.63 D. 801,989.27
-
Read the case Starbucks and answer the following questions: 1. Do you think the administrative law judge and the national labor relations board (NLRB) went too far in overruling Starbucks? Why or why...
-
3.16. For a system with non-identical service rates (see Sect. 3.5) and a limit of N jobs in the system (Eq. 3.13), obtain an expression for the mean service time per job, E[Ts], as a function of the...
-
A heat engine operates between two finite reservoirs, initially at 800 and \(200 \mathrm{~K}\), respectively. The temperature of the hot reservoir falls by \(1 \mathrm{~K}\) for each \(1...
-
Explain why the Carnot cycle overestimates the thermal efficiency achievable from an engine producing power output. Discuss why external irreversibility reduces the effective temperature ratio of an...
-
Closed cycle gas turbines operate on the internally reversible Joule cycle with an efficiency of \[\eta_{\text {Joule }}=1-\frac{1}{r_{p}^{(\kappa-1) / \kappa}}\] where \(r_{p}=\) pressure ratio of...
Study smarter with the SolutionInn App