Clock Report Management System Project Report
Clock Report Management System Project Report
Clock Report Management System Project Report
INTERNSHIP REPORT
ON
CLOCK REPORT MANAGEMENT SYSTEM PROJECT
BY
KAMAL ACHARYA
(Tribhuvan University)
Date: 2021/05/ 18
1|Page
CONTENTS
1. INTRODUCTION
2. REQUIREMENT ANALYSIS
3. DESIGN
4. IMPLEMENTATION
5. TESTING
6. USER MANUAL
2|Page
Features implemented:
3|Page
INTRODUCTION
OVERVIEW :
A class in computer graphics allows the instructor to build all these topics in a
way that can be both informative and fun. Low level algorithms such as those that
draw lines or fill polygons are used in OpenGL.
4|Page
A clock or watch is called "analog" when it has moving hands and hours marked
from 1 to 12 to show you the time.
Analog clocks usually indicate time using angles. The most common clock face
uses a fixed numbered dial or dials and moving hand or hands. It usually has a circular
scale of 12 hours, which can also serve as a scale of 60 minutes, and 60 seconds if the
clock has a second hand. Many other styles and designs have been used throughout the
years, including dials divided into 6, 8, 10, and 24 hours.
The only other widely used clock face today is the 24 hour analog dial , because of
the use of 24 hour time in military organizations and timetables.
5|Page
REQUIREMENT ANALYSIS
PROJECT REQUIREMENT:
It contains 3 needles one for hour, one for minute, and one for seconds.
Large needle represents minute, small needle represent hour and thin needle represents
seconds.
The package which we have designed is a one which requires many graphics packages.
Most of the functions which are needed to design the package are found in Turbo C compiler
with a graphics package .The package requires simple in-built functions found in <GL/glut.h>
library. This header file, in addition to the usual header files is needed for the working of the
project. For running the program, any basic PC running compatible version of Microsoft Visual
Studio is sufficient.
This program should use memory as less as possible, dynamic memory allocation is
preferable to accomplish this task. There is no error message produced in this program.
Requirement analysis phase deals with user requirements, which is to fulfill the user’s
requirement that is known during the problem definition phase. To carry out a requirement
analysis, analysts must develop an understanding of the problem domain. The choice of
appropriate software for the smooth implementation of the project is accomplished by this.
6|Page
SOFTWARE REQUIREMENT:
The project requires access to the OpenGL graphics library functions . Some
of these library functions are contained in unique to C++ library header files such as
1) GL/glut.h
2) math.h
3) windows.h
4) time.h
To write, compile and link the program , a suitable C integrated development
environment is required . Microsoft Visual Studio/Code Blocks may be suitable in
this regard.
Software requirement are:
1. Window Operating System
2. Microsoft Visual Studio
3. Code Blocks
HARDWARE REQUIREMENT:
7|Page
DESIGN
print_screen
Input parameters:
None
Function description:
8|Page
Name of the function:
Draw_clock
Input parameters:
None
Function description:
9|Page
Name of the function:
TimeEvent
Input parameter:
Function description:
10 | P a g e
IMPLEMENTATION
#include<windows.h>
#include <GL/glut.h>
#include <math.h>
#include <time.h>
time_t ltime;
struct tm *newtime;
GLUquadricObj *Cylinder;
GLUquadricObj *Disk;
// lighting
GLfloat LightAmbient[]= { 2.5, 0.5,1.5,1.0f };
GLfloat LightDiffuse[]= { 0.5, 2.0,1.5, 1.0f };
GLfloat LightPosition[]= { 7.5, 25.0, 15.0, 1.0f };
GLfloat mat_specular[] = { 1.0, 1.0, 1.0, 1.0 };
void display()
{
time(<ime); // Get time
11 | P a g e
newtime = localtime(<ime); // Convert to local time
glClear (GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
void init(void)
{
glClearColor (0.0, 0.0, 0.0, 0.0);
glShadeModel (GL_SMOOTH);
glEnable(GL_DEPTH_TEST);
Cylinder = gluNewQuadric();
gluQuadricDrawStyle( Cylinder, GLU_FILL);
gluQuadricNormals( Cylinder, GLU_SMOOTH);
gluQuadricOrientation( Cylinder, GLU_OUTSIDE);
gluQuadricTexture( Cylinder, GL_TRUE);
Disk = gluNewQuadric();
gluQuadricDrawStyle( Disk, GLU_FILL);
gluQuadricNormals( Disk, GLU_SMOOTH);
gluQuadricOrientation( Disk, GLU_OUTSIDE);
gluQuadricTexture( Disk, GL_TRUE);
12 | P a g e
}
glPushMatrix();
glTranslatef(cx,cy,cz);
glRotatef( 180, 1.0, 0.0, 0.0);
glPopMatrix();
glRotatef( 90, 1.0, 0.0, 0.0);
gluCylinder(Cylinder, 0.75, 0, 4, 16, 16);
glPopMatrix();
13 | P a g e
glPopMatrix();
glPopMatrix();
14 | P a g e
int main(int argc, char** argv)
{
glutInit(&argc, argv);
glutInitDisplayMode (GLUT_DOUBLE | GLUT_RGB);
glutInitWindowSize (700, 700);
glutInitWindowPosition (20, 20);
glutCreateWindow ("CLOCK");
init ();
glutDisplayFunc(display);
glutTimerFunc( 10, TimeEvent, 1);
glutMainLoop();
return 0;
}
15 | P a g e
TESING
Testing process of this code is very simple. When we execute the program
it displays the current system time properly during both day and night.
16 | P a g e
USER MANUAL
Original screenshot:
17 | P a g e
Screenshot without the digital clock:
18 | P a g e
After changing the background color and clock face:
19 | P a g e
Without the wire cube and disk:
20 | P a g e
Without the lighting effect:
21 | P a g e
CONCLUSION
SUMMARY:
This project shows the graphical representation of a working analogue clock.
The objective of this program is to implement simple and basic functions of OpenGL.
Computer graphics plays a major role in today’s world where visualization takes the
upper hand as compared to textual interaction. This is largely true as we can see user
interface becoming more and more attractive all thanks to major leaps in the fields of
computer graphics. The project is implemented using graphics OpenGL package
provided by C.
SCOPE OF IMPROVEMENT :
Though the package that is designed here does not include complex OpenGL
package, we intend to improve this by including extra features like lighting effects,
Changing the background color adding alarams. We do this with an aim to attract
more people to use our package
22 | P a g e
REFERENCE AND BIBLIOGRAPHY
1. Acharya, Kamal, Online job placement system project report. (January 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4831638 or http://dx.doi.org/10.2139/ssrn.4831638
2. Acharya, Kamal, Software testing for project report. (May 16, 2023). Available at
SSRN: https://ssrn.com/abstract=4831028 or http://dx.doi.org/10.2139/ssrn.4831028
3. Acharya, Kamal, ONLINE CRIME REPORTING SYSTEM PROJECT. (August 10, 2022). Available at
SSRN: https://ssrn.com/abstract=4831015 or http://dx.doi.org/10.2139/ssrn.4831015
4. Acharya, Kamal, Burger ordering system project report. (October 10, 2022). Available at
SSRN: https://ssrn.com/abstract=4832704 or http://dx.doi.org/10.2139/ssrn.4832704
5. Acharya, Kamal, Teachers Record Management System Project Report (December 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4833821 or http://dx.doi.org/10.2139/ssrn.4833821
6. Acharya, Kamal, Dairy Management System Project Report (December 20, 2020). Available at
SSRN: https://ssrn.com/abstract=4835231 or http://dx.doi.org/10.2139/ssrn.4835231
7. Acharya, Kamal, Electrical Shop Management System Project (December 10, 2019). Available at
SSRN: https://ssrn.com/abstract=4835238 or http://dx.doi.org/10.2139/ssrn.4835238
8. Acharya, Kamal, Online book store management system project report. (Febuary 10, 2020). Available at
SSRN: https://ssrn.com/abstract=4835277 or http://dx.doi.org/10.2139/ssrn.4835277
9. Acharya, Kamal, Paint shop management system project report. (January 10, 2019). Available at
SSRN: https://ssrn.com/abstract=4835441 or http://dx.doi.org/10.2139/ssrn.4835441
10. Acharya, Kamal, Supermarket billing system project report. (August 10, 2021). Available at
SSRN: https://ssrn.com/abstract=4835474 or http://dx.doi.org/10.2139/ssrn.4835474
11. Acharya, Kamal, Online taxi booking system project report. (March 10, 2022). Available at
SSRN: https://ssrn.com/abstract=4837729 or http://dx.doi.org/10.2139/ssrn.4837729
12. Acharya, Kamal, Online car servicing system project report. (March 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4837832 or http://dx.doi.org/10.2139/ssrn.4837832
13. Acharya, Kamal, School management system project report. (July 10, 2021). Available at
SSRN: https://ssrn.com/abstract=4837837 or http://dx.doi.org/10.2139/ssrn.4837837
14. Acharya, Kamal, Furniture Showroom Management System Project Report (March 21, 2021). Available at
SSRN: https://ssrn.com/abstract=4839422 or http://dx.doi.org/10.2139/ssrn.4839422
15. Acharya, Kamal, Online Vehicle Rental System Project Report (March 21, 2019). Available at
SSRN: https://ssrn.com/abstract=4839429 or http://dx.doi.org/10.2139/ssrn.4839429
16. Acharya, Kamal, Fruit Shop Management System Project Report (August 10, 2023). Available at
SSRN: https://ssrn.com/abstract=4841048 or http://dx.doi.org/10.2139/ssrn.4841048
17. Acharya, Kamal, Hall Booking Management System Project Report (December 21, 2023). Available at
SSRN: https://ssrn.com/abstract=4841055 or http://dx.doi.org/10.2139/ssrn.4841055
18. Acharya, Kamal, Lundry Management System Project Report (October 21, 2023). Available at
SSRN: https://ssrn.com/abstract=4841059 or http://dx.doi.org/10.2139/ssrn.4841059
19. Acharya, Kamal, A CASE STUDY OF CINEMA MANAGEMENT SYSTEM PROJECT (September 25, 2023).
Available at SSRN: https://ssrn.com/abstract=4841209 or http://dx.doi.org/10.2139/ssrn.4841209
23 | P a g e
20. Acharya, Kamal, A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT (May 25, 2024).
Available at SSRN: https://ssrn.com/abstract=4841210 or http://dx.doi.org/10.2139/ssrn.4841210
21. Acharya, Kamal, ONLINE DATING MANAGEMENT SYSTEM PROJECT REPORT. (April 25, 2023).
Available at SSRN: https://ssrn.com/abstract=4842066 or http://dx.doi.org/10.2139/ssrn.4842066
22. Acharya, Kamal, ONLINE RESUME BUILDER MANAGEMENT SYSTEM PROJECT REPORT. (April 25,
2021). Available at SSRN: https://ssrn.com/abstract=4842071 or http://dx.doi.org/10.2139/ssrn.4842071
23. Acharya, Kamal, TOLL TEX MANAGEMENT SYSTEM PROJECT REPORT (August 21, 2023). Available at
SSRN: https://ssrn.com/abstract=4842082 or http://dx.doi.org/10.2139/ssrn.4842082
24. Acharya, Kamal, Chat Application Through Client Server Management System Project Report (June 25,
2023). Available at SSRN: https://ssrn.com/abstract=4842761 or http://dx.doi.org/10.2139/ssrn.4842761
25. Acharya, Kamal, Web Chatting Application Management System Project Report (April 25, 2022). Available
at SSRN: https://ssrn.com/abstract=4842771 or http://dx.doi.org/10.2139/ssrn.4842771
26. Acharya, Kamal, Automobile management system project report (May 25, 2022). Available at
SSRN: https://ssrn.com/abstract=4846917 or http://dx.doi.org/10.2139/ssrn.4846917
27. Acharya, Kamal, College bus management system project report (April 25, 2023). Available at
SSRN: https://ssrn.com/abstract=4846920 or http://dx.doi.org/10.2139/ssrn.4846920
28. Acharya, Kamal, Courier management system project report (May 25, 2023). Available at
SSRN: https://ssrn.com/abstract=4846922 or http://dx.doi.org/10.2139/ssrn.4846922
29. Acharya, Kamal, Event management system project report (April 25, 2021). Available at
SSRN: https://ssrn.com/abstract=4846927 or http://dx.doi.org/10.2139/ssrn.4846927
30. Acharya, Kamal, Library management system project report II (May 25, 2020). Available at
SSRN: https://ssrn.com/abstract=4848857 or http://dx.doi.org/10.2139/ssrn.4848857
31. Kamal Acharya. Teacher record management system project report. Authorea. August 02, 2024.
DOI: https://doi.org/10.22541/au.172261514.46787329/v1
32. Kamal Acharya. POST OFFICE MANAGEMENT SYSTEM PROJECT REPORT. Authorea. August 02, 2024.
DOI: https://doi.org/10.22541/au.172261514.44494375/v1
33. Kamal Acharya. Fruit shop management system project report. Authorea. August 02, 2024.
DOI: https://doi.org/10.22541/au.172261514.42227675/v1
34. Kamal Acharya. Dairy management system project report. Authorea. August 02, 2024.
DOI: https://doi.org/10.22541/au.172261513.39402347/v1
35. Kamal Acharya. DATA COMMUNICATION AND COMPUTER NETWORK MANAGEMENT SYSTEM
PROJECT REPORT. Authorea. August 01, 2024.
DOI: https://doi.org/10.22541/au.172254873.37480177/v1
36. Kamal Acharya. School management system project report. Authorea. August 01, 2024.
DOI: https://doi.org/10.22541/au.172254873.34023165/v1
37. Kamal Acharya. A CASE STUDY OF CINEMA MANAGEMENT SYSTEM PROJECT. Authorea. August 01,
2024. DOI: https://doi.org/10.22541/au.172254873.30191075/v1
38. Kamal Acharya. A CASE STUDY ON ONLINE TICKET BOOKING SYSTEM PROJECT. Authorea. August
01, 2024. DOI: https://doi.org/10.22541/au.172254872.26972790/v1
39. Kamal Acharya. Web chatting application project report management system. Authorea. August 01, 2024.
DOI: https://doi.org/10.22541/au.172254871.18588592/v1
40. Kamal Acharya. RETAIL STORE MANAGEMENT SYSTEM PROJECT REPORT. Authorea. August 01, 2024.
DOI: https://doi.org/10.22541/au.172254871.14590154/v1
24 | P a g e
41. Kamal Acharya. SUPERMARKET MANAGEMENT SYSTEM PROJECT REPORT. Authorea. August 01,
2024. DOI: https://doi.org/10.22541/au.172252491.19145062/v1
42. Kamal Acharya. SOCIAL MEDIA MANAGEMENT SYSTEM PROJECT REPORT. Authorea. August 01,
2024. DOI: https://doi.org/10.22541/au.172252491.11210579/v1
43. Kamal Acharya. Online music portal management system project report. Authorea. August 01, 2024.
DOI: https://doi.org/10.22541/au.172252488.89734698/v1
44. Kamal Acharya. COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT. Authorea. July 31, 2024.
DOI: https://doi.org/10.22541/au.172245277.70798942/v1
45. Kamal Acharya. AUTOMOBILE MANAGEMENT SYSTEM PROJECT REPORT. Authorea. July 31, 2024.
DOI: https://doi.org/10.22541/au.172245276.67982593/v1
46. Kamal Acharya. Ludo management system project report. Authorea. July 31, 2024
DOI: https://doi.org/10.22541/au.172243999.98091616/v1
47. Kamal Acharya. Literature online quiz system project report. Authorea. July 31,
2024. DOI: https://doi.org/10.22541/au.172243825.53562953/v1
48. Kamal Acharya. Avoid waste management system project. Authorea. July 29, 2024
DOI: https://doi.org/10.22541/au.172228528.85022205/v1
49. Kamal Acharya. CHAT APPLICATION THROUGH CLIENT SERVER MANAGEMENT SYSTEM
PROJECT. Authorea. July 29, 2024. DOI: https://doi.org/10.22541/au.172228527.74316529/v1
50. Kamal Acharya. Parking allotment system project report. Authorea. July 29, 2024.
DOI: https://doi.org/10.22541/au.172227078.89966943/v1
51. Kamal Acharya. HEALTH INSURANCE CLAIM MANAGEMENT SYSTEM. Authorea. July 26, 2024.
DOI: https://doi.org/10.22541/au.172202020.06707762/v1
52. Kamal Acharya. ONLINE TRAIN BOOKING SYSTEM PROJECT REPORT. Authorea. July 22, 2024.
DOI: https://doi.org/10.22541/au.172167914.45160406/v1
53. Kamal Acharya. COVID MANAGEMENT SYSTEM PROJECT REPORT. Authorea. July 16, 2024.
DOI: https://doi.org/10.22541/au.172116616.60220024/v1
54. Kamal Acharya. COVID MANAGEMENT SYSTEM PROJECT REPORT. Authorea. July 16, 2024.
DOI: https://doi.org/10.22541/au.172116616.60220024/v1
25 | P a g e