Question: For C# Scenario: Create a Windows Forms application that accepts the total cost of a sale and the amount submitted by the customer. Calculate and

For C#

Scenario: Create a Windows Forms application that accepts the total cost of a sale and the amount submitted by the customer.

Calculate and display the correct change from largest denomination to smallest.

If the cost exceeds the amount submitted, post a message to the user that they have entered an invalid amount.

The program should accept both the cost and the amount submitted into textbox controls.

The program should use Try/Catch statements to keep the program from crashing.

Inputs:

1) The cost of a sale.

2) The amount submitted to pay for the sale.

Processing:

1. Calculate the correct change due to the buyer.

2. Display the correct change from largest bill to smallest coin.

Output:

Display a graphical representation of the bills/coins and the correct amounts of each.

Hint: You will need to use the modulus operator to determine the remaining amount after extracting the correct number of bills/coins from the previous amount

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!