Code For A Calculation Program?
May 28, 2009
allow the user to enter a stock transaction and determine the stockbroker's commission. Each transaction includes the following data: the stock name, price per share, number of shares involved, and the stock broker's name. Assume price per share = P. The stockbroker's commission is computed in the following manner: If the P (price per share) is less than or equal to $50, the commission rate is $0.19 per share, if P is greater than $50, thecommission rate is $0.26 per share. If the number of shares sold is less than 150, the commission is 1.5 times the rate per share. Display the results in a message box, including the total commission earned.
View 2 Replies
ADVERTISEMENT
Jan 7, 2009
i need mathematical calculation model code.
View 2 Replies
May 25, 2010
The following code takes a timeframe in minutes since midnight and creates an array with minutes pr hour. But, it's slow. Any better suggestions out there? (no, changing language is not an option :-) )
Const clDeparture As Long = 123
Const clArrival As Long = 233
Dim lHour As Long
Dim lMinute As Long
Dim alHour(25) As Long
[Code]...
View 3 Replies
Nov 24, 2011
For some reason my code is a little buggy, and i really would like a speed calculator with my program.
'Download progress bar kode
Private Sub WC_DownloadProgressChanged(ByVal sender As Object, ByVal e As DownloadProgressChangedEventArgs) Handles WC.DownloadProgressChanged
[CODE]...
View 14 Replies
May 28, 2009
Fist off, I am new at this and only learning it for a class. We have a program to create using Visual Studio 2008. The teacher doesn't give us much to go by so I really have no idea where to even start so any code will be a great help. Here is what i have to create:Your project will allow the user to enter a stock transaction and determine the stockbroker's commission. Each transaction includes the following data: the stock name, pricer per share, number of shares involved, and the stock broker's name. Assume price per share = P. The stockbroker's commission is computed in the following manner: If the P (price per share) is less than or equal to $50, the commission rate is $0.19 per share, if P is greater than $50, the commission rate is $0.26 per share.
View 1 Replies
May 23, 2010
I just need help with my Pizza Program in calculations. It keeps on adding on top of the original calculations. I did try to set the variables to 0, but that really didn't work out since the price that is shown turns out to be 0.
View 1 Replies
Sep 10, 2009
Im havin a code todo some attendance calculation for abt all the employees in my office.its an automatic pgm which will run at 7 am everyday and email the attendance list before 8am . if theres any error for one particular employee, pgm execution stops and cant continue.since its an automatic pgm i want pgm to run with next employee if the current employee calculation got some pblm. if i use on error resumenext statment if error occur at 11 thline of calculation, pgm still cont to 12th line and executing normal.i dun want it to be lik that.if the error is in 11th line then i want to stop execution of that particular employee and goto next employee....how to do this?
View 2 Replies
Feb 24, 2009
I'm new to VB and I'm doing a calculations program for test scores. I got everything setup for my clear and exit buttons but not sure what I have to put in the calculate button code for it to calculate. Here is what I have so far.
Public Class Form1
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles lblTestScore5.Click
End Sub
Private Sub btnExit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnExit.Click
[Code] .....
View 13 Replies
Jan 30, 2010
I am having trouble with a program for the calculation of bicycle gears. you are required to enter the wheel radius the the teeth on the front sprocket followed by the teeth on the rear sprocket. On the first entry of the rear sprocket number, the program will calculate the effictive radiusand display it in a label. If there are subsequent entries of sizes for the rear sprocket then the effective radius is calculated as before as well as the ratio between the current and previous radius.
[Code]...
View 4 Replies
Apr 10, 2012
I'm setting up a quote calculation program for my business.I'm just a beginner with Visual Basic (2010 Express) and am finding it very interesting.I already did some reading and followed the tutorials but I'm getting stuck with my program now.
[Code]...
Make it possible for users to enter necessary data in the "new quote" screen. The data needs to be written into the database table of "new quote"Make it possible for users to lookup previously made quotes in the "open quote" screen. I want them to be able to select a quote based on "quotenumber" or "customername".They then must be able to select a quote, which will open a new window with all quote information from the tables. This information needs to be editable and savable to the databaseGenerate a PDF of a "finished" quote and mail it as attachment to a customerthe "customer information" table contains information for the quote concering address and name of customer. I want this so that users can select a customer in the "quote screen" and all other data will be filled in automatically. I also want that users
can give in a new customer in the quote screen and that that customer will be saved in the "customer information" table.point 4 is also applicable for the "material information table".
View 1 Replies
Nov 18, 2009
I am having a problem with the syntax of this calculation for a bowling program that I am writing for school,
If radMale.Checked = True Then
(200 - decAverage) * .75
lblAverage.Text = FormatNumber(decAverage)
View 1 Replies
Sep 1, 2010
I've got a requirement where I need to calculate a value, however also refer to this value when calculating it. So I've got for example[code]...
I can see how this can be achieved in excel using Circular Reference, however I'm not sure how I go about it when using VB.Net. Is there a similar method to create a Circular Reference as in excel or any other way I can possibly work out the TotalValue?
View 5 Replies
May 25, 2010
i need the program to reject letters and words which are entered into the text boxes and only accept numbers. At the moment i am using IF statements but i need a more pratical approach to this.
View 4 Replies
Mar 30, 2012
I am making a quote calculation program with Visual Basic. Per quote there can be multiple parts/products.
What I want now:
1) insert productinformation (dimensions, quantity etc.) in one form
2) write this data into a table or something
The program then needs to calculate prices etc. but first it is important to get the data right for the calculation.
What I am thinking of myself is putting the data into textboxes and then let this data be transported to a table and have one product per line in that table. from this it can be calculated
View 19 Replies
Dec 19, 2009
I need to store a calculation to use later and obtain a new calculation
[Code]...
View 4 Replies
Feb 23, 2010
With a Time value in my program. Basically, I am importing a travel Time from a database e.g. 3:45 so it takes 3 hrs and 45 minutes to get from a to b. I then want to double this - 3:45 * 2 = 7:30, and then want to multiply it by a cost e.g. travel is charged at 25 per hour. so it would be total travel time = 7:30. Travel cost = 25. Total Travel Cost = 7:30 * 25. In the access db, it is stored as a text field, and then imported in vb as a string.
View 1 Replies
Mar 27, 2012
I'm wondering if it is possible to write the code for the button so that, when pressed by the user, it would add whatever text is in the text box to the list box and change the code of the form load to add that text to the pre-existing listbox.items.add's that are in the code of the form load.
View 2 Replies
May 5, 2011
The program has errorhandle and write log function, however, it could not catch the error message in the program.
The following error message in Event Viewer. Error Module: oleaut32.dll ,version 5.1.2600.5512, error code: 0x000048f9
View 1 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