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

  Discuss html5, css

For this discussion board, we will discover and share good online resources which discuss HTML5, CSS, and/or Web design concepts, news, or information.

  Program to inputs radius of circle and outputs its area

Write down C# program which inputs radius of a circle and outputs its area. Permit the user to repeat computations as often as desired.

  Write a program in c# that creates a professorrating class

Write a program in C# that creates a ProfessorRating class consisting of professor ID and three ratings. The three ratings are used to evaluate easiness, helpfulness, and clarity.

  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?

  Create a program named taxcalculation

Create a program named TaxCalculation that includes tow overloaded methods-one that accepts a price and a tax rate expressed as doubles (for example, 79.95 and 0.06, where 0.06 represents 6%),

  Create a web forms project

For this assignment are going to create a Web Forms project that has a Web Form item called Default.aspx. On this form we want 3 elements: A Label control whose Text property is the empty string ("").

  Compare and contrast database connectivity in vbreg and c

write a 200- to 300-word short-answer response to the followingawhat professional organizations might you join and

  Assignment related to online role-playing games

Construct evaluation techniques to the user experience and system usability in the design process. Describe the differences in developing user interfaces for different application environments.

  Several valid and invalis invoice objects

Create a program that attempts to create several valid and invalis invoice objects. Immediately after each instantiation attempt handle any thrown exceptions by displaying an error message.

  Develop an app that generates a random number

Develop an app that generates a random number and prompts the user to guess the number. When the user clicks the  New Game  Button, the app chooses a number in the range 1 to 100 at random

  1 develop and test a web services based application that

1 develop and test a web services based application that meets the following requirements applying soa design

  Write a program that can be used to determine the tip amount

Write a program that can be used to determine the tip amount that should be added to a restaurant charge. Allow the user to input the total, before taxes and the tip percentage (15% or 20%). Produce output showing the calculated values including the ..

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