Question: Write a program to produce a sales receipt. Each time the user clicks on a button, an item and its price should be read from
Write a program to produce a sales receipt. Each time the user clicks on a button, an item and its price should be read from a pair of text boxes and displayed in a properly aligned list box. Use a class-level variable to track the sum of the prices.
When the user clicks on a second button (after all entries have been made), the program should display the number of items purchased, sum of the prices, the sales tax (assuming an HST of 13% of the total), and the total amount to be paid.
Step by Step Solution
3.53 Rating (150 Votes )
There are 3 Steps involved in it
To achieve the described functionality well create a simple program with a graphical user interface GUI that allows users to input item names and their corresponding prices into text boxes Upon clicki... View full answer
Get step-by-step solutions from verified subject matter experts
