Calculation - Costs 10 Credits To Use ?
Feb 26, 2010
Im creating a slot machine that costs 10 credits to use but i cant get it so that i can -10 credits from the total.
Heres my entire code:
Public Class frmFruitMachine
Dim OneCredit As Integer = 1
Dim FiveCredit As Integer = 5
[CODE].........................................
View 8 Replies
ADVERTISEMENT
Mar 20, 2011
Ok this is a hw assignment like always....just not sure on how to do the math on this form...the constants are declared for the registration fees and i did the same for the required days at each work shop i just need to find a way to multiply the days required at each workshop by the lodging fees. but i also need to display the lists of costs so its pretty complicated.
View 6 Replies
Nov 29, 2009
I have the program written and it is so close to functioning correctly, but a the end where I am trying to add the totals for the costs.
[Code]...
View 19 Replies
Feb 27, 2010
I want to add some sort of scrollable credits text to my application about form how can I do that using a label? I want to make it look like the one Kaspersky has for example included example below
View 6 Replies
Nov 15, 2010
The project I'm working on is to write a program that requests an integer from 1 through 12 and then list the gifts for that day along with that day's cost. The program should also give the total cost for all twelve days combined. The items and price are in a text file called TwelveDays.txt.An example output is shown below:
The gifts for day 3 are:
1 partridge in a pear tree
2 turtle doves
3 french hens
Cost: $249.99
Total cost for the twelve days:
$78,100.30
How to read in the file and add the day costs together.
View 2 Replies
Feb 23, 2010
I've got to create a slot machine game which operates on credits, I have three buttons and a textbox. One textbox is to add single credits, the second to add 5 credits, and the third adds 10 credits. They all need to be added up to give a 'total' & " credits"
Public Class frmFruitMachine
Dim OneCredit As Integer
Dim FiveCredit As Integer
Dim TenCredit As Integer
Private Sub btnOneCreditit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOneCreditit.Click
[Code] .....
View 4 Replies
Mar 8, 2012
I have two issues. The first is that I want to make a textbox scrolling similar to how credits scroll. I don't want it to move on the form, just to scrolling the text down a line/pixel. I thought I could do it with the "Lines" element, but I'm not exactly sure how to execute it.
The other problem is with my flash screen. Right now I have it set so when a button is click, it goes onto the main form. I don't want to use the button but rather have it so if Enter is pressed at any time, it'll go to the main form. All the solutions I've tried to use involve the "e.Keycode" code, but for some reason its unavailable.
View 11 Replies
Oct 14, 2009
This is what I'm trying to do: I have a listbox to display a list of costs that the user inputs. I want to use some kind of loop to add those numbers from the listbox sequentially, then display the total in a label.
How do I set up a loop (and what kind of loop is best) to pull the numbers and add them to a total? give an example of what the code might look like. I'm new to VB
View 6 Replies
Dec 19, 2009
I need to store a calculation to use later and obtain a new calculation
[Code]...
View 4 Replies
Mar 9, 2009
Heres my code in vb 2008[code]...
I need to add 15% vat to it and i have no clue how to add the 15% vat.
View 1 Replies
Aug 29, 2010
compute an exact age of a person using the format date of mm/dd/yy... in vb.net, i was trying to code it but the result was not the exact age of the person.lp me...
View 11 Replies
Oct 6, 2010
I am using Microsoft Visual Studio 2008 with VB.NET, and in class we were assigned this project: A procedure should calculate a 2% price increase on all red shirts, but a 1% price increase on all other items. In addition to calculating the price increase, the procedure also should calculate the new price. You can use the variables strItemColr, strItem, decOrigPrice, decIncrease, and decNewPrice. Format the original price, price increase, and new price in the lblOriginal, lblIncrease, and lblNewPrice controls, respectively.
View 1 Replies
Sep 12, 2010
I have datagridview, wich have 5 columns
example:
id supplier bought payed sum
1 a 15
2
2 a 20
[Code].....
View 3 Replies
May 8, 2011
i have an issue with my program. when i create a function and use a calculation in it it returns a wrong answer. if i copy the calculation and put it directly in the btnClick event it works ok. is this normal?
here is the code if you would like to try see what i am doing wrong.
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[code].....
View 6 Replies
Aug 21, 2010
I'm having trouble with a calculation in VB and it's a simple one but for some reason I keep getting an output of zero.
Here's the code for the calculation and the click button:
CODE:
View 5 Replies
Apr 15, 2012
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.
View 6 Replies
Jan 5, 2011
I have two money fields in a SQL database called TotalClaimed and PartialSettlementAmountRecd.They are declared as Decimals like so:
Public PartialSettlementAmountRecd As Decimal
Public TotalClaimed As Decimal
They both output the repsective amounts perfectly. I need to do a calculation on them, by subtracting PartialSettlementAmountRecd from TotalClaimed. I have tried the following, but it just outputs a random number, not the amount I require.
Dim NewSettAmount As Decimal = (ClaimDetail.TotalClaimed) - (ClaimDetail.PartialSettlementAmountRecd)
Response.Write("New Settlement Amount: £" & NewSettAmount)
View 3 Replies
Feb 1, 2012
I found this thread in regards to calculating CRC16 on an array.... however, it does not work probably because it was written for VB6 and not .NET. [URL] Does anyone know of a built-in function in .NET to calculate CRC16? If not, is there a way I can adapt the above VB code example to work with Visual Studio 2010?
View 12 Replies
Mar 15, 2012
what i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code i am using doesnt seem to be doing anything could anyone spot it and tell me why it is not working for me
[Code]...
View 2 Replies
Mar 17, 2012
i am trying to do is i have two textboxs which have figues in them and need the 3rd textbox to display the figure the code.[code]I want the answer doesnt display in the textbox as i want it but when i click on the text box nd type anything the answer shows but in the error
View 6 Replies
Dec 15, 2011
Develop an application which reads two integers n1 and n2 from the user via two textboxes and displays in a label the sum of the factorial of the integers n1 and n2?
View 3 Replies
Jun 9, 2011
I'm writing a financial calculator. I know that my calculations are more precise when Decimal format is used. But when I calculate 314/365, the answer given by VB is 0.8602814581, where as the real answer is 0.8602739726. This ends up affecting my calculations quite a bit.
View 7 Replies
Jan 27, 2012
I am trying to perform a simple multiplication in vb.
Below is my code:
Dim minus As Integer
Dim minusPrice As Integer
Dim totalPrice As Integer
[Code].....
View 4 Replies
Aug 25, 2011
I have an array of characters. Depending on the number selected (between 1 and 30), the program selects random characters and concatonates them into a string. Kind of like how I think a password generator would work.I want to update a progress bar to show how the operation is going, but I need to reserve 20% of the progress bar for some actions before this, and the last 10% for the actions that follow it. So there is 70% available to use. My question is:If I set the progress bar to 20% and do the following math: 70/NumOfChars, then use a for loop to add the result of this to the progress bar (pb+=result), why does the total progress NOT EQUAL 90%!
View 1 Replies
Nov 14, 2008
I am trying to figure out how to take what the user selects in the up down menu and use it in my calculation.
View 2 Replies
Jan 30, 2010
I made a calculator but I want to use only one time a comma (,) and after I put for example a minus(-) sign, it will enable the comma again.
View 6 Replies
Sep 11, 2011
I'm trying to work on code where I enter number of hours into a textbox (txtHours) and then EITHER you press a button (cmdPay) and then the income for the week is calculated and shows up in a second text box (txtPay) OR txtPay does the calculation itself, everytime a number is typed into txtHours.
Currently, my code is trying to do the former, because I have NO idea how to even approach the second option.My problem I am having with my code, is I don't know how to properly dim my parameters, since my "button_click" code keeps coming up with this error:Argument not specified for parameter...
Public Function PayTotal(ByVal cnthours As Double, ByVal standpay As Double, ByVal overpay As Double) As Double
cnthours = CDbl(txtHours.Text)
[code]....
View 4 Replies
Apr 7, 2011
got a project from college to create a quotation system in console application for a car company. The program has to tell the customer how much interest they'll be charged and the loan they take out.I've created a file that Adds,deletes,edits customer. Also views all customers. The problem I have is that after I've added the customer. I need to now implement the calculations into my program to then give them the quote. Also need to add a password to the program.
View 6 Replies
Mar 23, 2012
I have a 2d array and I want to do a calculation on each element in the array and then return the index which results in the smallest value.
I have tried iterating through each element in the 2d array and running the calculation. If the calculated result is smaller than the currently stored minimum I set that to the minimum.
This works but it runs so slowly it makes the solution a non starter. It performs each calculation quickly but because of the number of elements in the array the calculation for the whole array is stupidly long.
View 1 Replies
Dec 4, 2011
I am trying to work with taking in and parsing CSV files. Right now I have it taking in and producing something like this:
The program loads the csv and copies the data into an array as such:
ReDim strarray(num_rows, num_cols)
For x = 0 To num_rows
strline = strlines(x).Split(",")
[Code]....
etc. I guess my main problem is trying to perform calculations to all values in a specific column. To start I am just trying to figure out how to isolate the columns and found that by using MsgBox(strarray(x, num_cols)) it will msgbox everything in the second column twice. I just want to try and understand how I can perform a basic calculation like multiply every value in the first column by 2 and every value in the second column one by 3.
View 1 Replies