THE FOLLOWING QUESTION MUST BE SOLVED IN VISUAL BASIC (VB) WITH CODE AND WINDOW FORM SCREENSHOTS
A retail Company needs an application that will take as input a series/list of product prices to calculate and output total amount the customer should pay, by summing up the list, (zero is entered after the last price to signify the end of list). The company gives it’s customers a discount of 5% when the amount the customer should pay is over GH₵1000, otherwise it offers 2%. Customers of the company are also given a discount of 7% if they have a membership card.
a) Write a function that will take two parameters (unit price and quantity purchased) from a button click event to calculate the total amount a customer should pay.
b) Write the button Click event for the function above, which will get the unit price and quantity purchased from the user and display the result in a currency format. In addition to the total amount a customer should pay, the program should also display each tax amount and total tax amount.
Comments
Leave a comment