Computer problems,Computer help
*AX SOFT>>>Programming & Design

Visual Basic - Change Machine?


Ok How do I make my program execute change. For example, if I have 3 text boxes with Amount of Purchase, Amount Tendered, and Change Due. And then 9 check boxes with 20,10,5,1, Dollars,Dimes,Nickels, Pennies and a label box corresponding to each one, and a Calculate Button,how do I make this work?

Ok so i Dont know where to start? I just need a starting point.

For Private Sub BtnCalculate Click(....
If Chktwenty.Checked=False then
---->intTwenty=intchange\2000
---->intChange=intChangeMod2000
lblTwenty=intTwenty

is that right for the $20 part? Like will that make the number of 20s given back pop in the label next to it?

At least try to write the code. If you get stuck, or get an error you can't figure out, a lot of us will help you. 'Help' is the operative word.

Sorry, but I refuse to do your homework!

Tags
  General - Computers & Internet   Software   Security   Programming & Design   Facebook   Flickr   Google   MSN   MySpace
Related information
  • How can i be an expert java guru & computer programmer?

    If you want to be an expert programmer, first study programming. Then practice programming. Then get a job programming. In 5 to 10 years, you'll be an expert programmer. There's no ...

  • C to F, F to C, what is my mistake?

    Okay, the first problem is that you aren't familiar with function parameters. With a declaration of: Convert(FtoC), you are creating a function called convert, that takes one parameter and a...

  • PHP programming help using forms?

    that should work, if you are getting back the php then php is not configured properly, at least not where that file is located. But here is a very simple test, save this in the same place as a ....

  • Uploading Website help!!!?

    That is a server error. If you can use a local FTP to upload instead of GoDaddy's, i would try that way. A lot easier to use something like SmartFTP and set it up to connect. GoDaddy shou...

  • Visual Basic- StartingHelp?

    sure you can do it that way.. but you will need to make sure you are getting the floor of the change/2000... or you can use a series of while loops.. while intchange >= 2000 { intchange-= ...

  • Unix command helps!!?

    date -v -1d "+%D" >yesterday.txt (better read the man page to figure out why/how this works) ls -a /bin >~/temp/bin.txt

    ...
  • How do I make a groupbox border appear and darker and black?

    Basically the border code has a lot of border styles and some are pretty neat if the border size is set correctly. Like the style "inset": border: 5px inset #000; A simple border: ...

  • Adobe Photoshop Ghost Rider text recreate poster???

    Yes, you can create it in photoshop alone. No need additional images. 1. Steel effect can be achieved by gradient fill in blending options. Or, if your PS do not have blending option, just add a...

  •  

    Categories--Copyright/IP Policy--Contact Webmaster