0% found this document useful (0 votes)
3K views12 pages

Analog Clock

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 12

A Project report on

Analog Clock
SEMESTER : THIRD
DEPARTMENT : COMPUTER ENGINEERING
Submitted To

GOVERNMENT POLYTECHNIC NANDURBAR

Under The Guidance Of,

Prof. PUNAM.R.SATHE
Lecturer in
Computer Graphics (22318)
GOVERNMENT POLYTECHNIC NANDURBAR
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION,MUMBAI
Certificate

This is to certify that,

1) Mr.Chaudhari Dhnyanesh Pradeepkumar (Roll No: 2104)


2) Mr.Patil Pushkar Vijay (Roll No :2115)
3) Mr.Wani Krunal Ritesh (Roll No :2116)
4) Mr. Ramole Prem Prakash (Roll No :2128)

of Third Semester of Computer Engineering Diploma Program in Engineering


& Technology at 1432 GOVERNMENT POLYTECHNIC NANDURBAR, has
completed the (Micro Project) satisfactorily in Subject CGR (22318) in the
academic year 2021- 2022 as prescribed in the MSBTE circular

Enrollment No: 1) 2014320069


2) 2014320080
3) 2014320081
4) 2014320094

Place: NANDURBAR Date: 31 / 12 / 2021

Subject Teacher Head of the Department Principal


 INDEX

Sr. No Title Page No


1 INTRODUCTION 1
2 Including librarys 2
3 Function used 4
4 SNAPSHOTS 6
5 OUTCOMES 7
6 Weekly Work/Progress Report 8
7 Evaluation sheet for the Micro project 9
INTRODUCTION

Graphics is defined as any sketch or a drawing or a special network that


pictorially represents some meaningful information. Computer Graphics is used
where a set of image needs to be manipulated or the creation of the image in the
form of pixels and is drawn on the computer. Computer Graphics can be used in
digital photography, film,entertainment, electronic gadgets and all other core
technologies which are required. It is a vast subject and area in the field of
computer science. Computer Graphics can be used in UI design, rendering,
geometric object, animation and many more.In most area, computer graphics is
an abbreviation of CG. There are several tools used for implementation of
Computer Graphics. The basic is the <graphics.h> header file in Turbo-C, Unity
for advanced and even OpenGL can be used for its Implementation. It was
invented in 1960 by great researchers Verne Hudson and William Fetter from
Boeing.

Computer graphics deals with generating images with the aid of computers.
Today, computer graphics is a core technology in digital photography, film, video
games, cell phone and computer displays, and many specialized applications
generated imagery (CGI).

SYNOPSIS :- In this project we have created a ANALOG CLOCK in


Computer Graphics

Page 1 of 9
including librarys

 <graphics.h>

Compiling graphics codes on CodeBlocks IDE shows an error: “Cannot find


graphics.h”. This is because graphics.h runs is not available in the library folder
of CodeBlocks. To successfully compile graphics code on CodeBlocks,
setup winBGIm library.

 <iostream>

The iostream library is an object-oriented library that provides input and output
functionality using streams. A stream is an abstraction that represents a device on
which input and ouput operations are performed. A stream can basically be
represented as a source or destination of characters of indefinite length.

 <cmath> (math.h)

Header <cmath> declares a set of functions to compute common mathematical


operations and transformations.

 <ctime>

The ctime() function in C++ converts the given time since epoch to a calendar local
time and then to a character representation. A call to ctime(time) is a combination of
asctime() and localtime() functions, as asctime(localtime(time)) . It is defined in
<ctime> header file.

Page 2 of 9
 <limits>
It is a Numeric limits type and it provides information about the properties of
arithmetic types (either integral or floating-point) in the specific platform for which
the library compiles.

 #define PI 3.1415

The number π (/paɪ/; spelled out as "pi") is a mathematical


constant, approximately equal to 3.14159. It is defined in Euclidean geometry as the
ratio of a circle's circumference to its diameter, and also has various equivalent
definitions It is also referred to as Archimedes' constant.

 using namespace std;

