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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started