Get Amount Of Money User Has And Doesnt Go Over Amount Hechecked
Jun 7, 2011
im trying to make a fast food program on which the user will input the amount that he has, then he will check on what he wants, by using check boxes. There are 7 different check boxes with 7 different amounts of money. I have the program somewhat finished (thanks for the people that helped me before) but theres still a couple of things that I still need to get finished but I dont know how to.I need to be able to get how much money the user has (this will be entered threw a text box, I think I accidentally messed this part up, because I cant get it to work right, (theres alreasy a permit amount of money in there and it needs to be what the user enters instead of the permit, 5.59, one) and this will be the maximum amount he can spend, then the user will check on the food he wants (and the program will add the sales tax also) then it will produce an answer saying if you have enough money or if you dont. But what im confused on is how do I get the users amount of money and make it the maximum mount he can spend and make sure it doesnt go over the amount that he has checked.[code]
I am having problems with creating this change problem. The idea is that the user puts the amount of money in the textbox and then in separate textboxes shows Dollars, Quarters, Dimes, Nickles and Pennies.
how can i breakdown the amount of money into available denominations. for example, i will input 7,542, the program will output how many thousands, hundreds and 1 coins are in the amount. im thinking the trimming functions of VB but no idea how to start.
I am creating a roulette wheel using microsoft excel visual basic. I want to create a table with the amount of money you have that goes up or down based on wheter you win/lose. This is what I have so far:
Public Sub spin() Dim speed As Double Dim spin As Double Dim maxspeed As Double
"Create an application that will return the amount of money that remains at the end of each year." Initial Deposit: 5000 Withdrawal Amount: 500 Number of Years: 4
The following is code for a CalcButton: Dim intDeposit As Integer Dim intWdrwl As Integer Dim intRemain As Integer Dim dblRate As Double = 0.05 [Code] .....
I'm supposed to populate a multi-line textbox in one calculation, so that it looks like this: 1 $4,725.00 2 $4,436.25 3 $4,133.06 4 $3,814.72
I am making a simple vending machine and I need to store the amount of drinks bought and money stored in a text file. When the vending machine opens it needs to load from there.
i have a datagridview binded with the datatable via its datasource property....now i want to add the Amount column of the dgv and display the total amount in the textbox,if the amount is greater than a certain value then i want the cell to coloured red so i did this code and it worked great:
Dim i, j As Integer For i = 0 To DataGridView1.RowCount - 1 j += Me.DataGridView1.Rows(i).Cells("Amount").Value Next
[code]....
but my problem is that i want the red colour of the cell to blinkafter every 2 seconds....how to do this?i need to handle the timer tick event for this but i am not able to do this.....
im trying to make a simple program that calculates the time it takes to cover x amount off nautical miles at x amount off knots, the code i have so far is this :
Code:Public Class Form1 Private Sub Label2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label2.Click End Sub
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
[Code]...
so if i say want to cruise 29 miles at 12 knts it gives me an awnser of 2 hours 24.6 mins instead of 2 hours 25. Although i do realise that 2 hrs 24.6 is technicaly right i was wondering if anyone here could help me with getting it into the correct format?
I am working in a point of sale system in Vb express 2008. I want to convert the Amount in Figures to Words like: How to conver the amount of $ 1,550,325.45 to Amount in words as DOLLARS: ONE MILLION, FIVE HUNDRED FIFTY THOUSAND, THREE HUNDRED TWENTY FIVE AND FORTY FIVE CENTS.
I am working in a point of sale system in Vb express 2008.I want to convert the Amount in Figures to Words like:How to conver the amount of $ 1,550,325.45 to Amount in words as DOLLARS: ONE MILLION, FIVE HUNDRED FIFTY THOUSAND, THREE HUNDRED TWENTY FIVE AND FORTY FIVE CENTS.Please advise how to code for that in Vb express.
i am currently developing a small basic program that will let the user choose a multiple amount of car parts and it will add it up and display a quote at the end.
i want to deduct some amount(i.e user input) from main loan taken by employee and remaining amount again come as balance loan amount and on nxt month again the some amount should deduct from balance loan amount.
I have wrote the code for a number guessing game. But cannot for the life of me think of how to limit the amount of guesses a user can have. This is in Console Application. Module Module1 Sub Main() 'This program plays a simple number guessing game. Dim RandNum As Integer Dim RandomGenerator As New System.Random [Code] .....
Here is my problem. I'm not sure I am doing this correctly but I have two arrays [ strMonths(0) = "January"] etc. for each month and another one that receives input from the user concerning the amount of rainfall for a month. [decRainfall(0) = CDec(strMonths(0))] etc. for each subscript
The app. returns total rainfall for the year, average rainfall, maximum rainfall and minimum rainfall.The max. and min. should return the number that was input by the user and the month associated with that max. and min.I have everything working except for the month string being displayed (returned) after the max., min. number in the labels.
I am trying to do a somewhat different pw generator. The user can specify the amount of characters the password will be and whether to randomize between the alphabets A-Z, numbers 1-10, and maybe a hand full of symbols or so, and a combination of all three options. Also the user can use the "re-generate" button if he/she does not like the current password. I'm fairly new to VB, and would just like a push in the right direction to get started.
I have to create a program that ask the user to enter the amount of hours work for 5 diferent projects in textboxes. The user have to enter the time he worked in minutes. Ex: 153, 280, 600, 130, 20... The total then is out putted into a textbox in this format "13 Hours and 35 Minutes" I'm having dificulties making the conversion and the separation from hours and minutes. I understand that the total is divided by 60, but if we fallow the above numbers the total hours comes out to 1183 / 60 = 19.71. So I'm having problems with the .71 mnts or digits... so from this total I have to output the total of in this particular format: "19 Hours and ?
Im trying to create a program that takes an amount entered by the user and then convert it into Half Dollars, quarters, dimes, nickles, and pennies when the calculate button is clicked. Each coin has its own function and is shown in separate text boxes... right now i cant get it to work correctly. When i try to get half dollars to work it rounds up and then the rest of the coins say 0. How should i do this?
I have a program that allows a user to select a program to run at a certain time for a specific amount of time all choosen by the user. Everything works with the exception of if my program has launched the other program, my program become non-responsive. Meaning I am not able to look at that window again. Not that one really needs too, because when time is up my program closes the program it opened, then closes itself. I just want to be able to see my program when the other program is running. how to do this and perhaps drop me some links, that would be wonderful. This is what I have coded, but like I stated there are no code errors.
So i've to write this program whose purpose it this:
Purpose: The user enters the item name and amount of the item purchased. The program calculates the tax for the item and the final total, and then displays these values. Tax on all items will be 7.75%.
And so far i've this code but it's not working:
' Program: Cash Register ' Author: Nidhi Shah ' Date: February 2, 2010 ' Purpose: The Cash Register Window application will ' computer the tax and the final cost of a ' purchased item.
Option Strict On
Public Class frmCashRegister ' Tax per item - used in multiple procedures Const _cdecTaxPerItem As Decimal = 0.0775D
i have this problem on how to calculate the amount due in our system in VISUAL BASIC.NET .in returning module, (this is for penalty purposes), if the borrower didn't return the book on time, the system must automatically generate the amount due .one daY is equivalent to 10(ten) pesos.so if the borrower didn't return the book with 2 days. the amount due must be 20.00 pesos.
I am using VB (VS 2010) and Wamp Server (Mysql - phpmyadmin). I have a Database Called "TEST" with a Table Called Test1 and 2 columns. 1 = Date 2 = Amount
Like this: 2012-04-04 1,50 2012-04-04 2,33 2012-04-04 5,60
Now what I need is this, I need to get the Sum of the Amount by the Date 2012-04-04 = 9,43
I have this code: Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load objconn.ConnectionString = "server=localhost;" _ & "user id=root;" _ & "password=root;" _ & "database=test" Try [Code] .....
i am new in vb.net programming,need your help.I hv a table named fec which have columns Amt and Date.Now i want to Sum up amount by selecting particular month from date and to display that summed up amount in a textbox.Pls suggest me the whole code using commandbuilder ,i am using access 2007 as back end.
I am looking to create a function in which I can pass in an integer (count) and create an amount of picturebox's based on the count.For example if I pass in an integer count, it should do this, only I don't know the correct syntax for it.[code]I am making a huge list of pictureboxes that will scroll on a form, 5 showing at a time.Also, if there are a huge amount of pictureboxes, will I be better off keeping like 7 pictureboxes on the form and keep rotating images throughout? Images are coming from a folderlist in a listbox (so I can easily pull the path of the image from an index).
i have this formula to get the time used and amount conversion. My problem is that when I a hour dt_total_used.Hour.ToString()) * 60 give wrong result.
'GET TOTAL USED TIME dt_total_used = dt_end.Subtract(dt_start).ToString 'COMPUTE AMOUNT OF TIME USED