0% found this document useful (0 votes)
51 views16 pages

Micro Project

Micro Project

Uploaded by

gurvekartik6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
51 views16 pages

Micro Project

Micro Project

Uploaded by

gurvekartik6
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

MICRO-PROJECT REPORT ON

“WALKING MAN IN RAIN USING COMPUTER GRAPHICS”

IN PARTIAL FULFILMENT OF DIPLOMA IN COMPUTER ENGINEERING

(Third Semester)

In the Subject of
OBJECT ORIENTED PROGRAMMING USING C++ (22316)
Submitted By

Kartik Y Gurve

Submitted To

Maharashtra State Board of Technical Education, Mumbai (M.S)


Under the Guidance of

Mr.S.U.RATHOD
Lecturer In

Department of COMPUTER Engineering

Government Polytechnic Arvi Dist.-Wardha

(2023-2024)

Government Polytechnic, Arvi Page 1


Government Polytechnic, Arvi.
Department of Computer Engineering

Certificate
This is to certify, that students whose name mention below of Third Semester of
Diploma in Computer Engineering has satisfactorily completed the Micro project
entitled “WALKING MAN IN RAIN USING COMPUTER GRAPHICS”

in COMPUTER GRAPHICS (22318) in the academic year 2022-23 as Prescribed in


MSBTE curriculum.

Name Enrollment No. Seat No.


Kartik Gurve 2201320262

Subject Teacher Head of the Department Principal


Mr.S.U.RATHOD DR. M.A.Ali DR.M.A.Ali

Place: Arvi
Date:

Government Polytechnic, Arvi Page 2


Declaration

We under signed hereby declare that the micro project report


entitled. “WALKING MAN IN RAIN USING COMPUTER GRAPHICS”
I further declare that contents of this report are properly citied and
well acknowledge. This present report is not submitted to any
other examination of this or any other institute for the award of
any diploma.

Place: Arvi
Date:

Signature

Government Polytechnic, Arvi Page 3


PART A – Micro-Project Proposal
“WALKING MAN IN RAIN USING COMPUTER GRAPHICS”

➢ BRIEF INTRODUCTION: -

In Turbo C graphics the graphics.h functions are used to draw


different shapes(like a circle, rectangle, etc), and display text(any
message) in different formats (different fonts and colors). By using
graphics.h programs, animations, and also games can be designed.
These can be useful for beginners.
This program demonstrates how a man walks in the rain with an
umbrella, and when a key is pressed, the rain ceases, and a rainbow
appears in the sky.
The animation also incorporates some basic movement, as the
person's legs appear to move while they walk. This is achieved by
adjusting the position of the legs in each frame of the animation.

➢ AIM OF THE MICRO-PROJECT: -

The aim of the above program appears to be to create a simple


graphical animation using the C programming language. Specifically,
it aims to depict a basic scene of a person walking in the rain, with
the person holding an umbrella.

➢ INTENDED COURSE OUTCOMES: -


CO(a):Manipulate visuals and geometric information of images
CO(b):Implement standard algorithm to draw various graphics
object using C program
CO(d):Use projections to visualize object in view plane.

Government Polytechnic, Arvi Page 4


➢ LITERATURE REVIEW: -

Creating a literature or documentation for a program involves


explaining the purpose, functionality, and details of the code
A literature review is an analysis of existing research and
publications on a specific topic. It aims to provide a comprehensive
understanding of the current state of knowledge in a particular field

➢ PROPOSED METHODOLOGY: -

i. Understand the topic given to us.


ii. Discuss about the topic with group members.
iii. Divide the topic through out each members of the group.
iv. Collected the information from member and verify from our
lecturer.
v. Prepared the main report of our micro project.

➢ GROUP MEMBERS: -

Sr. No. Student Name Signature


27 Kartik Y. Gurve

Government Polytechnic, Arvi Page 5


➢ Action Plan :-
Sr. No Details of Activity Planned Planned Team
start date finish date Members
1 To discuss and get the topic All
of micro project.
2 Start planning on topic of All
microproject.
3 Collect information about All
our topic.
4 Distribute works within All
group members.
To start with creating with
5 main copy of microproject. All
Collect different
6 information about All
microproject.
7 Initiate different views All
about micro project.
8 Editing process must be All
donebefore hard copy.
Check softcopy properly
9 beforepreparing of hardcopy. All
10 To start creating copy All
properly.
11 Checking the information All
from monitor.
12 Check the soft copy. All

13 To present soft copy All


viaG-mail.
Represented the hardcopy All
14 of main micro project.

Government Polytechnic, Arvi Page 6


PART B – Micro-Project Proposal
WALKING MAN IN RAIN USING COMPUTER GRAPHICS”

➢ RATIONALE: -
Overall, the rationale for this program is to provide a hands-
on learning experience in graphics programming, using a
relatively simple and visually engaging animation as a
starting point. It demonstrates fundamental concepts and
techniques applicable in more complex graphical
applications.

➢ INTENDED COURSE OUTCOMES: -


CO(a):Manipulate visuals and geometric information of
images
CO(b):Implement standard algorithm to draw various graphics
object using C program
CO(d):Use projections to visualize object in view plane.

➢ LITERATURE REVIEW:-

Creating a literature or documentation for a program


involves explaining the purpose, functionality, and details
of the code
A literature review is an analysis of existing research and
publications on a specific topic. It aims to provide a
comprehensive understanding of the current state of
knowledge in a particular field.

Government Polytechnic, Arvi Page 7


➢ ACTUAL METHODOLOGY FOLLOWED: -

This program helps to understand the logic and purpose


behind each component of the code. Your description makes
it clear that the program aims to create a graphical animation
of a person walking in the rain with an umbrella. You've also
outlined the steps involved in achieving this animation,
including the use of graphics functions, color manipulation,
and randomization for raindrop effects. This explanation
provides valuable insight for someone looking to understand
or modify the program.

Government Polytechnic, Arvi Page 8


➢ ALGORITHM:-

➢ Include necessary header files.


➢ Define functions for drawing a man and a cloud.
➢ Initialize graphics mode and open a window.
➢ Create a loop that runs until a key is pressed.
➢ Clear the graphics window at the start of each loop
iteration.
➢ Draw the man, cloud, and a horizontal line for the ground.
➢ Generate random raindrops in a loop.
➢ Animate the legs of the man for a walking effect.
➢ Add a delay to control the animation speed.
➢ Update x-coordinate to simulate movement.
➢ Check if a key has been pressed, and if so, exit the loop.
➢ Wait for a key press and then close the graphics window.
➢ Return a success code indicating successful execution.

Government Polytechnic, Arvi Page 9


➢ EXPLANATION OF PROGRAM:-

1. Include Necessary Header Files:


Include <conio.h> for console input/output and <graphics.h> for graphics
handling.

2. Define Drawing Functions:


Define functions like displayMan and drawCloud to handle drawing specific
elements in the graphics window.

3. Initialize Graphics:
Use initgraph to set up the graphics mode and open a graphics window.

4. Main Loop:
Create a loop that continues execution until a key press is detected using
kbhit().

5. Draw Elements:
Call the drawing functions to display the man, cloud, and a line to represent
the ground.

6. Generate Raindrops:
Use a loop to randomly generate and draw raindrops on the screen.

7. Animate Legs:
Implement logic to create a walking animation for the man's legs.

8. Add Delay for Animation:


Introduce a delay using delay() to control the speed of the animation.

9. Simulate Movement:
Update the x-coordinate to simulate horizontal movement, creating the effect
of walking.

10.Wait for Key Press and Close Graphics:


Use getch() to wait for a key press before closing the graphics window with
closegraph()

Government Polytechnic, Arvi Page 10


➢ PROGAM:-

Government Polytechnic, Arvi Page 11


Government Polytechnic, Arvi Page 12
➢ OUTPUT:-

Government Polytechnic, Arvi Page 13


➢ CONCLUSION:-

The provided program is a simple graphics animation


implemented in C. It uses the Turbo C++ graphics library to create
a visual representation of a man walking in the rain with an
umbrella.
In summary, this program combines graphics handling with basic
animation techniques to create a visual representation of a
walking figure in the rain. Keep in mind that this code is designed
to be run in a DOS environment with a specific graphics library
and may not work in modern environments without modification.

Government Polytechnic, Arvi Page 14


➢ SKILL DEVELOPED/LEARNING OUT OF THE MICRO-
PROJECT: -

1.C Programming Skills:


- You'll gain proficiency in writing C code, including functions,
loops, conditional statements, and using libraries.

2. Graphics Programming:
- You'll learn how to use a graphics library (like the Turbo C++
graphics library) to create visual elements on a screen.

3. Algorithmic Thinking:
- You'll develop the ability to break down a problem (in this
case, creating a simple animation) into smaller, manageable
steps.

.
➢ APPLICATION OF THE MICRO-PROJECT: -

a. The microproject of the above program, which involves


creating a simple animation of a man walking in the rain, has
several potential applications:
b. This project can be used as an educational tool to teach
programming concepts, especially graphics programming and
animation techniques.
c. It serves as a hands-on introduction to graphics
programming, helping learners understand the basics of
drawing and animating objects on a screen.
This project can be used as a practical exercise in a computer
graphics course, teaching students how to implement simple
animations.

Government Polytechnic, Arvi Page 15


➢ AREA OF FUTURE IMPROVEMENT: -

The microproject involving a simple animation of a man walking in the


rain provides a foundational platform for future development in
computer graphics and programming. It introduces key concepts like
graphics rendering, animation, and user interaction. Overall, this
microproject offers a versatile entry point into a diverse array of exciting
fields within computer graphics, making it an excellent starting point for
further exploration and development.

➢ REFERENCES:-

➢ https://www.geeksforgeeks.org/c-program-to-show-a-man-
walking-in-rain/
➢ https://www.coursera.org/articles/computer-graphics
➢ https://www.google.co.in/books/edition/Computer_Graphics/zTF
PF3uN7ecC?hl=en&gbpv=1&dq=computer+graphics&printsec=fron
tcover
➢ https://www.youtube.com/watch?v=uTBKa1PSyf8&list=PLYwpaL_
SFmcAtxMe7ahYC4ZYjQHun_b-T

Government Polytechnic, Arvi Page 16

You might also like