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


ADVERTISEMENT

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

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

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

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 - 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

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

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

Percent-encode URL Twice?

Apr 11, 2012

I have been given some instructions to percent encode a URL twice. I know how to percent encode a URL once but how do you do it twice? Surly when it is encoded once, it will be the same when encoded again.

View 2 Replies

Add Convert A Variable To Percent?

Jun 21, 2010

Public Class Form1
Private Sub btnCompute_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCompute.Click
Dim percent As Double

[Code]....

Above is the code i have created. I am having issue with the variant "Percent" to display 37.50% instead of 37.5.

View 4 Replies

Calculate Percent From 2 Different Inputs?

Oct 12, 2010

vb.net
'' Project name: Golf Pro Project
' Project purpose: Displays the commission based on a

[code]......

i dont know how to assign variables and im juist totally lost right now and this is due today and i was sick 2 weeks and am 2 chapters back.

View 11 Replies

Filter Percent (%) And Apostrophes (')?

Feb 11, 2009

I am trying to filter fields in a table that contain percent (%) and apostrophe (') characters. I kow that to filter an apostrophe you need to add another apostrophe (''). However, when a text contains the percent (%) character in combination with an apostrophe (') character, an exception is thrown. Also, when using the % character in a filter string, it will be function as an "*" (fields starting or ending with). I need the % to be considered as a character whenever the % makes part of a string in the field.

Dim TheTable As New DataTable
Dim col As New DataColumn("Col1")
TheTable.Columns.Add(col)
Dim TheRow As DataRow = TheTable.NewRow

[code]....

View 6 Replies

Getting A Progress Bar To Show Percent In It?

Apr 13, 2009

I need help getting a progress bar to show percent in it. I want to have the percent in the middle of the progress bar, like is sometimes seen in a few programs. I have googled this, and can't find anything. I found something on The CodeProject, but it was just a label and drawing a rectangle behind it. I would like the actual progress bar that is available through the toolbox.

View 5 Replies

Percent Of A Word In A Richtextbox?

Sep 7, 2011

Is possible get the percent of a word in the content of a richtexbox? if yes, can you give me some example?

For example if I have 100 words in a richtextbox and I want to know what is the percent of a word in this content (for example if a word called "music" is repeated 10 times = 10%. If this is not possible in a richtextbox, is possible in other box like textbox?

View 4 Replies

Set A Form's Location By Percent?

May 20, 2009

i was wondering if it's possible to do such:

'form location Me.Location = New Point(10%, 50%)

i know this code doesn't work as it looks, just loads the location by pixels. this is just a question, hopefully with a working code for a marked answer..so much work to do and so many choices to choose from.

View 7 Replies

Evaluates Loop Condition In Do...Loop Statment To Determine Whether Loop Instructions Should Be Processed

Mar 14, 2011

Makes the following statement about the code below:

**"The computer evaluates the loop condition in the Do...Loop statment to determine whether the loop instructions should be processed. In this case, the inputsales <> String.Empty condition compares the contenst of the input sales variable to the String.Empty value. As you know the String.Empty value represents a zero length, or empty, string if the inputsales variable is empty, the loop condition evaluates to True and the computer process the loop instructions. *If on the other hand the inputsales variable is not empty, the loop condition evaluates to false and the computer skips over the loop instructions.

Based on the code I think it is the opposite: ...that while the inputsales value is not empty it should evaluate to true and process the loop and if it is empty it should evaluate to false and skip the loop?

See below.

Option Explicit On
Option Strict On

Imports System.Globalization

[CODE]...

View 2 Replies

An IF THEN Statement - Using The Second Discount Percent In Any Of The Bronze?

Jun 14, 2009

the code below shows an if statement that is determining a customer type and a discount percent for that customer.But when I run the code it only ever reads the first discount percent even though the allocated price range is above the first discount percents range and should therefore give the second discount percent and i cant figure out why it is not using the second discount percent in any of the bronze, silver or gold statements.

[code]...

View 4 Replies

Avoid Using Percent (%) Symbol In Search

Jun 21, 2010

I have a method that searches a database using the contents of a textbox. I don't want people to be able to type "%" and retrieve all of the info.

View 1 Replies

C# - Format Numeric Value From Textbox As Percent

May 11, 2009

I have a numeric value in a Textbox that I'd like to format as a percent. How can I do this in C# or VB.NET?

View 4 Replies

Format String Value As Percent On DataRow

Feb 24, 2012

I've been at this for an hour, but I can't seem to format a string as a percent while I am looping through a datatable. The string value that is being passed in is "3.22"
Public Function securityDt() As DataTable
Dim secMasterDt As New clsDataSecurity
Dim dt As New DataTable
dt = secMasterDt.getSecurityMasters()
For Each row As DataRow In dt.Rows
[Code] .....

View 1 Replies

Getting CPU Usage Percent Like In Task Manager?

Jul 25, 2007

I'm writing a small App that mimic's the Task Manager and I can get all the running processes images names and physical Memory usage but can't seem to figure out how to get the CPU usage Percent for each process.

opps forgot and as well as the indivdual process usage percent, so the precent each process is using....

VB.net 2003

View 4 Replies

Getting The Percent Button Working Properly

Apr 23, 2011

i followed a few tutorials on here to create a calculator in VB.NET. But i am having trouble getting the percent button working properly.I have tried to come up with some things but nothing i have tried is working.I used this Basic Calculator VB.Net and this one Create a Calculator.I have searched google for an answer but it seems what i have is not working.Im not sure exactly what is needed so i will post all of the code i have. [code] My percent does not work it multiply's by a random number is seems.I am new to VB.NET so im not sure what i am missing.

View 4 Replies

Display Three Rows Of Percent Signs In The MsgLabel?

Nov 7, 2011

We were given this and for some reason I can't get this to work right. Here is the whole thing:The following code should display three rows of percent signs in the msgLabel. The first row should contain one percent sign, the second row should contain two percent signs, and the third row should contain three percent signs. However, the code is not working correctly.

[code]...

View 17 Replies

Function With A Percent Chance To Return True?

Aug 31, 2010

I'm trying to build a function where I can pass in a percentage and it would have that percentage to return a true value. However I'm completely drawing a blank on how to make on such function.

View 3 Replies

Macro In Excel - Increasing Values By 10 Percent

Apr 25, 2010

I'm guessing the reason this macro isn't doing what I want it to is because of an error on my part in the code. Basically, I want the values in the cells pointed out in the code to be increased by 10% each time the button is pushed.

Here is the code:
Sub Add10percent()
IncreaseColumnValuesBy10Percent 2, 0.1
IncreaseColumnValuesBy10Percent 4, 0.1
IncreaseColumnValuesBy10Percent 6, 0.1
IncreaseColumnValuesBy10Percent 8, 0.1
[Code] .....

View 2 Replies

VS 2008 Get The Battery Life Meter In Percent?

Mar 2, 2010

I'm trying to get the battery life meter in percent, so it will be shown on a progressbar when you're on a portable computer.

View 2 Replies

VS 2010 - How To Make Control 50 Percent Transparent

Mar 10, 2011

I'm making a software where I need to have a transparent background in my form and then 50% transparent control. I don't know how to make the control 50% transparent without getting the back color from the form as back color.

View 3 Replies

Win CE 5.0 Code - Display Battery Life Percent

Mar 16, 2010

Trying to find a code to display ' BatteryLifePercent' by itself on the screen of a gps unit running Windows CE Core 5.0. I have absolutely no experience in programming. Just piecing together things I find and slowly learning to make a working program. So if this is possible, could someone post a code for it? Ideally I'd want just the percentage showing on the main page with ability to size font and position somewhere on the screen. [Code]

View 4 Replies







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