Calculate The Charges For A Parking Garage?

Jul 21, 2011

I am using Microsoft VB 2010. I am to calculate the charges for a parking garage. I was to use to a method to do the calculations and output the parking charges. My problem is that everything displays except for the charge... What am I doing wrong? Here is my code:

[Code]...

View 2 Replies


ADVERTISEMENT

Calculate The Total Cost Of A Parking Garage ?

Jun 21, 2010

I have a class assignment where i have to calculate the total cost of a parking garage from hours but i have to do it with a method function. So this might be a stupid question but can you read the user input values from a textbox in the function itself or do they have to be read in and recalled from the Private Sub Button1_Click section?

View 8 Replies

Parking Charges Exercise In VB 2010?

Nov 13, 2011

A parking garage charges a $2 min. fee to park for up to three hours.The garage charges an additional 50 cent per hour for each hour or part thereof in excess of three hours. The max charge for any given 24-hour period is $10. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and displays the parking charges for each customer who parkes a car in this garage yesterday. You should enter in a TextBox the hours parked for each customer. The program should display the charge for the current customer. THe program should ise the method CalculateCharges to determine the charge for each customer. Ise the techniques described in the chapter to read Double value fro a TextBox. [ You may need to use methods Convert.ToDouble and Convert.ToDecimal when doing calculations with the number of hours and charges]

Public Class ParkingGarageFeeCalculatorForm
Private Sub calculateButton_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) Handles calculateButton.Click
Dim hoursParked As Double = Convert.ToDouble(hoursParkedTextBox.Text)

[code].....

View 7 Replies

System To Calculate The Charges For Each Load That They Deliver?

Apr 15, 2012

The company needs a system to calculate the charges for each load that they deliver. The loads consist of up to 10 different types of goods. Each item has an associated delivery charge. The system will allow the user to select up to 10 lines of goods and a quantity for each line of goods. It should then calculate the total delivery charge. It must add 20% VAT to this net total and show the gross total as well. The system should show a total number of items as well as the delivery charge. It must recalculate in real time (i.e. as soon as a quantity is entered or changed the totals should recalculate). There should be a facility to enter the delivery date and address as well. The delivery date cannot be entered as a date that has already passed.

View 1 Replies

VS 2008 Calculate Delivery Charges Depending On Weight Of Item

Jan 1, 2010

i am making a progrom to calculate delivery charges this depending on weight of the item.i enter the weight of the item in a text box i need it to calculate the shipping cost, currently i have something like this but it is wrong. [code]

View 5 Replies

Make The Parking Project?

Jun 22, 2010

i cannot make the parking project in vb.net

View 1 Replies

Loop That Incurs Charges For Every Percent?

Oct 4, 2010

I have this issue where for every 1% below a 95% threshold a charge of £67 is added. For instance if the percentage drops to 70% I would need a method of totalling the charge for every percent.

Would I need to use a Do....While loop then the if...then statements?

View 2 Replies

Preview And Print Containing All Charges Selected

Nov 21, 2011

I am at a road block on how to print all of the items selected since last clear. A File menu should allow the user to print preview and print a document that contains the charges selected since the last clear including the total of all shipping charges selected When I click print preview I get the entire program screen, I need it to just show weight, zone and charges of everything I have selected.

Public Class Form1
' Declare Global-Level variable.
Dim RateDecimal(,) As Decimal = {{1D, 1.5D, 2.4D, 1.85D}, _
{1.58D, 2D, 2.4D, 3.05D}, _
{1.71D, 2.52D, 3.1D, 4D}, _
[Code] .....

View 4 Replies

Display Charges For Snowboard Fees With And Without Boots?

Sep 30, 2011

So i have a program that is supposed to display charges for snowboard fees with and without boots. The charges are 20 for without and 30 with, and i have already declared them as constants. I have inputs for how many boards the user has.

My question is how do i create a summary to indicate the total number of snowboards w/ and w/o boots, total charges and average per customer.

View 2 Replies

VS 2008 - Printing Invoices For Customers With Charges

Apr 27, 2009

I'm developing a small app to for a vehicle rental company. They require the app to print invoices for customers (fuel usage and etc) with charges. I was thinking of outputting row by row to a html (file) table and populating qty,amount,final amount etc programmatically. And letting the user view and print that html file.

View 3 Replies

Add Charges To Account Specified From A Textbox And Change Results Of Balance

Mar 5, 2009

I'm trying to add charges to the account, specified from a textbox and change the results of the balance.It works to a point, that it adds a number (1) and then when it comes to adding another number. it kinda remembers the previous one in addition to the next one Im adding to it.I'm working with class instances too, so if there is a problem with that, please point it out. [code]

View 3 Replies

Print Preview - Pulling Data From Database And Printing Necessary Charges To The Invoice?

Jan 15, 2012

I generate a print preview, the only thing is, if there is enough data to fill like 2-3 pages I don't know how to generate a new page. It only fills the first page and that's it....

Private Doc As New PrintDocument()
Private Sub btnPrint_Click(sender As System.Object, e As System.EventArgs) Handles btnPrint.Click[code].....

most of the code it's just pulling data from database and printing necessary charges to the invoice, but if the invoice is more than 1 page then I don't know what to do because it only generates 1 page.

View 2 Replies

Make A Small Program For Ticketing On A Parking For A Small Hotel?

Aug 27, 2010

I need to make a small programm for ticketing on a parking for a small hotel.So i have 2 Printers pariking In (for delivery of the tickets) and 2 Readers PArking Out.Both Printers and REaders are working Serial.So i need to poll the serial ports of the printers and readers every second.The data is stored on a SQL database so i need to read and write in the database.Can i do this with 1 PC and 1 programm or 1 PC and 4 programms that are runnning at the same time ?

View 2 Replies

Date Method - Calculate The Number Of Years For My Calculate Age Event Handler

Mar 30, 2009

I am trying to calculate the number of years for my calculate age event handler, however i am apparently missing a method or whatnot because im trying to calculate the age , can anyone suggest help on this. I need to subtract years to get my age but when i try the birthdate.Subtract (currentDate) method i get an error about not able to convert from LONG?

So below is what I have.

Private Sub btnCalculateAge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateAge.Click
Dim currentDate As Date
Dim BirthDate As Date
Dim Age As Long

[CODE]

View 7 Replies

Calculate Age In .net?

Nov 3, 2010

when i enter the date of birth using the datetimepicker box it automatically compute the age and output in a textbox.text?

View 2 Replies

How To Calculate With Mod

Nov 24, 2009

I have the following code, the answer should be 2 though I am getting 3 everytime

[Code]...

View 4 Replies

C# - Calculate A Formula Which Changes Value Each Day?

Feb 25, 2009

I use the following columns stored in a SQL table called tb_player:

Date of Birth (Date), Times Played (Integer), Versions (Integer)

to calculate a "playvalue" (integer) in the following formula:

playvalue = (Today - Date of Birth) * Times Played * Versions

I display upto 100 of these records with the associataed playvalue on a webpage at any time.

My question is, what is the most efficient way of calculating this playvalue given it will change only once a day, due to the (today-date of birth) changing? The other values (times played & versions) remain the same.

Is there a better way than calculating this on the fly each time for the 100 records? If so, is it more efficient to do the calculation in a stored proc or in VB.NET/C#?

View 2 Replies

Calculate A MD5 Hash?

Dec 1, 2010

I have an openfiledialog, I show the dialog and the user selects there file. How could I calculate the MD5 hash of the OFD.filename/file opened? Or calculate the SHA1, what ever is easiest.

PS: This is in Visual basic 2010 Express.

View 2 Replies

Calculate All Possible Values?

Jan 12, 2011

Dim
Field1 as
Integer
() = {0, 1, 2, 3, 4, 5, 6, 7}

[code]....

View 3 Replies

Calculate Different Between All Numbers?

Sep 4, 2009

i have the numbers in listbox as below:

01
02
04
09
10

the question is ..how to calculate different between all numbers... exampel between 04 and 09 ,we have 05,06.07 and 08 between 09 and 10 is 0

View 8 Replies

Calculate From Listbox?

Nov 8, 2011

I have buttons with values. for exmp. btn1 = 5.50 btn2=3.25 etc...when someone click on btn will ask how many of these and let say you say 3 it will multiply that with 5.50 and show it on listbox.

View 1 Replies

Calculate How Many Day Is There Before 05/12/2010?

Feb 9, 2010

I have a project to calculate how many day is there before 05/12/2010.

View 10 Replies

Calculate Only The Wanted Value For N?

Oct 7, 2011

I am struggling with this code that I Have to do about calculating the nth term of the Fibonacci series. The program is supposed to take the value of n and return the corresponding nth Fibonacci number.If the function is given an
invalid n value, it should return -1.

[Code]...

View 1 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 The Avg Speed In Km/h?

Jul 20, 2009

Given a distance (50km) as integer: 50

And a time as string in the following format:00:02:04.05

hh:mm:ss.ms

How would I calculate the avg speed in km/h?

View 4 Replies

Calculate The Avg Value Of Two Different Sql Table?

Jun 29, 2011

I have 2 tables in sql server

1) I want to join those tables.

2)I have 2 columns in the table for eg:- outside temp and power by selecting the outside temp i want to calculate the average of the power with similar values.

View 6 Replies

Calculate Variance And Std Dev

Apr 30, 2009

how i'd solve for variance and Std. deviation. the project is meant to record housing prices, put them in a list box, and then compute these calculations

Public Class Form1
Dim intclicks As Integer = 0
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub

[code]....

View 3 Replies

Can Not Get Monthly To Calculate Right

Mar 24, 2011

Well I am working on this homework for my class and everything is ok but i can not get the monthly to calculate right. Cause when I taype in allen with the code of 1 the monthly should be 500 and the commission should be 1005. I have been working on this for days.[code]

View 5 Replies

How To Calculate 360 Values

Feb 12, 2007

I have to calculate 360 values, for every degree 1. I've calculated all the values but my problem now is that i have to put all of them in a graph with x and y axes that are labeled but I don't have a clue how to begin.

View 39 Replies







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