Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Understanding Oracle APEX 5 Application Development

Authors: Edward Sciore

2nd Edition

1484209893, 9781484209899

Students also viewed these Databases questions

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago