CGR Micro Project
CGR Micro Project
CGR Micro Project
ON
FLYING BIRD
SUBMITTED BY
DIPLOMA IN ENGINEERING
DEPARTMENT OF FEE
THIS IS TO CERTIFY
THAT
FLYING BIRD
AS A PART OF SYLLABUS OF
EDUCATION
DIPLOMA IN ENGINEERING
COMPUTER ENGINEERING
PROF. RIYA I. WAGASKAR PROF. ISHAN
WAGASKAR
(GUIDE) (H.O.D)
INTRODUCTION :
Birds fly by flapping their wings, steering mainly with their tails.
Compared to the parts of an airplane, a bird’s wing acts as both wing
and propeller. The basal part of the wing supplies most of the
supporting surface, the wing tip most of the propelling force. A bird’s
wing has many adjustable features: it can be shortened or lengthened by
flexion; the feathers of the tip can be spread or closed; the angle of the
whole wing or its parts—on one side or both—can be altered.
All of these adjustments make the aerodynamics of a bird’s wing much
more complicated than those of the airplane; consequently, the flight of
a bird is much more varied and adaptable.
PROGRAM:
#include <conio.h>
#include <dos.h>
#include <graphics.h>
#include <iostream.h>
// Wings void
handDown(int i)
{
line(85 + i, 155, 45 + i, 185);
line(85 + i, 155, 115 + i, 195);
arc(90 + i, 130, 228, 292, 70);
}
void handUp(int i)
{
line(85 + i, 155, 125 + i, 115);
line(85 + i, 155, 55 + i, 118);
arc(90 + i, 177, 60, 122, 70);
}
// Driver code
void main()
{
int gd = DETECT, gm;
// Beak
line(170 + i, 147, 180 + i, 153);
line(180 + i, 153, 170 + i, 156);
// Eye circle(162 + i,
150, 2);
// Move hands
if (i % 2 == 0)
handUp(i);
else
handDown(i);
getch();
OUTPUT: