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

  Create annual salary calculator

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

  The users will use a browser to access the on-line store

the users will use a browser to access the on-line store. the web server software for the production web server is

  Create login id and password

System must ensure the password must be at least 9 characters but no more than 18 characters long. Password must contain some upper case and lower characters, some digits, and some special characters such as $, !, #, -, etc...

  Briefly describe how parameter passing by value

Briefly describe how parameter passing by value and by reference are accomplished in memory. Write statement 1 to call Method A below. Write statement 2 to call Method B. Which method uses pass by value? Which method uses pass by reference?

  Design implement test and debug a c program which displays

design implement test and debug a c program that displays a pets name when a button is clicked.must be created in

  Create a windows form application

Create a Windows Form application that Reads a list of products from an xml file and shows a form that a customer can order

  Create a inventory management system in c applicationthis

create a inventory management system in c applicationthis is what the system must be able to

  Design a web application using visual studio

Design a web application using Visual Studio.NET 2012 - the difference between the files is the character ‘h' is missing in the position 120 in the uploaded file.

  Html add textbox-a label and a button control to a page

This exercise, you add a TextBox, a Label, and a Button control to a page. When you request the page in the browser, these server controls are transformed into HTML, which is then sent to the client. looking at the final HTML for the page in the b..

  Different data types and their typical usage

In programming, you'll find that variables are fundamental building blocks in creating programs. Review the various data types used in C# and discuss and elaborate in detail as to the typical usage of those data types. Discuss a minimum of six dif..

  Give an example in which polymorphism would be useful write

write a 200- to 300-word short-answer response to the followingprovide an example in which polymorphism would be

  Use a one-dimensional array to solve the following problem

Use a one-dimensional array to solve the following problem: Read in 20 numbers, each of which is between 10 and 100 inclusive.

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