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


ADVERTISEMENT

Get The First Store To Calculate The Total 5 Payroll Inputs But It Is Only Calculating The First Entry?

Apr 15, 2012

I am trying to get the first store to calculate the total 5 payroll inputs but it is only calculating the first entry I am not sure what I am doing wrong. Also if I click on the cancel button in my inputbox it bombs.

Private Sub calcButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles calcButton.Click
' Dim storeTotal As Integer
' Dim store As Integer

[code]....

View 8 Replies

How To Calculate Discount In Percent % And Get Total In Total Column

Jun 8, 2011

I am using visual basic 2008 amd creatomg a datagrodview format like below [code] Now I wnat to get total balance in total column after less discount in percentage with ENTER EVENT proceedure and get the whole total column balance in a textbox i.e Net BalanceTextBox. Please tell me how to calculate discount in percent % and get total in total column and also tell me how to move cursor in next cell instead of bottom row in datagridview.

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

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

Program To Calculate The Total And Average Rainfall?

Feb 14, 2010

For my programm I was told to do a programm to calculate the total and average rainfall. I have done so, but now I am supposed to use two function procedures to calculate the total and average rainfall. I can not seem to figure it out and it is very frustrating.

[Code]...

View 5 Replies

Sub Procedures - Pizza Vendor - Display An Itemized Bill - Calculate The Total Cost

Oct 27, 2009

This is my project for class and this is what i have so far but my teacher gave me no credit. What am i doing wrong? i tried rearranging it but no success.

A fast-food vendor sells pizza slices at $1.25 each, fries at $1.00, and soft drinks at $0.75. Write a program to computer a customers bill. The program should use 4 subprocedures that do the following:

1. read in the amount of each item ordered

2. calculate the total cost

3. display an itemized bill

4. read in the users full name from a textbox, and display a sentence, addressing the user by first name only and in upper case characters, informing the user of their bill

Here is an example itemized bill:
Item Quantity Price
Pizza slices 3 $1.25
Fries 4 $1
Soft drinks 5 $0.75
Total $11.50

Example sentence for point 4: if the user name was entered as John Smith, you would display the sentence JOHN, your bill is $11.50.

MY

Public Class Form1

Sub pizza(ByVal pizzap As Double, ByVal pizzanum As Double)
lstoutput.Items.Add("Pizza Slices" & pizzap & "and" & pizzanum & "is" & (pizzap * pizzanum) & ".")

[CODE]....

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

Program A Form To Calculate Rainfall Total,average,maximum, And Minimum?

Mar 15, 2010

Im trying to programme a form to calculate rainfall total,average,maximum, and minimum.how do I create the input box that opens to input the info I cant seem to find it in the tool box. Am i Missing something, and how do I set a array to calculate?

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

Loan Calculator, Total Of All Payments?

Mar 30, 2009

I need to find the total of all payments at the end of the loan period.example, Mr. X borrows $100,000 for 15 years at the rate of 10%. The total of all payments is supposed to be $193,428.92.

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

Loop Through Top Level Folder In Mapped Drive And Give Total Count Of Files And Total?

Oct 28, 2008

I am working with VB 2008. I want to be able to run this program say in N: and it will show me in an excel sheet the following:

Folder Path Size(GB) Count of Files
N:Clients 0.53 308

where clients contains subfolders and files and the size is the total of all those files within each folder and the count is the total within each folder also.

This works fine as it is but i have to select one by one the top level folders and some of them are huge so it takes forever to give me an answer.

1) I would like to see in my spreadsheet the following by only select the network drive n:

Folder Path Size(GB) Count of Files
N:Clients 0.53 308
N:Software 10.7 15430
N:Billing 0.98 105

2) I would also like to know if this is the faster method.

3) I tried adding a progress bar so that the user can have an idea of how much this will take but i had to remove because it was not working.

4) I would like to see the folder name, size of folder and count of files in the listview.

Here is the code:

Imports Microsoft
Imports Microsoft.Win32
Imports Microsoft.Win32.Registry
Imports System.Collections

[code].....

View 5 Replies

Distance Traveled Calculator - Total Miles Per Hour?

Mar 5, 2011

Here is the code. The only problem I am having is getting the total miles to display. How do I get my listbox to show my total miles broken down to hour1 xx miles. I can get it to show the total miles per total hours driven.

Option Strict On
Public Class frmDistanceTraveled
Private Sub btnCalculateDistance_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnCalculateDistance.Click
' The btnCalculateDistance event hadler calculates the distance
' traveled
[Code] .....

View 1 Replies

Calculate Total Time?

Jan 6, 2012

I have many time result in my hand... like

10.10.23 (hours,minute,seconds)
01.14.15

How can i calculate total time?

View 8 Replies

How To Calculate Total Of A Column In SQL

Nov 30, 2010

I have a sql SELECT statement in vb.net. I have this line of code to calculate a specific percentage of the Net Total:ROUND(Invoices.NetT*'" + txtOnGoing.Text + "'/100,2) As Commission 'txtOnGoing is a text box which pre populates a certain number e.g '10'... this means 10% of the NetT column..The above code works fine, now I want to add the "Commission" Column and display the Total in a text box. Does anyone know how to do this? I know I can use the SUM operator but because the Commission column isnt a column that actually exists in the table I dont know how I could do this.

View 3 Replies

IDE :: Sum Up Total In An Unbound Datagridview Column With Total To Textbox?

Apr 22, 2011

I have 3 columns in a unbound datagridview, "length" "height" and "Total". Total = length x width and the final total in TextBox outside of the Grid. I found question simalar in this forum and tried the code but i am getting errors.The following is the code i am using

Public
Class Form1
Dim UnboundColumn[code]...

View 5 Replies

Calculate The Total Of A Column From A Database?

Apr 19, 2012

I'm having some trouble firstly trying to calculate the total of a column in the database connected to my vb.net project. Then I want to divide that total by the number of items in a listbox. This is my code so far:

Private Sub btnavresult_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnavresult.Click
Dim sqlx As OleDbCommand = New OleDbCommand

[Code]......

I get an error saying "No value given for one or more required parameters." when I try to run my program on this line "Dim rdr As OleDbDataReader = sqlx.ExecuteReader()"

View 6 Replies

Calculate Total Of Decimal Textboxs

Jun 10, 2009

I have two textboxs are formated to decimal type. i want create thirth textbox and get total of above two textboxs. how can i do that.

[Code]...

View 13 Replies

DB/Reporting :: Calculate The Total Sum Of Data In CR?

Dec 6, 2008

How to get the total sum of my fields that are not duplicated? The highlighted are examples of my duplicated fields (both lec and lab) but they don't have the same time.

View 1 Replies

Eliminating (Calculate Total Due) Button?

Apr 6, 2010

This is the code that I have so far, the program works, etc.. How to delete the "Calculate Total Due" button and write the code so that the total due changes when any of the three options is changed/selected.

Option Explicit On
Option Strict On
Option Infer Off
Public Class MainForm
Private Function CalcResidentialTotalDue(ByVal premiumChannels As Integer) As Decimal
[Code] .....

View 3 Replies

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

Pmt - Calculate Total Interest Paid?

Apr 13, 2009

I have successfully written this interest calculation, although it is based on the ppmt function and adding up the interest from each payment. This is quite a long looping process.. And it is not accurate because of the rounding of each payment. I was wondering if someone knows if there is a formula I can use, or if the pmt function is capable of this? (e.g. Mortgage payment - total interest payable over 30 years at 5% ( principle and interest repayments))?

View 1 Replies

Create Pay Calculator Where Would Enter Total Minutes Worked And Hourly Pay Rate

Mar 27, 2009

I have this homework assignment where we have to create a pay calculator where you would enter the total minutes worked and the hourly pay rate. and then i have to create the code to show what the total weekly pay would be. I have to display the Hours Worked: and the Leftover minutes: I also know that the formula to calculate the weekly pay is totalMinutesWorked / 60 = hoursWorked and i have to use the Mod operator. [code]

View 2 Replies

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

Calculate The Total Fare Of Taxi Journeys?

Apr 4, 2010

tell me what is wrong with this calculation. I am fairly new to vb.net so i'm not particularly clued up! I am using it to calculate the total fare of taxi journeys.

[Code]...

View 6 Replies

Calculate The Total For Bill Amounts In An Arraylist?

Oct 13, 2011

I want to calculate the total for bill amounts in an arraylist. I have already used this code:

[Code]...

View 1 Replies

Calculate Total Salary According To Attending Days?

Aug 15, 2011

i want to calculate total salary according to attending days.

View 5 Replies

Calculate Total Time In Crystal Report?

Mar 14, 2010

I am creating a report in vb.net using crystal reports and need help on finding sum of dailyworkhrs in my crystal reprot. I have a feld which calculates dailyworkhrs and now i would like to find the total of it. For example:

07:30:12
08:30:10
OUTPUT Should be
16:00:22

View 6 Replies







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