Could you help me design an interface that will find the number of quarters, dimes, nickels, and pennies from an amount entered by the user.
I really need the code for the amount textbox and the code for the find coin button.
2 1899
Could you help me design an interface that will find the number of quarters, dimes, nickels, and pennies from an amount entered by the user.
I really need the code for the amount textbox and the code for the find coin button.
Hello,
I also need to make a similar program. I have a text box "txtChange" in which the user inputs the amount of change, in cents.
The code I have, so far, is: - Private Sub Form_Load()
-
Dim txtChange As Integer
-
Dim Quarters As Integer
-
Dim Dimes As Integer
-
Dim Nickles As Integer
-
Dim Pennies As Integer
-
Dim NumberQuarters As Integer
-
Dim NumberDimes As Integer
-
Dim NumberNickles As Integer
-
Dim NumberPennies As Integer
-
End Sub
-
Private Sub cmdCalculate_Click()
-
cmdCalculate.Caption = "Re-calculate"
-
NumberQuarters = (txtChange / 4) Mod ___
-
lblNumberQuarters = NumberQuarters
-
End Sub
-
Private Sub cmdDone_click()
-
Unload frmChange
-
End Sub
However I get stuck at the NumberQuarters = (txtChange / 4) Mod _, where I don't know what _ should be.
Could you help me design an interface that will find the number of quarters, dimes, nickels, and pennies from an amount entered by the user.
I really need the code for the amount textbox and the code for the find coin button.
This will work:
Call the textbox 'txtAmount' and call the button 'cmdCalculate' then paste the above code into your form's code module.
The Fix() function is used to avoid rounding errors
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Shark1 |
last post by:
Hello.
I'm suppose to write a program that will match the price given by the user
using the least number of coins. There are 5 different type of coins.
I get this output, the count is...
|
by: amit |
last post by:
I want to find out that if there is a mechanism to find a text inside a C# file and replace it with another string.
I am using DTE to do it, the find proerty does it, the results are getting...
|
by: AMIT PUROHIT |
last post by:
hi,
this is a qry which I m stuck up with
I want to find out that if there is a mechanism to find a
text inside a C# file and replace it with another string.
I am using DTE(EnvDTE) to do it,...
|
by: amit |
last post by:
hi
I have created a tool which does a find and replace thru DTE, now after it is done, it opens up a window, "FIND REACHED THE STARTING POINT OF SEARCH"
I want to disbale this window...
|
by: David T. Ashley |
last post by:
Hi,
Red Hat Enterprise Linux 4.X.
I'm writing command-line PHP scripts for the first time.
I get the messages below. What do they mean? Are these operating system
library modules, or...
|
by: Derek |
last post by:
I am creating an intranet using Visual Web Developer Express Edition.
Everything has been working OK until yesterday when I started getting 62
messages all beginning "Could not find schema...
|
by: mia023 |
last post by:
Hi i have an assignment that i don't understand and need help in.
Write a program that reads in a command line integer N(number of pennies) and prints out the best way(fewest number of coins) to...
|
by: MsBarnes |
last post by:
I'm a newbie to the programming field and I really need help to understand what i'm doing wrong. This is the exercise i'm working on I need to create an application that allows the users to enter...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |