For The Diploma in Computer Engineering: Submitted by
For The Diploma in Computer Engineering: Submitted by
PROJECT REPORT
ON
"MOVING A ROCKET"
AND
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION, MUMBAI
A
MICRO-PROJECT REPORT ON
“MOVING A ROCKET”
FOR THE DIPLOMA IN COMPUTER ENGINEERING
SUBMITTED BY
We would like to express our thanks to the people who have helped us most
throughout our project. We would like to express our sincere thanks to the principal
of CSMSS College of Polytechnic Dr. Ganesh B. Dongre for being always with us
as a motivator. We are thankful to the H.O.D. of Computer Engineering Department
Mrs.R.S.Pophale for her kind support. We are grateful to our Project Guide Mrs.
R.S.Pophale for nonstop support and continuous motivation for the project. Her help
made us possible to complete our project with all accurate information. A special
thanks of our goes to our friends who helped us in completing the project, where they
all exchanged their own interesting ideas. We wish to thanks our parents for their
personal support or attention who inspired us to go our own way. Finally, we would
like to thank God who made all things possible for us till the end.
Mrs. R.S.Pophale
(Project Guide)
INDEX
1 MICRO-PROJECT PROPOSAL 01
3 COURSE OUTCOME 01
4 PROPOSED METHODOLOGY 01
5 ACTION PLAN 02
6 RESOURCE USED 03
7 RATIONALE 04
8 LITERATURE REVIEW 05
11 SKILL DEVELOPMENT 13
12 APPLICATIONS 13
MICRO-PROJECT PROPOSAL
TITLE OF MICRO-PROJECT:- MOVING A ROCKET
• To develop C program to perform read and write operation to the given file.
1
3.0 PROPOSED METHODOLOGY
GRAPHICS.H
GRAPHICS.H is a header file in C that is used for drawing various shapes and other graphics. It is also used to
color the objects drawn. We can also find out the coordinates of points on the screen using it. In order to be able
to use graphics.h we need to have the drivers installed and recognized by the program. Also the graphics card
inserted in the computer needs to be known.
INITGRAPH
To start the graphics system, you must first call initgraph. Initgraph initializes the graphics system by loading a
graphics driver from disk (or validating a registered driver) then putting the system into graphics mode. Initgraph
also resets all graphics settings (color, palette, current position, viewport, etc.) to their defaults, and then resets
graph result to 0.
LINE
Line is an inbuilt function present in graphics.h that draws a line in the current drawing color between two given
coordinates. void line(int x1,int y1,int x2,int y2);
Line draws a line from point (x1,y1) to point (x2,y2) using the current drawing color, line style and thickness. It
does not update the current position (CP).In order to draw a line using this function, one just need to call the
function line and pass the values of thex and y coordinates of the initial and final initial and final points of the
line
2
CIRCLE
Circle is an inbuilt function present in graphics.h that draws a circle in the current drawing color. void circle(int
x, int y, int radius); x and y are the coordinates of the center of the circle and radius is the value of radius of
circle. In order todraw a circle using this function, one just needs to call the function circle and pass the values
of the centerof the circle and its radius.
GETPIXEL
Getpixel gets the color of a specified pixel. Its declaration is given as: unsigned getpixel(int x, int y); Getpixel
gets the color of the pixel located at (x, y) and returns its color value.
PUTPIXEL
Putpixel plots a pixel at a specified point. Its declaration is given as: void putpixel(int x, int y, int color);
ELLIPSE
Ellipse is used to draw an ellipse (x,y) are coordinates of center of the ellipse, stangle is the starting angle, end
angle is the ending angle, and fifth and sixth parameters specifies the X and Y radius of the ellipse. To draw a
complete ellipse strangles and end angle should be 0 and 360 respectively.
3
SET FILL STYLE()
This function contains two parameters, both integers. With first parameter we can specify any fill style. Like for
example 1 is for SOLID_FILL, 2 is for LINE_FILL, ——, 4 is for SLASH_FILL. However, Possible values are
from 0 to 12. It will set the fill pattern for an enclosed shape. Also, The second parameter is for specifying color
with which we want to fill the shape.
FLOODFILL()
This function contains three parameters, all integers. So In this function we will specify any point which is inside
an enclosed figure like square , rectangle. So First two parameters are coordinate location of any interior point.
Also, Third parameter is boundary color of that shape. So basically this function will start filling the shape from
interior point till it reaches to boundary color.
SET COLOR
Setcolor sets the current drawing color to color, which can range from 0 to getmaxcolor. The
current drawing color is the value to which pixels are set when lines, and so on are drawn. The
drawing colors shown below are available for the CGA and EGA, respectively.
4
4.0ACTION PLANS:
.
Planned
Planned Name of
Sr. Finish
No. Details of activity Responsible
Start date
date Team Members
Select the topic about the
1. 15.09.2023 25.10.2023 ALL
micro-project.
Collect information
2. about our topic. 20.09.2023 30.09.2023 ALL
To prepare project
5. Report 25.10.2023 30.10.2023 ALL
5
5.0 RESOURCES REQUIRED:
2. Internet Youtube/Google
4. Software Turbo C
Approved by
Mrs.R.S.Pophale
6
Micro-Project Report
TITLE:- MOVING A ROCKET
1.0 RATIONALE
This course provides an introduction to the principles computer graphics. In particular ,the course will
consider methods for object designs, transformation, scan conversion, visualization and modeling of
real world .The emphasis of the course will be placed on understanding how the various elements that
underlie computer graphics(algebra,geometry,algorithms)interact in the designs of graphics software
systems and also enables student to create impressive graphics easily and efficiently.
• We are able to understand translation and scaling from this micro project.
7
4.0 LITERATURE REVIEW:
Introduction
It is difficult to display an image of any size on the computer screen. This method is simplified by using
Computer graphics. Graphics on the computer are produced by using various algorithms and
techniques.
Computer Graphics involves technology to access. The Process transforms and presents information in
a visual form. The role of computer graphics insensible. In today life, computer graphics has now
become a common element in user interfaces, T.V. commercial motion pictures .Computer Graphics is
the creation of pictures with the help of a computer. The end product of the computer graphics is a
picture it may be a business graph, drawing, and engineering.
In computer graphics, two or three-dimensional pictures can be created that are used for research. Many
hardware devices algorithm has been developing for improving the speed of picture generation with the
passes of time. It includes the creation storage of models and image of objects.. It is an interactive user
can control the structure of an object of various input devices.
8
1. ACTUAL METHODOLOGY FOLLOWED
PROGRAM CODE
#include<stdio.h>
#include<conio.h>
#include<graphics.h>
#include<dos.h>
void main()
{
int A=DETECT,B,i,h=0;
clrscr();
initgraph(&A,&B, "C: \\TC\\BGI");
{
for(i=0;i<200;i++)
{
line(250,250+h,250,400+h);
line(320,250+h,320,400+h);
ellipse(285,260+h,0,360,35,10);
ellipse(285,400+h,0,360,35,10);
setfillstyle(SOLID_FILL,12);
fillellipse(285,260+h,35,10);
fillellipse(285,400+h,35,10);
setcolor(6);
setcolor(WHITE);
line(250,250+h,250,200+h);
line(320,250+h,320,200+h);
line(250,200+h,285,150+h);
line(320,200+h,285,150+h);
line(250,200+h,320,200+h);
line(260,200+h,285,165+h);
line(310,200+h,285,165+h);
line(270,200+h,285,175+h);
line(300,200+h,285,175+h);
line(280,200+h,285,185+h);
line(290,200+h,285,185+h);
9
line(260,200+h,260,252+h);
line(270,200+h,270,251+h);
line(280,200+h,280,250+h);
line(290,200+h,290,250+h);
line(300,200+h,300,251+h);
line(310,200+h,310,252+h);
line(250,400+h,220,450+h);
line(320,400+h,350,450+h);
line(220,450+h,350,450+h);
delay(50);
cleardevice();
h=h-2;
}
}
getch();
closegraph();
}
10
6.0 ACTUAL RESOURCES USED:
11
8.0 SKILL DEVELOPED /LEARNING OUTCOME OF THIS MICROPROJECT
1. Communication
2. Leadership
3. Team management
4. Negotiation
5. Personal organization
6. Risk management
7. Critical thinking
• Presented Graphics
• Computer Art
• Entertainment
• Visualization
• Educational Software