Can you give me a detailed suggestion on how I should set up my calculation button to show the answers in the denominations of 20's, 10's, 5's, 1's and currency change? This is what I have so far, I'm unsure how to set it up.
Private Sub CalculateButton _Click(ByVal sender As System.Object, ByVal e As System.EventArg s) Handles CalculateButton .Click
'Calculate a total.
changeDue = (TotalTenderedT extBox.Text...
User Profile
Collapse
-
In lines 32 thru 46 I should be able to enter a dollar amount into the amount of total sales text box and have it subtracted from the total tendered text box and the value of the difference should be able to go to the change due text box. It doesn't work. Also, I am not sure that my calculation button is in the proper place or is it coded sufficiently to make the calculations work.
Can you help?
thanks,Leave a comment:
-
This is what I have coded so far, any help you can give will be much appreciated.
Thanks
[CODE=vbnet]Public Class Form1
'Project: McDonald's Register
' Description: This project is to make change for transactions in the proper monetary denominations.
Dim x As Decimal
'Declare variables
Dim amtOfsale As Decimal
Dim totalTendered As Decimal...Leave a comment:
-
Calculations
Hi,
I'm a student and new to the world of programming in Visual Basic. Can someone be so kind to assist me on setting up a program to simulate a cash register where change will be given in denominations? Or is there one out there somewhere I can use as a guide?
Your help is greatly appreciated.
thank you,
No activity results to display
Show More
Leave a comment: