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

  Develop web services based application

Develop and test a Web services based application that meets the requirements applying SOA design principles.

  Design style elements in asp

Add drop down lists for modifying the different style elements for the label element that displays the time

  Create a shopping cart in asp

The users will use a browser to access the on-line store. The web server software for the production web server is Windows 2003 Server /IIS6.

  Inventory management system in c# application

Inventory management system in c# application

  Using .net resources to teach .net

This project will use the .NET framework to produce a set of materials to demonstrate the fundamental principles of .NET. Ideally it should demonstrate some of the principles of the framework e.g. interoperability.

  Prepare a marymount faculty site

Prepare a Marymount faculty site

  Blinky lights

Analysis proving that your code blinks the LEDs at the specified rates.

  Prepare a web application

Prepare a web application that will be used to keep track of patients registering in a hospital.

  Implementing the insurance management system

Implementing the Insurance Management System and implementation of Components as Web Services.

  Describe the characteristics of visual studio 2005

Describe the characteristics of Visual Studio 2005 Visual Studio.Net is a suite of products that includes 4 main languages. Name these languages and outline their use in industries

  What is a connectionstring

What is a ConnectionString. Give a suitable example to illustrate the various part of a ConnectionString

  Prepare a web application for internet service provider

Prepare a Web application and write the code also event planning document base. This web application allows the user to sign up for an Internet service provider for home connectivity.

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