Display The Values Of Domestic, International, And Total Sales Of Company "Conway Enterprises

Aug 15, 2009

I'm making an application in school where I have to display the values of domestic, international, and total sales of company "Conway Enterprises." Everything seems to be working except it is not displaying the totalCompany sales as a currency. I'm sure it's probably an easy fix but I've been searching the internet and re-reading my book for awhile with no results. Below is the code, as I said everything seems to be working fine aside from adding the two array values and then displaying them as currency.

[Code]...

View 4 Replies


ADVERTISEMENT

How To Accumulate The Sales Amount And Then Display The Total Sales

Apr 5, 2011

I need my program to output and input a customer ID and sales amount multiple times. I need it to display both outputs, customer ID and sales amount, on mulltiple lines. It also will need to accumulate the sales amount and then display the total sales. it should look something like that.[code...]

I think that I was supposed to use a messagebox but wrote the program a different way. the form.vb was already locked, but I added two text boxs. Not sure if I did this right because I need to enter multiple sales for one customer ID.[code...]

View 1 Replies

Domestic And International Figures Keep Coming Out To Zero

Nov 24, 2011

Does anyone know why the domestic figure is showing up in both the domestic and international textbox? And why the totals of the domestic and international figures keep coming out to zero? [Code]

View 4 Replies

Showing Up In Both The Domestic And International Textbox?

Nov 24, 2011

Does anyone know why the domestic figure is showing up in both the domestic and international textbox? And does anyone know why the totals of the domestic and international figures keep coming out to zero?

'Basic Info:
'Month Domestic International
'1 100,000 150,000
'2 90,000 120,000
'3 75,000 210,000

[Code]...

View 2 Replies

RegEx - International/Domestic Phone Numbers?

Mar 25, 2009

(^(+[1-9][0-9]*(([0-9]*)/-[0-9]*-))?[0]?[1-9][0-9-]*)/(^([0-9]( /-)?)?((?[0-9]{3})?/[0-9]{3})( /-)?([0-9]{3}( /-)?[0-9]{4}/[a-zA-Z0-9]{7}))$I'm trying to write a RegEx to check for International and Domestic phone numbers. This appears to be working for domestic phone numbers but it doesn't look to work for international numbers. Is there something I'm missing? Can anyone else try this with numbers you know and just let me know if it's missing anything?

View 1 Replies

Use The Accumulator To Total The Sales?

Mar 23, 2010

I am having some trouble with my program that I am doing. I am supposed to code the application so that it creates a report which I have done. Now the problem that I am having is I have to use an accumulator for the total sales amount in the access file. I am stuck on how to have it say "Total Sales:" and then have the accumulator with the ammount of $32000 next to it becuase I have to use the accumulator to total the sales.

[Code]...

View 1 Replies

How To Add Values Entered Into TextBox1 And Display Total Sum Into TextBox2

Sep 16, 2011

How can I get the sum all the values a user enters into TextBox1 to display that sum into TextBox2.The user is going to enter one value one by one. The user enters '1' into TextBox1, therefore, TextBox2 should display '1'.If the user than enters '2' into TextBox1, TextBox2 should display '3'.If the user enters '2' into TextBox1, TextBox2 should display '5'.And so on.TextBox2 should only display one value at a time, not one after another.I am using double because I need decimal places.I have a ListBox1 where it displays all the values entered by the user in rows one by one, but I prefer not to use the ListBox1 to get the sum of all the values entered in TextBox1 and to have TextBox2 show that sum. Because in that ListBox1, I have few other things in there, like Strings, which will not allow the sum of all the values entered in TextBox1 to be calculated and displayed in TextBox2.Not sure if this matters or not, but I thought it might.So only need TextBox2 to have all the values entered in TextBox1.If 1 was entered in TextBox1, TextBox2 shows 1.Then 2 is entered in TextBox1, TextBox2 will show 3.

View 18 Replies

Produce A Total For Values In A Datagrid And Them Display Them In A Label?

Jul 30, 2006

How can I produce a total for values in a datagrid and them display them in a label?

View 1 Replies

Payroll Calculator - Program Must Calculate And Display The Total Pay In The Total Pay Label

Oct 6, 2010

The pay rates for the project are:

a. Level 1 - $10.00
b. Level 2 - $12.00
c. Level 3 - $14.00
d. Level 4 - $16.00
e. Benefit Deduction Rate - 0.10
f. Overtime Factor - 1.5

For ease of program maintenance, all of the above rates and factors must be stored in module level constants. All references to pay rates in the program must refer to the module level constants.

When the Calculate button is clicked:

a. The value in the Hours text box must be validated to insure that it is numeric value greater than zero.

1. If the value is not valid, a message box must appear as shown below and the user must be offered the option to continue processing or quit the program.

2. If the user chooses to continue processing, the focus must be set to the Hours text box.

3. If the user chooses to quit, the program must close immediately.

b. If the value is valid, the program must calculate and display the total pay in the Total Pay label.

1. The pay rate is determined by which Job Grade radio button is checked.

2. For hours less than or equal to 40, the total pay is the hours times the pay rate.

3. For hours greater than 40, the total pay is 40 hours times the pay rate plus the hours in excess of 40 hours times the pay rate times the Overtime Factor.

4. If the Full Time radio button is selected, the total pay must be reduced by the Benefit Deduction Rate.

5. The value displayed in the Total Pay label must be formatted with a dollar sign and with two decimal
places.

6. The focus must be set to the Hours text box.

Why i get an error when i try to run this code

Code:

Also the message box, both yes and no close the program.....

View 10 Replies

When The User Enters The Name "eugene" The Program Is Suppose To Calculate And Output The Total Monthly Sales?

Mar 27, 2011

My code works correctly if I do not have the DO WHILE statement, however we are suppose to have it loop. Which it will continue to ask for the salesman's name, code, etc. but when the user enters the name "eugene" the program is suppose to calculate and output the total monthly sales and the total commission dollars. What is happening is that when a user enters "eugene" the program is not recognizing it to do what it is suppose to do(calculate and output the total monthly sales and the total commission dollars) I am stuck and need assistance on how to make it recognize eugene. I am also having trouble with trying to figure out how once eugene is entered to tell the program to add the salespersoncommission and monthly sales of each case to get the totals to output to the user. Can you add the cases?

Option Explicit On
Option Strict On
Module Lab14

[code].....

View 8 Replies

Sales Commission Program - Output Values?

Oct 21, 2009

I wrote this code and everything works as planned:
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
' Prompt user to input value for name
[Code] .....

For the finished project I am supposed to have it output the total sales and commissions for that were calculated before the sentinel value (Eugene) was entered. Here is what I tried and here is where I am lost.
Module SalesCommissionProgram
Sub Main()
Dim name As String = 0
Dim code As String = 0
Dim monthlySales, commissionDollars As Double
[Code] .....

View 10 Replies

Press The Calculate Button It Somes Up With Sales Totals And Sales Commissions?

Nov 3, 2009

I am trying to get a function so when i press the calculate button it somes up with sales totals and sales commissions. this is just a simple project i just cant find the answer.

View 5 Replies

Calculate And Display A 2% Commission On Sales Entered By The User And?

Mar 31, 2009

When I run this application the 2% menu item works fine but the 5% does not. It does nothing at all. I'm stuck.

[Code]...

View 2 Replies

Program A Selection Structure To Display Different Commission Rates Per Sales Entered In A Textbox?

Apr 1, 2011

So I'm trying to program a selection structure to display different commission rates per sales entered in a textbox.I need to have the commission total display alone. I have the simple interface done, but I'm having trouble forming the selection structure.

View 1 Replies

Asp.net - Total Value Of All Radiobuttonlist Values?

Feb 11, 2011

I have 20 radiobuttonlists on a page. Each has 4 options with values 1, 2, 3 and 4.What I need to do is on submitting the form, get the total value of all the radiobuttonlists (eg 3+1+2+3+4...) divided by the total number that have actually been filled in (none of them are required fields so anything from 0 to 20 of them could have been filled in) - hence getting an average value.

View 1 Replies

My Class - App - Add To The Total That I Have With New Values

Apr 20, 2010

I am having a issue with my app, I know it is going to be something easy that I am doing wrong, but I just can find what it is. I am to take a quantity of an item and then * by the price of the item to get the total. This works fine when I get the first values, but if I want to add to the total that I have with new values, well, thats were I am having issues.

Here is my button

Private Sub Btn_Add_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Btn_Add.Click
'Declaring the instants of my class
Dim Sale As New BookSale

[CODE].............

And here is my class

Public Class BookSale
'Setting the vars so the can be used as calculation
Private dec_quantity As Decimal
Private dec_price As Decimal

[CODE]..................

View 14 Replies

Add Values In Listbox To Total Up In A Textbox?

Sep 16, 2011

Before I begin, want to say this is my first post and I am a newbie. My first time using VB. How can I add values in a listbox that were entered by a user to another textbox in total?For ExampleSay my code for now is this.

ListBox1.Items.Add(textBoxValue.Text)
Dim X As Double
X = textBoxValue.Text

[code].....

View 7 Replies

Counting Total Fail Values In Column

Nov 12, 2011

I have put datagridview on form. I have add one column and 7 rows. Beginning four row contain value "PASS" respectively and last three rows contain value "Fail" respectively. I have to count total fail values in a column in CellEndEdit Event.

View 2 Replies

Display The Total Value Of DecMiscCharges + DecCharges

Dec 3, 2009

Trying to figure out why exactly it will display the total value of decMiscCharges + decCharges.

[Code]...

View 5 Replies

Display Total Up Value From Progress Event

Jun 21, 2010

I'm trying to display the total extraction progress of a zip file as below. This gives me the total file size of all uncompressed files in the zip:
For Each backup In zip
TotalSize = backup.UncompressedSize + TotalSize
Next

I'm then using this to get the current bytes transfered:
TranferTotal = e.BytesTransferred + TranferTotal

The problem is this value resets after each file is extracted from the zip. I was expecting the above to "tally up" the total so I could use it for the progress bar but it seems to still reset after each item? Also, I'm using a global varible for the transfer total, if there a better method to transfer this information to the StepEntryProgress? The reason I'm doing this is because the DotNetZip Library does not support multiple extraction in this way, so I need to tally up in this way.

Code:
Imports Ionic.Zip
Imports System.Threading
Imports System.ComponentModel
Public Class Form1
Dim TotalSize = 0
[Code] .....

View 9 Replies

How To Calculate And Display Total Due Amount

Oct 6, 2009

This should calculate and display the total amount due. There are 3 radio buttons, A, B, C. Nonprofit should get a 20% discount from final charges.

Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub RadioButton1_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles radA.CheckedChanged
[Code] .....

View 5 Replies

VS 2008 How To Display Total Time

Jan 20, 2010

I'm trying to have a Label display the total time the program has been open and updated in real time.

View 9 Replies

Calculate - Display A Total Gross Earnings

Jun 15, 2009

In my form I have Gross Earnings Calculated. Then that goes to a label. I then click a button to Clear Current Employee. Then I can input another employees info to get that employees Gross Earnings. Well when I click View Summary I want to display a Total Gross Earnings. The Total Gross Earnings should be a Total of all Employees Gross Earnings.

View 4 Replies

Calculate The Total Spend Of The Project And Display It On Either The First Tab?

Jun 23, 2011

my question is regarding a calculation and control display that I am doing.

The application is a project tracker, and I am trying to calculate the total spend of the project and display it on either the first tab if it is an open project or the second tab if it is a completed project. For some reason, it is showing 0 for all but one of the projects. If anyones eyes can see the problem I would be really greatful. The code is below

[code]...

View 1 Replies

Display A Grand Total From A Text File?

Feb 8, 2009

i have a list of 5 names and 5 amounts contributed saved on a text file called:

"G:mailinglist.txt"

Iv created a button and a textbox beside it. Basically i just want to be able to select the button and the values from the text file are added to display a grand total into the textbox.

The values are:

34
70
20
12.50
9
20

I would also like to have the text box display the grand total in Pounds (�) but again i do not know how to.

View 5 Replies

How To Get Total Sum From A Listbox And Display It Automatically Into A Textbox

Mar 15, 2012

Ive got a Listbox which displays a data/record from a SQL database, it displays "Amount" and only numbers would appear. it has a datasource.

Goal: I'd Like to get the total sum of those numbers from the Listbox and Display it to a textbox automatically or by button click event.

I thought of two ways to do this, but I don't have a clue on what to do.

1. I tried summing it all up on that exact Listbox and display the total on the textbox, here's the code that i came up with..

[CODE]...........

But the data im working with is from a database, so i got this error:Conversion from type 'DataRowView' to type 'Double' is not valid.

2. I thought of having another Listbox and "Copy" the contents shown on the Listbox1 and then sum it all up on the Listbox2, then lastly display the Total on the Textbox. I did a little research on how to accomplish that but all the clue i found is that i have to disconnect the listbox data from the datasource from being bound, and reconnect it again.. I really don't have any idea on how i could do that with an SQL database.

Here's a quick flow on what im trying to accomplish to make things.

Record from Database -----Displays on---> Listbox1 -----User Clicks--> Button1 ----Displays Total sum on----> Textbox1

View 11 Replies

VS 2010 - Textbox In Form To Display Total

Mar 5, 2012

I have a text box in form1 that displays the total, I want to carry this over to form 2 into another text box as I navigate between them, how would I do this? Also I have a button on form2 to return to form1 but I need all the data that has been input by the end user to be cleared from both forms when returning, again how would this be completed?

View 8 Replies

Code Total Cost To Give Pound Sign With Total Cost At Moment When Total Comes Up

Jun 7, 2010

How do I code the total cost to give me a pound sign with the total cost at the moment when the total comes up for an example it gives me 3.6 when I need it to show £3.60 here is the code I have so far. [code]

View 2 Replies

VS 2010 Add Values Of 7 Trackbars And Then Do Tasks According To Size Of The Total Value Number

May 21, 2012

I need to add values of 7 trackbars and then do tasks according to size of the total value number.

[Code]...

It always writes "BIG".. even if the total number is lower than 50...

View 4 Replies

Display Page Total In Crystal Report Viewer?

Apr 6, 2009

i am using crystalreport document and crystalreport viewer for creating one report this is the code...

[Code]....

using stored procedure "spvatregister" , i am getting the report on report viewer

how can i show the total amnt (amnt is a parameter of spvatregister) of each page on reportviewer

View 1 Replies







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