You are on page 1of 30

A PROJECT REPORT ON

A MAN WALKING IN THE RAIN WITH UMBRELLA

SUBMITTED TO THE UNIVERSITY OF MUMBAI, IN THE PARTIAL FULFLLMENT OF


REQUIREMENTS FOR THE AWARD OF THE DEGREE
OF

BACHELOR OF ENGNEERING (COMPUTER ENGG.)

BY

Name of Student Exam No.

1. Miss. Saloni Mhatre (Leader) 15


2. Mr. Kaushal Pansare 22
3. Miss. Srushti Patil 25

GUIDE NAME
PROF.S.N.JADHAV

DEPARTMENT OF COMPUTER ENGINEERING

G. M. VEDAK INSTITUTE OF TECHNOLOGY, TALA

A.Y. 2023-24
CERTIFICATE

This is to certify that the project entitled “A man walking in the rain with
umbrella” is a bonafide work of “saloni mhatre, kaushal pansare , srushti patil
submitted to the University of Mumbai in partial fulfillment of the requirement
for the award of the degree of “Bachelor of Engineering” in “Computer
Engineering”.

Prof.S.N.JADHAV
Guide
Prof.K.R Metha DR.D.N.JAISWAL

Head Of Department Principal


REPORT APPROVAL

This is certified that the project – 2A report “A MAN WALKING IN THE


RAIN WITH UMBRELLA” submitted by Miss.Saloni Mhatre – 15(leader),
Mr.Kaushal Pansare – 22(1st member), Miss.Srushti Patil– 25. (2nd member) is
approved for the for the partial fulfilment of the requirement of the University of
Mumbai for the award of the Bachelor’s Degree of Engineering (Computer
Engineering).

Internal Examiner:

-----------------------------------

-----------------------------------

External Examiner:

-----------------------------------

-----------------------------------

Place: GMVIT, Tala

Date:
DECLARATION

We declare that in this written submission represents our ideas in our own words
and where others’ ideas or words have been included. We have adequately cited
and referenced the original sources. We have adhered to all principles of
academic honesty and integrity and have not misrepresent or fabricated or
falsified any idea/data/fact/source in our submission. We understand that any
violation of the above will be cause for disciplinary action by the Institute and can
also evoke penal action from the sources which have thus not been properly cited
or from whom proper permission has not been taken when needed.

Miss.Saloni Mhatre 15

Mr.Kaushal Pansare – 22

Miss.Srushti Patil – 25
ACKNOWLEDGEMENT

We would sincerely like to thank our guide for this project/mini project Prof.S.N.JADHAV for
providing us his/her valuable time and support throughout the project/mini project. We would
also like to extent my gratitude to Prof.K.R.Metha (Head of Department of Computer
Engineering) and all the other faculty members for helping us generously We would like to
thank Teaching & Non-teaching staff of Computer Department who helped me time to time in
all respects. And Librarian for providing me all the reference books and material needed for
project. Special thanks to my parents and my friends for all the laughs and mood boosters
without whom engineering wouldn’t have been so pleasant for a memory.
 TABLE OF CONTENTS

CHAPTER NO TITLE

1 Introduction
2 Objectives
3 Theoretical background
4 Features & scopes
5 Existing system
6 Proposed system
7 Methodology
8 A man walking in the rain steps
9 Course code
10 Conclusion
11 Reference
12 Proposed system
13 Methodology
14 A man walking in the rain steps
15 Course code
16 Conclusion
17 Reference
 ABSTRACT

This report has been prepared to the “Graphically A Man Walking in


the Rain with umbrella”. This document is the final report of the
findings and recommendations of the Computer Graphics for III year I
part. Computer graphics remains one of the most exciting and rapidly
growing computer fields. Computer graphics has
now become a common element in user interfaces, data visualization, t
elevision commercial, motion pictures, and many-many other
application. With the advantages of Graphics, modern subject, we can
be able to design different applications and tools which can be
beneficial in our daily life. Besides, some entertaining applications can
also be designed using Graphics such as Games, Photo Effects etc. Many
people have contributed to this project in variety of ways .To all of
them we would like to express our appreciation .We are trying to apply
the Graphics applications on designing a Man Walking in the Rain with
umbrella. It will display give the Rain, clouds, man and an Umbrella.

CHAPTER 1
 INTRODUCTION

Computer has become a powerful tool for the rapid and


economical production of pictures. Computer Graphics remains o
ne the
most exciting andrapidly growing fields. Old Chinese saying “One
picture is worth of thousandwords” can be modified in this
computer era into “One picture is worth of many kilobytes of
data”. It is natural to expect that graphical communication will
often be more convenient when computers are utilized for this
purpose. Many people for different domain of applications use
interactive graphics. For example structural engineering use for
efficient design of structures on the basis of the analysis of stress
in various elements of the structure. From the survey it is evident
that in future, engineers, designers etc. will be using computer
graphics quite extensively.There is virtually no area in which
graphical displays cannot be used to some advantage, and so it is
not surprising to find the use of computer graphics so widespread.
Today, we find Computer Graphics used routinely in such diverse
areas such as science, engineering, medicine, business, industry,
government, art, entertainment, advertising, education, training,
etc. So for understanding the depth of this subject and for gaining
sound knowledge in this field we had an attempt the first step on
this current field. We tried to make a graphically designated A
Man Walking in the Rain. The Graphic Designated Man, Cloud,
Rain and Umbrella are made with the application of Graphics
codes. This project applied the subject and made the graphics
with the image and video editing. We hoped with our project the
illiterate (who cannot read the letters) can be benefitted in day
today life.1

CHAPTER 2
OBJECTIVES
 The main objectives of this projects are:

The main objectives of this project are:


To implement the features of graphics.
To interface the applications of graphics to the real world.
To give some benefits to the disability.
To make the life easier.
To become familiarization with Graphics and its logical coding.

CHAPTER 3
THEORITICAL BACKGROUND
PRINCIPLES
The primary goals in the creation of a man walking in the rain are:
It must be “Simpler and familiar”.
It must be “able convey the exact information”.
It must be “attractive”.
It should contain “Multimedia Components”.

CHAPTER 4
FEATURES AND SCOPES

Computer Graphics has revolutionized almost every computer-based


application in science and technology. Information technology is a
trend today. As the volume of information increases, problem of
storage arises. As time is money, in the 21st century people doesn’t
have the time to read huge number of pages. Softhis problem is solved
by Computer Graphics. Picture can represent a huge database like bar
charts, pie charts etc. suppose, we have to show the performance of
some factory related with profit since 1980. One requires large number
of pages to store this huge information related with financial, numerical
and statistical information. A common man requires a lot of time to
understand it. There is an alternative to show or represent this
information with the help of graphical tools such as bar chart or pie
chart i.e. we can express this data in pictorial forms. The importance of
computer graphics lies in its applications. In engineering applications
(e.g. automotive and aerospace) the ability to quickly visualize newly
designed shapes is indispensable. Computer graphics has expand end
also the boundaries of art and entertainment. Movies such as“ JURASSI
CPARK make extensive use of computer graphics to create images that
test the bounds of imagination. The development of computer graphics
has made possible virtual reality, a synthetic reality that exists only
inside a computer. Virtual reality is
fast becoming an indispensable tool in education. Flight simulators are
used to train pilot for extreme conditions. Surgical simulators are
used to train novice surgeons without endangering patient Our project
is one of the examples for the above mutation features and scope of
computer graphics and its applications. Applications like our projects
can be further improved with more features and can be implemented
in our day-to-day life. We can take many advantages of this subject in
the future. It is probable that at present situation also, it is anyhow
utilized in modern technical gadgets.6

CHAPTER 5
EXISITING SYSTEM

CHAPTER 6
PROPOSED SYSTEM
CHAPTER 7

METHODOLOGY
This project was done with the help of C-Programming Language. Different
methods are performed in order to make it more applied and efficient.
CGraphics programming is very easy and interesting. We used graphics programm
ing fordeveloping our projects, for designing, animation etc. It's not like
traditional C programming in which you have to apply complex logic in your
program and then you end up with a lot of errors and warnings in your program.
In ,C
graphics programming you have to use standard library functions (need not worry
if youdon't know functions) to get your task done. Just you pass arguments to the
functions and it's done. Many graphic functions are coded on its header
file<graphics .h >.
Sample Graphics Code:
This program initializes graphics mode and then closes it after a key is pressed.
To begin with we have declared two variables of int type g d and gm for graphics
driver and graphics mode respectively, you can choose any other variable name
as you wish. DETECT is a macro defined in "graphics .h" header file,
we have passed three arguments to epigraph function first is the address of
descend is the address of gm and third is the path where your BGI files are
present(we have adjusted this accordingly where our turbo compiler is installed).
Init graph function automatically decides an appropriate graphics driver and
mode such that maximum screen resolution is set, getch () helps us to wait until a
key is pressed , close graph () function closes the graphics mode and finally return
statement returns value 0 to main indicating successful execution of your
program.
Some of the function included in<graphics’> used in our project:

i)Line function:
line function is used to draw a line from a point(x1,y1) to point(x2,y2) i.e.(x1,y1)
and(x2,y2) are end points of the line. The code given below draws a line.
Declaration: -
void line (int x1, int y1, int x2, int y2);

ii)Circle function:
Circle function is used to draw a circle with center (x, y) and third parameter
specifies the radius of the circle. The code given below draws a circle.
Declaration: -
void circle (int x, int y, int radius);

iii) Set colour function:


In Turbo Graphics each colour is assigned a number. Total 16colors are available.
Strictly speaking number of available colors11depends on current graphics mode
and driver. For Example :- BLACK is assigned 0, RED is assigned 4 etc. set colour
function is used to change the current drawing colour .e.g. Set colour (RED) or set
colour (4)changes the current drawing colour to RED. Remember that default
drawing colour is WHITE.
Declaration: - void set colour (int colour);

iv)Out textxy function:


Out function display text or string at a specified point(x,y) on the screen.
Declaration: -
void Outt extxy (int x, int y, char *string);x, y are coordinates of the point and
third argument contains the address of string to be displayed.

v)Get max function:


getmax function returns the maximum X coordinate for current graphics mode
and driver.
Declaration:-
int getmaxx ();

vi)Getmaxy function:
getmaxy function returns the maximum Y coordinate forcurrent graphics mode
and driver.
Declaration:-
intgetmaxy();12

Vii)
Setline style function:
Setline style function sets line style, thickness, unsigned up attern etc.
Declaration: -
void setline style (intline style, unsigned upattern, int thickness);
Viii)
Put pixel function:
Put pixel function plots a pixel at location (x, y) of specified colour.
Declaration: -
void put pixel (int x, int y, int colour);For example if we want to draw a GREEN
colour pixel at (35, 45) then we will write put pixel (35, 35, GREEN); in our c
program, put pixel function can be used to draw circles, lines and ellipses using
various algorithms.

ix)
Set fill style function:
setfillstyle function sets the current fill pattern and fill colour.
Declaration: -
void setfillstyle (int pattern, int color);13

CHAPTER 8
A MAN WALKING IN THE RAIN STEPS
Step 1:
Open the Turbo C++

Step 2:
Start the Turbo C++.16
Step 3:
Create a new file.17

Step 4:
write the code here.

Step 5 & step 6


Step 5: Compile the program.18 and ,step 6: run the program 19

Step 7:
display the output.

Step 8:
Exit the Turbo C++.20

CHAPTER 9SOURCE CODE

CHAPTER 9SOURCE CODE


#include<conio.h>
#include<stdio.h>
#include<graphics.h>
void displayMan(int x,int y)
{
circle(x,y,10);
line(x,y+10,x,y+30);
line(x,y+30,x20,y+40);
line(x,y+30,x+20,y+40);
line(x+20,y+40,x+30,y+30);
line(x,y+30,x,y+70);
line(x+30,y+30,x+30,y-90);
pieslice(x+30,y-30,0,180,55);
}
void drawCloud(int z,int y)
{
intr=50;
arc(z,y,45,135,r);
arc(z+50,y,45,135,r);
arc(z+100,y,45,135,r);
arc(z,y,135,225,r);
arc(z+50,y,135+90,225+90,r);
arc(z,y,135+90,225+90,r);
arc(z+100,y,315,45,r);
}
voidmain()
{
int gd=DETECT,gm,i,d=0,x=50,y=340,z=50,shouldmove=0;
int rx,ry;
initgraph(&gd,&gm,"c:\\TURBOC3\\bgi");
while(!kbhit())
{
cleardevice();
displayMan(x,340);
drawCloud(z,60);
line(0,430,639,430);
for(i=0;i<500;i++)
{
rx=rand()%639;
ry=rand()%439;
if(rx>=(x-40)&&rx<=(x+110))
if(ry>=(y-50)&&ry<=479)
continue;line(rx-10,ry+10,rx,ry);
}
if(shouldmove)
{
if(d<20)
d+=4;
elseshouldmove=0;
line(x,y+70,x-d,y+90);
line(x,y+70,x+d,y+90);
}
Else
{
if(d>0)
d-=4;
else
shouldmove=1;
line(x,y+70,x-d,y+90);
line(x,y+70,x+d,y+90);
}
delay(200);
x=(x+10)%639;
}
getch();
}

CHAPTER 10

OUTPUT
z

CONCLUSION

This project is one of the sample project on Computer Graphics.. Though many
difficulties were faced during the project as well as many errors occurred,
we became succeed to compile and run the program.
There may be some limitation on this project as well, so, in the near future we
would like to be hopeful in further improvements. We are highly obliged to all
helping hands and to all inspirations to make this project successful. Well this
project will be applicable to most of all. Aswell as, we are more hopeful for more
advice, new ideas and inspiration to make more other projects .To had tried our
best to include each and every basic features of graphics in our projects. We
aimed it to be an interfacing application to the real world that means our project
must not be a project for any examination but also applicable for world use. We
have able to give some benefits to the disability. It some how makes our life
easier in this or that way. From this very project we were able to achieve various
knowledge in computer graphics and also in logical coding. We refresh our
knowledge in C Programming. Moreover we also gained an experience of group
work, team coordination. We learned how team work is very much important in
engineering field.
CHAPTER 11
REFERENCES
 Donald,Hearn,Computer Graphics ,Pearson Education:2005,Pearson
Education.
 www.learnstreet.com
 http://www.sourcecodesworld.com/

You might also like