Professional Documents
Culture Documents
Yukti CGR Mic
Yukti CGR Mic
Yukti CGR Mic
Sr.
Characteristic to be Poor Average Good Excellent
No.
assessed (Marks 1-3) (Marks 4-5) (Marks 6 - 8) (Marks 9-10)
(A) Process and Product Assesssment (Convert above total marks out of 6 marks)
1 Relevance to the Course
Literature Survey /
2
Information Collection
Completion of the Target as
3
per project proposal
Analysis of data and
4
representation
5 Quality of Prototype / Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 marks)
8 Presentation
9 Viva
Micro – Project Evaluation Sheet:
Process Assessment Product Assessment
Part Project Part Individual Total
A – project Methodology B – Project Presentation / Marks 10
Name of Student Proposal (2 marks) Report / Working Viva (4 marks)
(2 marks) Model(2 marks)
(Surname first)
Comments / Suggestions about team work / leadership / inter – personal communication (if any)
MICRO PROJECT
Academic year 2023-24
TITLE OF PROJECT
Car Parking game/simulator
CERTIFICATE
This is to certify 1) Nahar Yukti Paresh
Place: CHANDWAD
Date: / /2023
Part A
Part B
This micro project contains the c program code to develop mini car parking
game/simulation .In Computer Graphics, we use graphic.h which provide direct
functions to draw different coordinate shapes (like circle, rectangle, etc).By using
these functions we can draw objects like car, hut, trees, etc. In this program we will
draw a road, parking area, etc.
Functions used in the Program
delay(n): This function is used for holding the program output for a small period of
time since processing is very fast so use it to see the result.
setcolor(n): A function from graphics.h header files which set the color of the pointer
(cursor). There are some predefined colors in computer graphics. Here n is color
number.
line(x1, y1, x2, y2): A function from graphics.h header file which draw a line with
(x1, y1) as first coordinate of line and (x2, y2) as second coordinate of the line.
circle(x, y, r): A function from graphics.h header files which draw a circle with center
(x, y) and radius r.
4.0 Action Plan-
#include<stdio.h>
#include<dos.h>
#include<graphics.h>
#include<conio.h>
void draw_car()
initgraph(&gd,&gm," ");
//Drawing Road
setcolor(RED);
circle(400,200,10);
line(400,200,400,170);
line(400,200,450,170);
setcolor(GREEN);
rectangle(480,360,590,430);
line(0,200,300,200);
line(0,300,300,300);
line(300,200,300,50);
line(300,300,300,450);
rectangle(300,50,650,46);
rectangle(300,450,650,456);
setcolor(YELLOW);
setfillstyle(SOLID_FILL,YELLOW);
rectangle(0,191,295,195);
floodfill(1,193,YELLOW);
rectangle(0,307,295,311);
floodfill(1,308,YELLOW);
line(0,305,295,305);
line(295,195,295,50);
line(295,305,295,450);
line(100,250,150,250);
line(200,250,250,250);
line(300,250,350,250);
setcolor(WHITE);
circle(x,y,5);
rectangle(x+5,y-15,x+20,y+15);
ellipse(x+13,y-21,0,360,10,5);
ellipse(x+13,y+21,0,360,9,5);
ellipse(x+80,y+12,0,360,8,4);
ellipse(x+80,y-12,0,360,8,4);
line(x+20,y-15,x+80,y-8);
line(x+20,y+15,x+80,y+8);
line(x+80,y-8,x+80,y+8);
setfillstyle(SOLID_FILL,RED);
floodfill(x+22,y+13,WHITE);
setfillstyle(SOLID_FILL,CYAN);
floodfill(x+7,y+13,WHITE);
setcolor(RED);
if(y<220)
lose_statement();
else if((x>350)&&(y<220))
lose_statement();
setcolor(GREEN);
if((x>480)&&(y>360))
win_state();
getch();
win_state()
setcolor(GREEN);
outtextxy(100,100,"Excellent work!!!!");
delay(150);
outtextxy(100,120,"Excellent work!!!!");
delay(150);
outtextxy(100,130,"Excellent work!!!!");
delay(1000);
outtextxy(100,150,"You Win!!!!");
delay(3000);
exit(0);
lose_statement()
outtextxy(100,100,"Wrong Way!!!!");
delay(1500);
outtextxy(100,130,"Game Over!!!!");
delay(2500);
exit(0);
void main()
int a,ch,input;
delay(500);
printf("\n\n\n\t\t************************************************");
printf("\n\t\t************************************************");
delay(2500);
clrscr();
clrscr();
delay(100);
Backspace to Exit");
delay(100);
delay(2500);
clrscr();
input=getch();
initgraph(&gd,&gm," ");
draw_car();
/*
72 up Arrow Key
8 Backspacce
*/
do
ch=getch();
switch(ch)
case 72 : y=y-30;
draw_car();
break;
case 80 : y=y+50;
draw_car();
break;
case 75 : x=x-50;
draw_car();
break;
case 77 : x=x+60;
draw_car();
break;
case 8 : exit(0);
break;
default :
}while(ch=8);
printf("\n\n\t\tGameover");
}
5.0 Actual Resources Used: