I need help with a program in visual basic .Ex11.2. The assignment is ( Create a
ID: 3691062 • Letter: I
Question
I need help with a program in visual basic .Ex11.2. The assignment is ( Create a file for employee information an call it Employee.txt. Each record will contain fields for the name, last name, employee number, and hourly pay rate. Write a second project to process payroll. The application will load the employee data into an array of structure from a file with an extra field for the pay. The form will contain labels for the information from the array display one record at a time and a text box for the hours worked. a button call findpay will be used for next loop to process the array. YOu will calculate the pay and add the pay to the totals. The display the label for the next employee. Place the pay into the extra field in the array. HOur over 40 receive time and a half pay. Accumulate the total munber of hours worked, the total number of hours of overtime and the total amount of pay.
sample report
employee name hours worked hourse overtime pay rate amount earned
janice 40 0 5.25 210.00
chris 35 0 5.35 187.25
karen 45 5 6.00 285.00
tom 42 2 5.75 247.25
total 162 7 929.50
Note: unless you include an Openfile dialoge, copy th file created in the bin/debug folder for the first folder into the bin/debug for the sucond folder.)
I need some one help me with writing code and expline to me how can I begin the exercise?(the steps)
Thank so much..
Explanation / Answer
Registration code:
using system.data.sqlclient;
public partical class temp: system.web.ui.page
{
sqldataadapter adp=new sqldataadapter("select*from tablereg",@"Datasource=.SQLEXPRESS;
AttachDbFilename=|datadirectory|database.mdf;
Integrated security= True; User Instance=True");
Data table dt=new Data table();
sqlData Adapter adp1=new sqlData Adapter ("select* from login"......same as avobe);
protected void page load
{
int i,n;
for(i=1;i<=31;i++)//for select the date
DropDownList1.Items.Add(i,Tostring());
for(n=1980;n<=2030;n++)//for select year
DropDownList2.Items.Add(n.Tostring());
adp.Fill(dt);
sqlcommand builder str=new sqlcommand builder(adp);
{
datarow dr=dt.new row();
data rowdr1= dt1.new row();
dr["status"]="user";
dr["name"]="txtname.Text;
dr["userid"]="txtuserid.Text;
//emailid,mobileno,password,confirmpassword, location are also same as avobe//
dt.Rows.Add(dr1);
adp1.Update(dt);
txtname.Text=" ";
txtuserid.Text=" ";
//email, mobile, password, confirmpassword also same//
Response.Redirect("login.aspx");
For calculate payroll:
..
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.