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

Questions Cloud

Use definite integrals to approximate total revenues : Use definite integrals to approximate Total revenues taken in over the 2-year period,  Total revenues taken in from t = 8 to t = 14.
Should baseball''s anti-trust exemption be discontinued : Would hosting the 2024 Olympics be a good thing for Los Angeles? Should cities and states provide public support for professional sports stadiums and arenas? Should baseball's anti-trust exemption be discontinued?
What is the x axis (q) looks like : Why the MC (marginal cost) is looks like a ''U''? When the serving is 1 (no extra production) what is the marginal cost? What is the x axis(Q) looks like?
Sketch a three-input rtl nor gate : Sketch a three-input RTL NOR gate. Use a minimum number of transistors.
Create a timeentry windows form application : 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.
Draw the two budget constraints : Assuming Jack's preferences over beer and whisky did not change, was his behaviour consistent with those of a rational consumer model? Draw the two budget constraints and explain your answer.
Analyze the hazards in both areas of the facility : For the LEV, specify the hood configuration, a recommended capture velocity, and a recommendation for treatment of the exhaust stream. Explain why you made the choices and support your decisions with at least one reference other than the text.
Appetite is measured in ounces of layer pellets per week : Spring is right around the corner and that can mean only one thing: it's time to incubate some eggs for a fresh crop of chickens to supplement the existing flock for the year. There are three breeds that are popular: Leghorns, Buff Orpingtons, and Co..
What is the fastest time to get everyone across the bridge : The teaching assistant can cross the bridge in 5 minutes. The professor always gets distracted and takes 10 minutes to cross the bridge. What is the fastest time to get everyone across the bridge?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Explain the fundamental components of a distributed system

explain the fundamental components of a distributed system.

  Develop guidelines for professional responsibilities

Continuing with the scenario from Week 5, develop guidelines for professional responsibilities in an organization related to identifying and resolving ethical issues in IT.

  Why this move to pcs bring new architecture

I can understand about the shift from old big mainframes to PCs that are becoming more and more powerful. But why not just link these PCs to the big mainframes and keep the similar architecture we used before i.e. a mainframe architecture? (Just h..

  Suppose you are maintaining information on offices

explain the different ways of implementing one-to-one relationships. Assume you are maintaining information on offices (office numbers, buildings, and phone numbers) and faculty (numbers and names).

  Define the limitations of vb-script

OOP is not about programming as much as it is about thinking in a specific way. When you think of an object, you should see it as a set of properties and processes. Properties are the data, and methods are what you do to the data.

  What is the advantage when target is throughput and security

What is the advantage when target is throughput and securityty

  Creating new information technology systems for a company

Creating new information technology systems for a company requires the staff to understand reasoning and operation of the systems in which they interact. How will you create the support needed to create the recommended information systems and prep..

  Question1 describe software construction in one paragraph2

question1. describe software construction in one paragraph.2. name and describe the five components that make up the

  Research for a voip solution

In the future, Klamath’s separate the voice network will be dismantled. All the voice, data, and video traffic will traverse Metro Ethernet network.

  Design a script that checks the day of the week

Using a separate output line for each of these files, print the file path and the number of lines in the file using wc -l. make at least two TTDL files to test my program: one in my working directory and one in a subdirectory.

  Show the corresponding number

Using a loop and a single printlng statement, show all of the values (both strings and integers) in a table.

  How might competitor attempt to close the information gap

Do you think a $24 million investment in a private satellite communication system could be justified by a cost-benefit analysis? How might the competitor attempt to close the "information gap" in this example?

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