Program That Will Calculate The New Price?

May 4, 2010

I'm doing a program that will calculate the new price. Iv been using a class to put my code their. Iv been getting errors in my form code.

Heres the class code

Public Class Computer
Private _id As String
Private _price As Decimal

[Code].....

View 8 Replies


ADVERTISEMENT

How To Calculate Total Price Of Fruit

Jan 8, 2010

The program is for calculating an amount of fruit. I have a label saying the name of the fruit, a textbox to enter a value of 0-99 and another textbox with ReadOnly which will show the price.

A little picture here:[URL]

As you can see, the Fruit1 Etc... Is only the fruit name.
The Text box wich indicate 1-99 means the number of fruit.
The Textbox with Cash on it, means the total price.
The Calculate button, when I will push it, all the total price from all the fruit will be added together to form a total price which will be indicated in the total price textbox under the Calculate button.

When I will enter the number of fruit, if I enter 99, it give me a price.
When I will enter 60, I want that the 60 are multiplied by (let say) 0,10$
I just like to know how I can do this... Its really bothering e and I don't want to calculate all the things and make 99 line for 1 fruit cause it will be long.

The code I was using was:
Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
If TextBox1.Text = "99" Then
TextBox2.text = "10.00$"
Elseif TextBox1.Text = "98" Then
TextBox2.Text = "9,90$"
EndIf
End Sub

Until the the number of the fruit in the code reach 0. So its very long.

View 14 Replies

VS 2008 How To Calculate For A Retail Price

Mar 24, 2009

I have about 80% of this app done. All I need to do is convert what the user inputs of the wholesale cost of the item (lblCost and txtCost) and and convert that and the retail price to its markup %(lblMark and txtMark)

View 10 Replies

VS 2008 Calculate Price * Quantity = Cost?

Mar 3, 2010

I certainly hope I don't aggravate you with what is certainly a very simple code problem. I have never programmed before, but I do have a background in tech support, etc. I have an assignment to do and it's frustrating to wade through the information out there to find exactly what I need and nothing more.The assignment has 3 parts, one of which i've done. We are to do the same function in both javascript and VB. I was able to take a sample we did in class that caluclates a 10% discount and modify it so it calculates the total. Now, I have to modify that into a VB sln file. then write about the differences but that part will be cake.

I am working in Visual Studio 2008 - that program is new to me as well. When I created my login and it asked what VB I'm using, I did not know but under theu of VS, it says VB 2008.hat I attempted to do was to take the instructor's sample discount code and modify it for the new purpose, but an error was generated. This is the sample code I started with:

'Programmer: Dan Dougherty
'Date: Feb 2010
'

[code].....

View 14 Replies

VS 2010 Calculate Price From Datagrid To Textbox?

May 22, 2011

I Have a datagrid with Item, Description of Item, Qty and Price.I would like on the 1st txtbox display subtotal depending on the quantity, price and add a tax textbox and the subtotal all from the datagrid to to those textboxes.

I already have all of that on my table of Products.

View 2 Replies

User Selects From Multiple Listboxes To Get A Price From A Price Array

Nov 25, 2011

I am new to vb and I am having so much trouble with this. What I need to do is this: I have a form application for winter sports equipment rental.I have a listbox filled with the equipment for the user to choose from then I have a combobox for the user to select the duration they would like to rent it. The book that I am using has no examples I can refrence and i have had no luck online either. I am posting what I have so far. However, i think I am going in the wrong direction. I have been working on this for so long that I think I have over thought it and made a mess of it. I am thinking that I need to add a new class for rentalRates then use enum of durationType and equipmentType but I am unsure how to move that way. That is using a enum, a 2d array and a parallel array? [code]

View 1 Replies

Get The Price Of The Premium Or Regular In Price Per Unite?

Jan 24, 2012

PHP

Public Class GasPump
Private name As String
Private quan As Double

[Code].....

I get problem in the code when you going to pick y/n. how i going to get the price of the premium or Regular in Price per unite?

View 7 Replies

VB 2010 Validation - Form As Follows "Price Changer" - User Is Allowed To Select A Product And Enter Price

Apr 17, 2012

I have a form as follows "Price changer" The user is allowed to select a product and enter price . So when the change price button is clicked...the price is stored in a array which is later called

So what i am stuck is when the user selects a product from the drop down menu...the user can enter price . But i need to display a error message when the user enters text instead of numbers for prices. I tried try parse method but it displayed the error message but did not transfer the entered price to the array.

My code is as follows

The bolded intMediaprice() are arrays....

Private Sub btnPrice_Click(sender As System.Object, e As System.EventArgs) Handles btnPrice.Click
If cbMedia.Text = "8-Track" Then

[CODE]...

View 3 Replies

VS 2010 Make A Program Which Outputs A Price Of Something Into Currency

Oct 18, 2010

i'v started learning visual basic on a software development college course and i have to make a program which outputs a price of something into currency only when i click on my calculate button it only comes out as a whole number so instead of �1.00 it just says 1, this is my output code.

qty = txtQty.Text
money = 100
If lstItems.SelectedIndex = (0) Then

[Code]......

View 3 Replies

Enter The Price In A Text Box And Click The Enter Button To Send The Price To A List?

Nov 15, 2011

I have to create a form that I enter the price of gas each month over a year. I enter the price in a text box and click the enter button to send the price to a list box immediatley and use an array. I have the following code but I don't think it's working with the array correctly as it will let me enter the information but doesn't stop letting me enter after the 12 prices. I am really having a hard time trying to figure out how to set up this input for an array and make it all work.

[Code]...

View 1 Replies

ByRef & ByVal Code - Program To Execute Properly - Can't Get Them To Add Up And Display The Quantity And Price

Apr 7, 2010

I started this tutorial on sub procedures and am having trouble trying to get this program to execute properly. The problem lies with the total. I am trying to figure out the math part of it. When I hit F5 I can see this

Item Quantity Price.

Pizza Slices
Fries
Soft Drinks

Total

But I can't get them to add up and display the quantity and price. I tried the ByVal and ByRef code but am not sure if I did it right

Here is the code that I have so far:

Public Class Form1

Private Sub btnCompute_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCompute.Click

Dim pizza, fries, drinks, total As Double

[CODE]...

View 6 Replies

Class -program Where Enter The Description, Price, And Quantity Of An Item, Then Click On The Add Button

Aug 13, 2009

I have to create a program where you enter the description, price, and quantity of an item, then click on the Add button. It will then put the description, price, quantity, and total for that line (including tax) in a listbox. The tax is determined by what you put in a text box labeled tax:. When you press Submit Order, it should show a grand total in a text box called Grand Total. It should have a class that is called Items that has a function called GetTotalAmount() that figures out the total including tax. I have started it, but am having a tough time with how to get the subtotals into the text box, then also show the amount including the tax PLUS then do the grand total.

Heres what I have so far:

CODE:

View 3 Replies

Create A "stock Price Program" For An Assignment?

Jan 29, 2011

I am trying to create a "stock Price Program" for an assignment that will allow you to type in a stock symbol such as "goog" in the client side and the server side will respond with a price for that stock symbol, this price can either be hard coded in or read from a text file. I have done a lot of research and have a good understanding of how sockets work.

My issue is that I do not understand how to get the server to reply based on what the client sends it. I have a working program that allows you to send text to the server and it should reply with the same text and date but i think the client is just re-typing the text instead of receiving it from the server and I can't figure out how to get the client to receive back from the server

[Code]...

View 2 Replies

Calculate Pi In Program?

Apr 26, 2009

Does anyone know how can I calculate pi (π) in VB?

View 6 Replies

Calculate Sum In Program?

Mar 21, 2009

Calculate sum in program? [code]...

View 5 Replies

Calculate Date In Program?

May 15, 2010

I have a two maskedtextbox, one textbox named as masktxtdepostdate and , masktxtmaturitydate, txtnoofmonth.

i changed maskedtextbox property as date, in format "YYYY-MM-DD";

now i need to calculate masktxtmaturitydate after entering the values in, masktxtdepostdate and txtnoofmonth.[code]...

View 2 Replies

Program That Will Calculate FinalMarks?

Sep 12, 2011

program that will calculate finalMarks. Year mark counts 20% to the final mark and ExamMark counts 80% to the final Mark. Using case select: calculate final mark and display appropriate color. If the total is < 45 display color black etc

View 4 Replies

Program To Calculate Best Fit Line?

May 17, 2010

I have a DataGridView with two columns, X and Y, which are the X and Y coordinates. What I am trying to do is to let the user input some X and Y coordinates, and it will calculate the best fit line.

