You are on page 1of 13


Professional University



(Foundation of Computing)
Digital Watch Program
Submitted To:- Submitted by:-


Roll No:-R246A17


TABLE OF CONTENT:- 1) Introduction 2) Proposed System a) Description b) System Required 3) Requirement Analysis 4) System Design 5) Source Code 6) Test line 7) Future Source Of Project .

Tec h(CSE)MBA R246A17 . I am also thankful to my parents who encouraged me and provided such a motivation.Tech(CSE)-MBA Ist term expressing my deep gratitude to my Physics teacher “Ms. I am very much thankful to her. so I became able to perform this. Kulbir Singh B. I am also thankful to all my friends and those who helped me directly or indirectly in completion of my project. I VINAY student of B. SHALLY”. I benefited a lot discussing with her.

Roger Riehl's Synchronar Mark 1. was developed jointly by Hamilton Watch Company and Electro-Data. e. Digital watch .100 at retail. the head of Hamilton's Pulsar division. The first digital watch. made in 18-carat gold and sold for $2.INTRODUCTION:- Since the advent of electronic watches that incorporate small computers. Expensive watches for collectors rarely have digital displays since there is little demand for them. said that he was inspired to make a digital timepiece by the then-futuristic digital clock that Hamilton themselves made for the 1968 science fiction film 2001: A Space Odyssey. John Bergey. 1972 the Pulsar was finally ready. Digital watch 2) 24hr. provided an LED display and used solar cells to power the internal nicad batteries. Digital watches are of two types:- 1) 12hr.[8] Despite these many advances.. Another early digital watch innovator. On April 4. A digital display simply shows the time as a number. Less craftsmanship is required to make a digital watch face and most collectors find that analog dials (especially with complications) vary in quality more than digital dials due to the details and finishing of the parts that make up the dial (thus making the differences between a cheap and expensive watch more evident). almost all watches with digital displays are used as timekeeping watches. It had a red light-emitting diode (LED) display. 12:40 AM instead of a short hand pointing towards the number 12 and a long hand pointing towards the number 8 on a dial.g. digital displays have also been available. a Pulsar prototype in 1970.

PROPOSED SYSTEM:- System Required:. Pentism 2 300 MHz 60MB RAM 10 GB Hard Disk 14 inch CRT Keyboard Mouse .

regional and urban development. examination of the probable consequences of the alternatives in terms of costs. the nature of these problems requires an interdisciplinary approach. constraint and alternative courses of action. resource use and protection policies. A systems analysis that concentrates on comparison and ranking of alternatives on basis of their known characteristics is referred to as decision analysis. and other social services. and risks.Requirement Analysis:- This term has many different meanings. Systems analysis usually has some combination of the following: identification and re-identification) of objectives. benefits. presentation of the results in a comparative framework so that the decision maker can make an informed choice from among the alternatives. There are several specific kinds or focuses of systems analysis for which different terms are used: A systems analysis related to public decisions is often referred to as a POLICY ANALYSIS. research and development in technology. system analysis is an explicit formal inquiry carried out to help someone (referred to as the decision maker) identify a better course of action and make a better decision than he might otherwise have made. We must carefully decide the following at this stage:- 1) What kind of data will go on? 2) What kind of output are needed? 3) What are the constraints and condition under which the program has to operate? . The characteristic attributes of a problem situation where systems analysis is called upon are complexity of the issue and uncertainty of the outcome of any course of action that might reasonably be taken. educational systems. The typical use of systems analysis is to guide decisions on issues such as national or corporate plans and programs. Clearly.

One could see it as the application of systems theory to product development. . System design is the foundation for a good program and is therefore an important part of program development cycle. Outlining the program structure. the program should be well conceived and all aspects of the program design should be considered in details. and data for a system to satisfy specified requirements. Before coding a program . Algorithm development. 2. interfaces. in order to achieve the solution of a problem. Selection of control structures. There is some overlap and synergy with the disciplines of systems analysis. 4. This includes mapping out a solution procedure and the form the program would take . component modules. The program design involves the following four stages: 1.System design:- Systems design is the process or art of defining the architecture. Program design is basically concerened with the development of a strategy to be used in writing the program. 3. systems architecture and systems engineering. Problem analysis.

SOURCE CODE:- #include<stdio.h> #include<dos. 24 hour clock.h> #include<conio. printf("\nEnter Choice? ").h<12.h> void main() { int h.s.").m. printf("1.h++) { .").f. printf("\n2.&f). switch(f) { case 1: { label1: for(h=0. clrscr(). 12 hour clock. scanf("%d". char ap='a'.

else printf("%d : %d : %d %cm".h.s.m++) { for(s=0. } goto label1. if(h==0) printf("12 : %d : %d %cm". } .s<60.for(m=0.m.s++) { delay(1000).s. } } } if(ap=='a') { ap='p'.m.m<60.ap).ap). } else { ap='a'. clrscr().

s++) { delay(1000).m<60.m. } .h.h++) { for(m=0. } default: { printf("Invalid Choice? ").s<60. printf("%d : %d : %d".h<24. } } getch(). } } } break. clrscr(). case 2: { for(h=0.m++) { for(s=0.s).

Added to this.Output Enter the choice 1)12hrs 2)24hrs Test Line:- By now we must be aware that C has certain features that are easily ammenable to bugs. 1) Missing Semicolon 2) Missing Braces 3) Missing Quotes 4) Misusing Quotes 5) Improper Comment Characters 6) Undeclared Variables 7) Forgetting the precedence of Operator 8) Ignoring the order of Evaluation of Increament/Decreament operator 9) Forgetting to declare function parameter 10) Missing & operator in scanf parameters . it does not check all kinds of run time errors. It is therefore. This section examines some of the more common mistakes that a less experienced C programmer could make :-. advisable to keep track of such errors and to see that these known errors are not present in the program.

It refers to the tasks of detecting and removing errors in a program. 11) Forgetting a space for null character in a string 12) Missing Indirection and address operator These are the some errors which creates the problem during compilation of program. These errors are removed with the help of Testing and Debugging. isolate and correct any errors. and no matter how much care is taken in coding. so that the program produces that desired results on all occasions. Every programmer should be aware of the fact that rarely does a program run perfectly the first time. No matter how thoroughly the design is carried out. Kamthane 3) Learn Programming in C Sukhdilpreet kaur . It is therefore necessary to detect. one can never say that the program would be 100% error free. Future Source of Project:- 1) Programming in ANSI C 4E E Balaguruswamy 2) Programming with TURBO C Ashok N.