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
solution:
Please open visual studio and select File->New Project and from the new project dialog box select Other Languages->Visual C# and select Windows Forms Application. Enter a project name at the bottom of the dialouge box and click OK button.
After selecting Windows Forms Application , you can see a default Form (Form1) in your new C# project. The Windows Form you see in Designer view is a visual representation of the window that will open when your application is opened. you can drag the controls(Textbox,Labels,button) from
"ToolBox" onto your applications main form(Form1) and adjust their size and position.
Right side , keep a label as "SALE Amount" and against that text box to enter the amount. Then below that, keep a label as "Amount Received" and against that text box to enter the amount. Below you have "Calculate button" . Please double click it to write the logic of code when user clicked the button.
Logic must be
Change = Amount Received - Sale amount;
Change Denomination bill for the given change in picture 412.85
412.85 % 100 = 4
Remaining amount = 12.85
12.85%10 = 1
Remaining amount = 2.85
2.85%1 = 2
Remaining amount = .85
.85%.25 = 3
Remaining amount = .10
0.10%.10 = 1
This denomination bill value will be moved to Text box(drag them to form as mentioned above) against each currency
End
please give me thumb up
For C# Scenario: Create a Windows Forms application that accepts the total cost of a sale...
Can you please help me with creating this Java Code using the following pseudocode? Make Change Calculator (100 points + 5 ex.cr.) 2019 In this program (closely related to the change calculator done as the prior assignment) you will make “change for a dollar” using the most efficient set of coins possible. In Part A you will give the fewest quarters, dimes, nickels, and pennies possible (i.e., without regard to any ‘limits’ on coin counts), but in Part B you...
1. Create a new multi-class Java program which implements a vending machine simulator which contains the following functionality: A) At program startup, the vending machine is loaded with a variety of products in a variety of packaging for example soda/tonic/Coke in bottles, peanuts in bags, juice in cartons, etc. Also included is the cost of each item. The program should be designed to easily load a different set of products easily (for example, from a file). Also at program startup,...
C++ HW Question Your program will simulate a simple change maker for a vending machine. It will start with a stock of coins and dollars. It will then repeatedly request the price for an item to be purchased or to quit. If given a price, it will accept nickels, dimes, quarters, one-dollar and five-dollar bills—deposited one at a time—in payment. When the user has deposited enough to cover the cost of the item, the program will calculate the coins to...
How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...