Starting Out With Visual C# (5th Edition)
Starting Out With Visual C# (5th Edition)
5th Edition
ISBN: 9780135183519
Author: Tony Gaddis
Publisher: PEARSON
Question
Book Icon
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:

Starting Out With Visual C# (5th Edition), Chapter 9, Problem 5PP

The form control properties in the properties window are as follows:

ObjectPropertySetting
Form1TextTime Clock
clockInButtonTextClock IN
clockOutButtonTextClock OUT
label1TextAmount Of Time Worked
label2TextDays
daysLabelText(Empty)
label3TextHours
hoursLabelText(Empty)
label4TextMinutes
minutesLabelText(Empty)
label5TextSeconds
secondsLabelText(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.

Blurred answer
Students have asked these similar questions
In the past, encryption and decryption were mostly done by substitution and permutation of letters in a text message. study those classic cryptographic schemes Then, develop an automatic cipher using Javascript  The cipher should be able to perform the following tasks: generate keys encrypt a given plaintext message with a key selected from the list of keys generated decrypt a given ciphertext message with a known cipher key
List reasons why teachers should and shouldn’t be replaced by computers? State your response in a descriptive context. Provide five references from the with internet with your answers.
The attached picture shows the RTCAPI memory mapped register which has the address 0x180. 1)  Program the MCU's registers so that     a) SIRC is the clock source     b) the clock is divided by 16K     c) the clock is enabled     d) load is enabled

Chapter 9 Solutions

Starting Out With Visual C# (5th Edition)

Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education