Create a timeentry windows form application

Assignment Help Computer Engineering
Reference no: EM131270388

Lab Assignments

Control Structure

In this lab assignment, 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 the default button for the form, this button will be pressed when the user presses the Enter key.

Add a ListBox to 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 is disabled when program starts to run.

After user enters hours for 5 days, the TextBox and "Submit time" button are disabled; the "Get payment" button is enabled.

Create and define 3 event handler methods to 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.

Reference no: EM131270388

Which state requires greater duties of the tenant

Write a minimum of two (2) pages comparing and contrasting the tenant rights and duties of two states; one state should be your home state and the other is a state of your c

Should the organisation using paas is the best approach

With the business goals and strategy (Erl, Mahmood, & Puttini, 2013, p. 20) are Web-based and mobile applications. Should the organisation using PaaS is the best approach deli

Why text in txtboxin is moved to txtboxout

You have a form with two text boxes, txtBoxIn and txtBoxOut, and a command button, cmdButton1. Write down the instructions such that when the button is selected, the text in

Define the best possible scenario for an organization

If in a hypothetical situation your company was capable to hire only either technically sound managers with weak leadership skills OR strong leaders with less knowledge/inte

Mutual authentication and key establishment protocol

Assume a server-assisted mutual authentication and key establishment protocol. Suppose that Alice and the Server share the pairwise symmetric key KAS; however Bob and Server

Implement a java application that reads tweets

Description: The goal of this assignment is to implement a Java application that reads tweets from both the Twitter Streaming API and preloaded log file and finds the trendi

Cognitive walk and pluralistic walk

Compare and contrast cognitive walk-through evaluations and pluralistic walk-through evaluations in terms of effectiveness and efficiency. Give an example of a use for each

Draw negative edge triggered t flip flop

Draw a negative edge triggered T flip flop. Circuit has two inputs, T(toggle) and C(clock) and output Q and Q'. Output state is complemented if T=1 and clock C changes from


Write a Review

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