Write An Application That Evaluates Weekly Pay For An Employee
Oct 28, 2011
I needed to make an application that calculates weekly pay of employees at an hourly rate. The overtime schema is that: hours less than or equal to cutoff1 are paid regular rate. hours over cutoff1 but not exceeding cutoff2 are paid 1.5 times regular rate. hours over cutoff2 are paid double time or 2 times regular rate. [Code] The employee must choose Category A, B or C depending on the amount they have worked. I am completly new to visual basic, I am not sure how to continue with my if and then statements. I must also create the application with 3 radio buttons, where the user clicks either Category a b or c and then buttons which say calculate and clear. [Code]
View 4 Replies
ADVERTISEMENT
Sep 15, 2009
I have a VB project with a form where user adds/modifies the data, data are stored in SQL. On the form there are 2 tables that are linked by employee ID. When I test the process and insert a new employee record and add new comment for this new employee in DataGridView - when I save it I get an error that "Object reference is not set to an instance of an object". During more detailed debug it says that CurrentCell is set to Nothing - even that I do have values in all fields.I do set employee ID in the related table in the Grid to the value from the employee record - so all primary keys do have value and the comment is saved after all but I get an error and saved comment dissapears from the screen right after saving. When I pull the same new record again - everything is saved. What am I missing and how to avoid the error and dissapearing of the saved comment?
Also - I tried to save the new employee data in the first table first and then add comments - it didn't solve the problem. But if I add first part of information in the main table, save and close the form, then go back and add comment - it works fine. The problem is - it's not convenient for the user - they'd like to enter everything at once.
Private Sub TblCommentsBindingNavigatorSaveItem_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TblCommentsBindingNavigatorSaveItem.Click
Me.Validate()[code]....
View 6 Replies
Sep 30, 2009
You need to design and create a program that accepts input of employee name, employee type, and the number of hours worked each week for two weeks.
You must be able to select an employee type. An employee of type Trainee makes $10 per hour. An employee of type Regular makes $15 per hour. An employee of type Manager makes $20 per hour.
The program should calculate the employee pay for the week. The employee should receive 1 times the regular pay for any hours worked over the prescribed 40 hours in a week. The program should output the following information:
-The employees name without trailing or leading spaces
-Regular hours worked
-Regular pay
-Overtime hours worked
-Overtime pay
-Total pay
The Problem that i am having right now is "Displaying " the overtime hours on my "FORM VIEW" i mean i did the math right its just when i type (lblOverHrs.Text = CDec(CDec(OvrHrsWrkWeek1.Text) + CDec(txtOvrHrsWrkWeek2.Text))
Its says the "OvrHrsWrkWeek1 and 2" are not Declared which are..im not really sure where i went wrong..
Heres my code
CODE:
View 4 Replies
Apr 6, 2010
I'm trying to do a windows application. I have a combobox with this
Dim sql As String = "Select EMPLID from PS_EMPLOYEES Order by EMPLID"
Dim da As New Data.SqlClient.SqlDataAdapter(sql, "data source = DATASERVERR;initial catalog = HRSYS83;user id=sa; password=sa")
Dim ds As New DataSet
[CODE]...
This works fine, but i want to load a textbox with the name of the employee that i selected in the combobox.
View 18 Replies
Mar 8, 2009
I'm in the process of developing an application to keep track of employee's shifts. the top of the grid should display the days, the left side the employee name. The grid will display the type of shift (N for night, D for day) I just need some direction as to how to develop the calendar grid...I have a database with all the required information (I have a "Shifts" table, which contains the employee name, the date of shift, and the type of shift). Times are not relevant since employees will be either working a night or day shift (type of shift). I'm using VB9 for this project.
View 1 Replies
Jun 1, 2008
I have to create an online application which i can apply it on every employee's computer in my company and i have create the application on visual basic 2008 and SQL 2005 using windows application and database. The problem is i do not understand how am i going to run the application on every employee's conputer. Because i have create the application on my computer, must i install SQL on every employee's computer? or any other software i have to used.
View 8 Replies
Oct 25, 2009
I'm using VB2008 SP1 Express. My app downloads a file from a FTP and compare inside it the registered values,but some users have problems when validating the key,finnaly I found that the following code evaluates TRUE
[Code]...
View 4 Replies
Jul 27, 2010
I have three classes Employee, Manager and Salesman. Manager and Salesman classes inherits Employee class.
Employee :
Public MustInherit Class Employee
' Field data.
Protected empName As String
Protected empID As Integer
Protected currPay As Single
[CODE]...
Manager :
Public Class Manager
Inherits Employee
[CODE]...
Salesman :
Public Class Salesman
Inherits Employee
[CODE]...
Now I have created a object of salesman and manager using the following code:
Dim objSalesMan as Employee=new Salesman("xyz",1,2000,5000)
Dim objManager as Employee=new Manager("abx",2,5000,"production")
Is this a good programming pratice or should I use:
Dim objSalesMan as new Salesman("xyz",1,2000,5000)
Dim objManager as new Manager("abx",2,5000,"production")
View 6 Replies
Oct 1, 2011
I need to use a select case statement that evaluates PostDiscountCost based on the value 0 to 999.99, 1000.00 to 1499.99, 1500.00 to 2499.99 and one that doesn't fall within the others. The message box's going to be triggered by the vbYes in the confirm exit message box. Im not asking anyone to do it for me, I just have no idea where to start it, if I need to declare anything else and if I'm on the right track. Code Attached.
View 1 Replies
Aug 17, 2009
Is there in the deep of the Framework 3.0 Namespaces a function to get the EndDate for weekly Appointments?
View 1 Replies
Aug 17, 2009
I am writing a program to help simplify a weekly list of events for a web site without having to manually edit HTML code every single week.
The program takes event information from the user, stores it in a list box, and generates HTML code based on the user entry. The program basically enters in the user's inputted fields into a pre-set HTML template.
Here's how it's done:
1) I have a number of text boxes that the user fills out: "Date" "Event Title" "Age" "Location" "Details" etc.
2) The user clicks on the "ADD" button to store this event. The "Event Title" is shown in the list box, but I'd like for all of the information that was taken from the user before they clicked on "ADD" to be recalled in another text box.
3) The user can move events up or down in the list box, or remove them completely.
4) When the events have been sorted, the user hits the "GENERATE CODE" button and the html code is generated.
So lets say the list looks like:
- DJ Jim at Katrina Lounge
- DJ Heather at Zanzibar
- DJ Manny at Skybar
When the user clicks on the "DJ Jim" event, the full details that they entered earlier will be shown in a text box to the right of the list box. When they click on the "DJ Heather" event, the text box will reflect the details they entered for the "DJ Heather" event, and so on.
When the user click on "Generate", the program must be able to go through each item in the list box, recall the event details for that item, and plug in the variables for that item into the HTML code template.
The main question is, how can I store the information for each event (Event Title, Date, Location, etct.) while displaying only the Event Title for that even in the list box? If I know how to code this, it will be simple to display this information in the text box and recall the variables to plug into the HTML code
So the structure would be:
CODE:
View 3 Replies
Apr 6, 2009
I am writing a program to analyze error logs from an existing application, and I want to consider only lines that have a Date/time stamp at the beginning of each line.( in the format "03/13/08 08:03:58") I am extracting this as a string and want to evaluate it to make sure it is a valid date so I am using "IsDate(Mid$(TextArray(i), 1, 18))". The problem is that IsDate evaluates False even when the string I am passing should be valid (eg. 03/13/08 08:36:59).
[Code]...
View 17 Replies
Jul 28, 2009
My code is not working it highlights this intHoursWorked = Convert.ToInt32(strHoursWorked) when i run the program and says 'format exception was unhandled' ? Someone said to just initialize the value of lblleftoverminttl ,txtttlminworked, intHourlyPayRate but im not sure what that means?
Here is the rest of my code:
Public Class Form1
' Weekly pay for an hourly employee
Private Sub btnWeeklyPay_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
[CODE]...
View 14 Replies
Jun 9, 2011
i wan set a timer in my program to execute a certain function daily,weekly or monthly(which will decide by the user)!User also can execute manually the certain function at anytime!any1 can teach me how 2 do these 2 function in my program?
View 10 Replies
Mar 16, 2011
I am trying to build a program that calculates the minutes worked times pay rate equals amount of weekly pay this is what I got but it doesn't calculate
CODE:
View 3 Replies
Sep 7, 2011
The above code does not appear to be evaluating correctly, at all for that matter. The code block is being processed regardless of the HasRows state. Any idea whats going on? I'm assuming its a setting in the Web.config or VS Dev environment thats the behavior.If I change it to
If SQLDataReader.HasRows = True Then
everything evaluates correctly.
View 1 Replies
Nov 13, 2009
I saw that there is an AnnualBolded and a MonthlyBolded. How can I create a "weekly bolded"? Let's say that I want every thursday and/or friday bolded.
View 15 Replies
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
Dec 23, 2011
i want to calculate the Productivity for the employee when he saled it will add to his account by his ID so i want to calculated by ID from log in ?
View 6 Replies
Oct 20, 2010
I am developing an application for employee goals and management. The application has a login screen that when a employee successfuly logs in takes him to main screen that contains a table to enter Items, Accesories, Insurance,ect. and will also allow the employee to see data from previous days. Now my question is how do I make this table that is on the Main Screen present data that belongs to only to the employee that is log in? And also How do I let this employee enter the sales for the day, update
and record into this database? Do I have to make different databases for each employee?
View 2 Replies
Jun 20, 2009
I am trying to Mask Employee ID, so the user doesn't have to type the entire employee ID number CCETA01. I want them to type only two digit numbers. e.g. 01 to 99...
Here what I did but its not working:I draged from toolbox a Maskedtextbox on the Form and in the textbox progerties I put cce a. The entire number show up on my textbox pretty good but it does not allow me to change the two digit numeric number?
View 2 Replies
Dec 8, 2011
Employee Data Application
Part 1: Recording employee data
For Gams, create an application that allows a user to enter the following employee
[code].....
View 2 Replies
Sep 22, 2007
want to know how to code in vb for developing a payroll software want 2 make software for a industry of min 200 employee's..
View 8 Replies
Jun 11, 2011
i wanted to show the name of an employee once he/she typed the correct id number and password.. and it will show the name into the name textbox... same as the the current time once the user clicked the time in button it will show into the time-in txtbox...same to the time-out how its logic goes..
View 3 Replies
Jul 8, 2009
I have a form with a datagridview that show a list of employees. Right next to the datagridview, I have a small set of textbox containing employee information (name, phone, etc) which is my "details section". I have a tableadapter that populate the datagridview, this is working well. Now, what I want is to when I select a row in the datagridview, the details of the employee shows up in the details section.
I tried to bind textboxes to the correct column. It works, but if I specify the datatable a query that will get this employee info, the data of the datagridview change to be the only row in it. I want the list to be showing all results and then the details secion giving only information on the selected employee. Do I need two dataset for this?
View 7 Replies
Sep 28, 2009
I have created a class using the code below. Why do I get an error saying Type 'Employee' is not defined..[code]
View 1 Replies
Jul 13, 2011
I have to make an interviews with programmers. Do you have any ideas how I can test their knowledge from the field of vb.net/C#?
View 2 Replies
Mar 24, 2012
I have a problem how DateTimePicker to calculate if how many days of an employees work and the DateTimePicker1 will get the Days from another Table time in and time out and will display it in a listview the Day Time IN and TIme out.
View 3 Replies
Feb 15, 2012
i am having a lot of difficulty in giving privileges to login user. i am using vb.net and sql server 2008. What i want to do is i want to create an admin account . Admin will have all access on windows form. Than i want to register employees but employees going to have some privileges on viewing forms and option. i just dont know where to set these privilege. Is it going to be in sql server. Or how am i going to determine the new registered member is an admin or employee.Please reply any 1 i m in big need to this answer. i will be gratefull if you can answer step by step.
View 3 Replies
Jan 6, 2010
I'm want to display data fro employee table to DataGridView and i intiate DataGridView and make column BloodType as code bellow
[Code]...
View 3 Replies