View 5 Replies

Program To Calculate Depreciation ?

Jan 4, 2012

iam making a program to calculate depreciation (just to apply what I learned) and when I run the program and made the input, I get an error that says "Please input numeric values." Here is the code for the calculate button [code...]

View 27 Replies

Program To Calculate Digits Of Pi?

Mar 11, 2010

I am creating a program to calculate digits of pi, I get two error messages. Value is not a member of Integer. I get this message twice.

View 12 Replies

Calculate Ratio On Startup Of The Program?

Apr 4, 2009

Im making a small tool that helps gamers keep track of their kills and deaths, and their kill/death ratio.I calculate ratio on startup of the program, straight after kills and deaths are loaded off my website.Dim ratio As Decimal ratio = Val(txt_kills.Text / txt_deaths.Text) At the moment, kills = 172 and deaths = 145. Ratio results in 1,1862068. How can I round this number up and turn this into a number with 2 integers after the dot? ( 1.19 ) I tried a hundred things so far but I cannot figure this out.

View 3 Replies

Calculate The Traffic Of Sent And Received Using Program?

Oct 10, 2009

I want just a code that calculate and show the traffic (volume) of sending and receiving to/from internet?for example, IE is opening a page and IDM is downloading a file ; NOW , how many bytes has been sent / received

View 5 Replies

Calculate The Traffic Of Sent And Received Using VB Program?

May 12, 2012

I want just a code that calculate and show the traffic (volume) of sending and receiving to/from internet?

for example, IE is opening a page and IDM is downloading a file ; NOW , how many bytes has been sent / received?

View 2 Replies

Construct A VB Program That Will Calculate Dog And Cat Ages?

Mar 11, 2009

I am going to construct a VB program that will calculate dog and cat ages, i plan to have a user interface to ask the user if they have a cat or a dog, then id like another window appear to ask how many human years of age is your dog/cat, up to the age of 20 (in human years) with that input the calculator will give you the age equivilent in dog/cat years.

View 1 Replies

Program To Calculate Loan Using Dates?

May 2, 2009

i'm making a program to calculate loan using dates, the customer borrows an item on a particular day and returns it on a given day else he would have to pay a certain amount of fine per day, which starts from the date of return if the user returns the item 1 day after the Date of Return, he pays a fine of 50pence if the user returns the item 3 days after the Date of Return, he pays a fine of 25pence per day if the user returns the item 10 days after the Date of Return, he pays a fine of 10pence per day and if the user returns the item 30 days after the Date of Return, he pays a fine of 5pence per day i did something like this, but it's not producing the required answer

Dim returned As Date
Dim due As Double
Dim fine As Double

[Code]....

how do i format a datetime in a textbox?

View 3 Replies

Write A Program To Calculate Temperature?

Nov 9, 2009

Option Explicit On
Option Strict On
Option Infer Off

[code].....

View 4 Replies

Calculate Average Of Excel Table Using Program?

Jun 8, 2011

I want to calculate the average value of excel table readings 1 hr once... how do i import the sheet and how do i calculate the avg in vb.net?

View 4 Replies

Create A Program To Calculate Math Grade?

Feb 19, 2010

I ma trying to create a program to calculate my math grade. The way my math teacher explained the grading scale was each test is worth 1 point and each quiz is worth .2 points.

So as an example (add both sides up then divide by both sides)

100 =1
80 = 1
15 = .2
18 = .2

213 divide by 2.4 which equals your grade of 88.75

There are more quizs and tests in the semester and I want the numbers to change with the number of quizs and tests entered. The only problem is I am not sure how to code it. I though I would use IF AND statements but I am not sure where to start.

View 8 Replies

Designing And Coding A Program To Calculate Commission And Pay?

Jan 29, 2010

I am designing and coding a program to calculate commission and pay and I have chosen to use menu items to do the calculations. I have written most of the code but I am seeing a few syntax errors that I do not understand.here is the code...

[Code]...

View 5 Replies

Make A VB Program To Calculate Retirement Calculater?

Mar 21, 2012

Actually i don't know how to mentions the years of work into the program and i don't know how to calculate the final result. I took a long time try to solve my problem but i can't.this assignment due tomorrow morning.

Public Class Form1
Private Sub btnClack_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClack.Click

[code].....

View 5 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved