Create a timeentry windows form application

Assignment Help DOT NET Programming
Reference no: EM13808508

You will create a "TimeEntry" windows form application, user will input work hours for each day in a week (5 days) repeatedly, the program will record the user's time entries, calculate the payment and display on the form.  Please follow the following steps to complete this assignment.

 

  • Create a new Windows Form Application "TimeEntry".
  • Design and define the GUI similar to the following form:
  • User will enter time (hours) in the textbox,suppose user always input valid integer hours.
  • Set "Submit time" button as thedefault buttonfor the form, this button will be pressed when the user presses theEnter key.
  • Add aListBoxto record and display the time entries for 5 days, after user enter hours for one day, it will be shown in the ListBox immediately.
  • The "Get payment" button isdisabledwhen program starts to run.
  • After user enters hours for 5 days, the TextBox and "Submit time" button aredisabled; the "Get payment" button isenabled.

 

  • Create and define3 event handler methodsto handle the button_click events for 3 buttons.
  • When click "Submit time" button -----
  • If the TextBox is not empty and user entered less than 5 time entries, the hours entered in the TextBox will be read and added in the ListBox.
  • If user has already entered 5 time entries, then disable the "Submit time" button and hours TextBox, enable "Get Payment" button.
  • When click "Get payment" button -----
  • Use a counter controlled repetition statement to read time entries repeatedly from ListBox for calculation.
  • Calculate the total hours
  • Calculate user's payment following the rules below
  • If the total hours is less than or equal to 40, then calculate payments, otherwise, display an error message to the user.
  • If total hours is between 0 and 20 hours, the hourly wage is $10.00
  • If total hours is between 21 and 30 hours, the hourly wage is $12.00
  • If total hours is between 31 and 40 hours, the hourly wage is $15.00
  • Display user's payment as the Text property of the result Label.
  • You may use this code to display the payment in a currency format.

 

PayLabel.Text = String.Format("{0:C2}", Payment)

 

  • When click "Clear time" button ----
  • The TextBox, ListBox and result label will be cleared
  • The form should be converted to the initial format.

 

Test cases

 

Hours for 5 days

Payment

3, 2, 2, 3, 4

$140.00

4, 5, 6, 7, 5

$324.00

8, 7, 8, 5, 8

$540.00

9, 9, 8, 7, 9

Error

 

Reference no: EM13808508

Questions Cloud

An investor has two bonds in his portfolio : An investor has two bonds in his portfolio that both have a face value of $1,000 and pay a 8% annual coupon. Bond L matures in 19 years, while Bond S matures in 1 year. Assume that only one more interest payment is to be made on Bond S at its maturit..
Determine the market structure in which low calorie frozen : Using the regression results and the other computations from Assignment 1, determine the market structure in which the low-calorie frozen, microwavable food company operates.Use the Internet to research two (2) of the leading competitors in the low-c..
Develop a promotion plan for the uno college of business : Develop a promotion plan for the UNO College of Business. Do this for one year. To say "use radio" is not enough. Tell me what radio stations, e.g. WWL, you suggest and a schedule of commercials, also what is the total cost.
Operating and financial constraints placed on corporation : Operating and financial constraints placed on a corporation by loan provision are
Create a timeentry windows form application : You will create a "TimeEntry" windows form application, user will input work hours for each day in a week (5 days) repeatedly, the program will record the user's time entries, calculate the payment and display on the form
What type of deviant behavior is depicted : What type of deviant behavior is depicted
Her internal rate of return on this investment : Early in 2013, Maria bought shares of MBA Inc. at $27.85 per share. She received the following dividends per share (end of year). 2013 $1.50 2014 $2.00 2015 $2.50 Immediately after receiving the 2015 dividend, she sold the stock for $32.50 per share...
Relevance of responsible stewardship : Reflecting on what you have learned in this course, discuss the relevance of Responsible Stewardship in the context of economic analysis and organizational architecture.
Essay on will there always be poverty : Write a two-page essay on Will there always be poverty? Use a minimum of two academic journals from the Columbia Southern University Online Library. Essay must be formatted in APA style.All sources used, including textbook, must be referenced; paraph..

Reviews

Write a Review

DOT NET Programming Questions & Answers

  Webiste hi sir u need bild the website i will explain you

hi sir u need bild the website i will explain you the the procedurethere is a rar file which i cant uplode hear this

  Application that simulates the functionality of the gas pump

Create a windows form application that simulates the functionality of the gas pump. The user enters the number of gallons to purchase in a TextBox. Click the desired grade button (each grade is represented by a Button whose Text properties are set t..

  It online training specification

You will create two test cases following the format described below. In testing, test cases are developed first and then tested later by a different team. You will not be able to exercise your test cases (so you won't have Actual Results) but you ..

  Create a website to allow pizza shop employee to enter order

Create a website in asp.net to allow the pizza shop employee to enter customer orders. The size of the pizza cam be entered using a drop down list, and the quantity be entered using a text box.

  Asp.net and database web application

Database table definition is provided along with the marking craitria for better answer

  Demonstrate academic and professional literacy

Demonstrate academic and professional literacy by collating theoretical and practical course material into a workable application through understanding concepts and their practical application using .NET

  Write a c# program containing array that holds five integers

Write a C# program containing an array that holds five integers. Assign values to the integers.Display the integers from first to last, and then display them from last to first. Save theprogram as IntegerList.cs.

  List advantages of asp

List advantages of ASP (SaaS) hosting services for ERP deployment. What is it about SaaS hosting services that make it very attractive for small to mid-sized corporations?

  Topic using net resources to teach netthis project will use

topic using .net resources to teach .netthis project will use the .net framework to produce a set of materials to

  Create annual salary calculator

Create a new ASP.NET website called PayrollSystem. Create Annual Salary Calculator

  Create a new web form called frmuseractivity

Create a new Web form called frmUserActivity. Switch to Design Mode and add a Label and GridView (found under the Toolbox, Data tab) having the following properties:

  Write a constructor that accepts arguments

Write a constructor that accepts arguments for each property. The application should create an array of three RetailItem objects containing the following data

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd