Starting Out With Visual C# (5th Edition)
5th Edition
ISBN: 9780135183519
Author: Tony Gaddis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 9, Problem 5PP
Program Plan Intro
Form design:
- Open Microsoft Visual Studio 2010.
- Select C# and click Windows Forms Application.
- Name the project as TimeClock.
- Store the file in desire location.
- The created project is now display with a form in the name of Form1.
- Select the Form1 and add the necessary components.
- In property window, change the Form name and add changes for Form elements properties.
- Click the File menu->Save All.
View of the form design in the IDE:
The form control properties in the properties window are as follows:
Object | Property | Setting |
Form1 | Text | Time Clock |
clockInButton | Text | Clock IN |
clockOutButton | Text | Clock OUT |
label1 | Text | Amount Of Time Worked |
label2 | Text | Days |
daysLabel | Text | (Empty) |
label3 | Text | Hours |
hoursLabel | Text | (Empty) |
label4 | Text | Minutes |
minutesLabel | Text | (Empty) |
label5 | Text | Seconds |
secondsLabel | Text | (Empty) |
- Add two buttons and name it as “Clock IN” and “Clock OUT” to start and end the timer respectively.
- Add a label control to display the Amount Of Time Worked.
- Add a label control to display the Days.
- Add a label control to display the output of number of days worked.
- Add a label control to display the Hours
- Add a label control to display the output of number of hours worked.
- Add a label control to display the Minutes.
- Add a label control to display the output of number of minutes worked.
- Add a label control to display the Seconds.
- Add a label control to display the output of number of seconds worked.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionChapter 9 Solutions
Starting Out With Visual C# (5th Edition)
Ch. 9.2 - Prob. 9.1CPCh. 9.2 - Prob. 9.2CPCh. 9.2 - Prob. 9.3CPCh. 9.2 - Prob. 9.4CPCh. 9.2 - Prob. 9.5CPCh. 9.2 - Prob. 9.6CPCh. 9.2 - Prob. 9.7CPCh. 9.2 - Prob. 9.8CPCh. 9.3 - Prob. 9.9CPCh. 9.3 - Prob. 9.10CP
Ch. 9.3 - Prob. 9.11CPCh. 9.3 - Prob. 9.12CPCh. 9.3 - Prob. 9.13CPCh. 9.3 - Prob. 9.14CPCh. 9.3 - Prob. 9.15CPCh. 9.3 - Prob. 9.16CPCh. 9.4 - Prob. 9.17CPCh. 9.4 - Prob. 9.18CPCh. 9.4 - Prob. 9.19CPCh. 9.5 - Prob. 9.20CPCh. 9.5 - Prob. 9.21CPCh. 9.5 - Prob. 9.22CPCh. 9.5 - Prob. 9.23CPCh. 9.5 - Prob. 9.24CPCh. 9 - Prob. 1MCCh. 9 - Prob. 2MCCh. 9 - Prob. 3MCCh. 9 - Prob. 4MCCh. 9 - Prob. 5MCCh. 9 - Prob. 6MCCh. 9 - Prob. 7MCCh. 9 - Prob. 8MCCh. 9 - Prob. 9MCCh. 9 - Prob. 10MCCh. 9 - Prob. 11MCCh. 9 - Prob. 12MCCh. 9 - Prob. 13MCCh. 9 - Prob. 14MCCh. 9 - Prob. 1TFCh. 9 - Prob. 2TFCh. 9 - Prob. 3TFCh. 9 - Prob. 4TFCh. 9 - Prob. 5TFCh. 9 - Prob. 6TFCh. 9 - Prob. 7TFCh. 9 - Prob. 8TFCh. 9 - Prob. 9TFCh. 9 - Prob. 10TFCh. 9 - Prob. 11TFCh. 9 - Prob. 12TFCh. 9 - Prob. 13TFCh. 9 - Prob. 1SACh. 9 - Prob. 2SACh. 9 - Prob. 3SACh. 9 - Prob. 4SACh. 9 - Prob. 5SACh. 9 - Prob. 6SACh. 9 - Prob. 7SACh. 9 - Prob. 1AWCh. 9 - Prob. 2AWCh. 9 - Prob. 3AWCh. 9 - Prob. 4AWCh. 9 - Prob. 5AWCh. 9 - Prob. 6AWCh. 9 - Prob. 7AWCh. 9 - Prob. 8AWCh. 9 - Prob. 9AWCh. 9 - WEATHER DATA In the student sample progr4n files...Ch. 9 - Prob. 2PPCh. 9 - Prob. 3PPCh. 9 - Prob. 4PPCh. 9 - Prob. 5PPCh. 9 - COURSE INFORMATION Write a program that creates a...Ch. 9 - Prob. 7PPCh. 9 - Prob. 8PPCh. 9 - Prob. 9PPCh. 9 - Prob. 10PPCh. 9 - Prob. 11PPCh. 9 - Prob. 12PP
Knowledge Booster
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education