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.

andrew armah 1 Reputation point
2021-12-22T15:54:28.893+00:00

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.

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,421 questions
{count} votes