Create a visual basic program for a Department Store that calculates a customers shopping bill including GST, when they bring their items to the checkout as shown below. See image.
For example the program would have to be able to do the following using
Discount % = 5% for Total purchases over $200 and GST % = 10%
Items Cost
Jeans 95
Shoes 125
Shirt 65
And calculate the following answers: (Discount applies for a total over $200 otherwise 0)
Total Bill = $285.00 Discount YES = 0.05 X 285 = $14.25 GST = 0.1 X 285 = $28.50
Final Bill = 285 – 14.25 + 28.50 = $299.25
Amount Given = 300 Change = 0.75
(1)Create the form using Visual Studio. Be sure to create all labels, text boxes, buttons and anything else needed for the form.
(2)Program the Enter Items button. The button when clicked should enable the user to enter an item they plan to purchase into their shopping cart. Then it should update the costs as well as any GST and discounts added.
(3)Program the code for the remaining buttons. You will need to be able to change the percentages of GST, discount, clear items and end the program using a button. The program should also update the change given when the user enters the amount given into the relevant text box.
(4)Comment your code appropriately.
Do the following desk checks using a calculator and compare to your own program you just created
(1) Items Cost
Coat 115
Tie 35
Pants 90
And calculate the following answers:
Total Bill = $....... Discount = …………….. = …………….. GST = …………… = ……………….
Final Bill = ……………………………………………………….
Amount Given = 280 Change =
2) Items Cost
Dress 165
Coat 105
Shoes 80
Bag 120
And calculate the following answers:
Total Bill = $....... Discount (Yes / No) = …………….. = …………….. GST = …………… = ……………….
Final Bill = ……………………………………………………….
Amount Given = 600 Change =
(3) Items Cost
Towels 55
Pillow s 45
Blankets 80
And calculate the following answers:
Total Bill = $....... Discount (Yes / No) = …………….. = …………….. GST = …………… = ……………….
Final Bill = ……………………………………………………….
Amount Given = 200 Change =
(4) Change the discount value to 10 and GST value to 12.5
Items Cost
Dress 85
Shoes 65
Bracelet 130
And calculate the following answers:
Total Bill = $....... Discount (Yes / No) = …………….. = …………….. GST = …………… = ……………….
Final Bill = ……………………………………………………….
Amount Given = 350 Change =
(5)Did the desk checks give the same answers that your program gives you? Explain your answer.