The using namespace statement just means that in the scope it is present, make all the
things under the std
namespace available without having to prefix std:: before each of them.

Page 3 of 9
Function used

 Cout in C++

The cout object in C++ is an object of class ostream. It is defined in iostream header
file. It is used to display the output to the standard output device i.e. monitor. It is
associated with the standard C output stream stdout. The data needed to be displayed
on the screen is inserted in the standard output stream (cout) using the insertion
operator(<<).

 Setcolor function in C

In Graphics, each color is assigned a number. Total number of colors available are 16.
Number of available colors depends on current graphics mode and driver. For
example, setcolor(RED) or setcolor(4) changes the current drawing color to RED.
Remember that default drawing color is WHITE. The Colors table is given below.

 Lineto() function in C
The header file graphics.h contains lineto() function which draws a line from current
position to the point(x,y).
Note : Use getx() and gety() to get the current position.

 Moveto() function in C

The header file graphics.h contains moveto() function which changes the current
position to (x, y)

Page 4 of 9
 Outtextxy() function in C

The header file graphics.h contains outtextxy() function which displays the text or
string at a specified point (x, y) on the screen.

 closegraph() function in C

The header file graphics.h contains closegraph() function which closes the graphics
mode, deallocates all memory allocated by graphics system and restores the screen to
the mode it was in before you called initgraph.

return 0 vs return 1 in C++

Conclusion:

Use-case return 0 return 1

return 1 in the main


return 0 in the main function means that
function means that the program does not
In the the program execute successfully
main executed and there is some
function successfully. error.

return 0 means that return 1 means that


In user- the user-defined the user-defined
defined function is function is returning
function returning false. true.

Page 5 of 9
SNAPSHOTS

Page 6 of 9
COURSE OUTCOMES

 A. Implement standard algorithms to draw various graphics


objects using C program.

 B. Develop programs for 2-D and 3-D Transformations.

 C. Use projections to visualize objects on view plane.

 D. Implement various clipping algorithms.

LEARNING OUTCOMES
 A. how to work in a group..

 B. learnt how to use the function in programs

 C. How to Handel big programs.

 D. And learnt many standard function used in graphics.

Page 7 of 9
Government Polytechnic Nandurbar
Weekly Work/Progress Report
Project Details of 16 Engagement Hours of the Student Regarding Completion of the

Week no. Timing Work or activity performed Sign of


Date Guide
From To Duratio
n in
hours

1 10/9/21 7:00 8:00 1 Discussion and Finalization of the Project


Title

2 12/9/21 7:00 8:00 1 Preparation and Submission of Abstracts

3 25/9/21 7:00 8:00 1 Literature Review

4 4/10/21 7:00 8:00 1 Collection of Data

5 11/10/21 7:00 8:00 1 Sorting of Data

6 1/11/21 7:00 8:00 1 Discussion and Outline of Content

7 26/11/21 7:00 8:30 1 Rough Writing of the Projects Contents

8 4/12/21 6:00 7:00 1 Editing and Proof Reading of the


Contents
9 5/12/21 6:00 7:00 1 Final Completion of the Project

10 1 Seminar Presentation, viva-vice.


Assessment and Submission of Report

Page 8 of 9
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION, MUMBAI
Evaluation sheet for the Micro project
Academic Year: 2021-22
Course: Computer Engineering Semester: III

COMPUTER GRAPHICE Course code: 22318


Name of Faculty: Computer Engineering
TITLE OF PROJECT: Analog Clock

Roll No. Name of Students Mark out of 4 for Marks out of 6 for Total
Performance in Performance in oral marks Out
group activity And presentation of 10

2103 Dhnyanesh Pradeepkumar


Chaudhari.
2115 Pushkar Vijay Patil
2116 Krunal Ritesh Wani
2128 Ramole Prem Prakash

Prof. PUNAM.R.SATHE
(Name & Signature of faculty)

Page 9 of 9

You might also like