0% found this document useful (0 votes)
81 views

Computer Graphics Final Microproject

This document is a report on a micro-project to create a moving car system using C. It was completed by students Ritesh Patil, Tanmay Chandane, Shubham Balte, and Sumeet More under the guidance of Mrs. V.M. Bodhankar. The aim was to develop a C program using functions like line, circle, and delay to draw a moving car. The report outlines the rationale, aim, outcomes achieved, methodology, and resources used to complete the project.

Uploaded by

shubhambalte61
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
81 views

Computer Graphics Final Microproject

This document is a report on a micro-project to create a moving car system using C. It was completed by students Ritesh Patil, Tanmay Chandane, Shubham Balte, and Sumeet More under the guidance of Mrs. V.M. Bodhankar. The aim was to develop a C program using functions like line, circle, and delay to draw a moving car. The report outlines the rationale, aim, outcomes achieved, methodology, and resources used to complete the project.

Uploaded by

shubhambalte61
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

A

Micro project

On

“Moving Car System ”

Submitted By

Ritesh Patil (54)


Tanmay Chandane(46)
Shubham Balte (02)
Sumeet More(72)

Guided By
Mrs. V.M.Bodhankar

Diploma Course in Computer Technology (As

per directives of I Scheme, MSBTE)

Sinhgad Institutes

Sinhgad Technical Education Society’s

SOU.VENUTAI CHAVAN POLYTECHNIC


PUNE - 411041
ACADEMIC YEAR 2023-2024
Maharashtra State Board of Technical
Education

Certificate
This is to certify that Mr. Ritesh Patil with Roll No. 54 of Semester III of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic
(Code: 0040) has successfully completed the Micro-Project in Computer
Graphics Using C (22318) for the academic year 2022-2023 as prescribed in the
curriculum.

Program Code: CM Course Code: CM/3/I

Place: SVCP, Pune Enrolment No: 2200400436

Date: Exam Seat No:

Mrs.V.M.Bodhankar Mrs.A.V.Kurkute Mrs.M.S.Jadhav


Course Teacher Head of department Principal
Maharashtra State Board of Technical
Education

Certificate
This is to certify that Mr.Tanmay Chandane with Roll No. 46 of Semester III
of Diploma in Computer Technology of Institute Sou. Venutai Chavan
Polytechnic (Code: 0040) has successfully completed the Micro-Project in
Computer Graphics Using C (22318) for the academic year 2020-2021 as
prescribed in the curriculum.

Program Code: CM Course Code: CM/3/I


Place: SVCP, Pune Enrolment No: 2100400370

Date: Exam Seat No:

Mrs.V.M.Bodhankar Mrs.A.V.Kurkute Mrs.M.S.Jadhav


Course Teacher Head of department Principal
Maharashtra State Board of Technical
Education

Certificate
This is to certify that Mr. Shubham Balte with Roll No. 02 of Semester III of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic
(Code: 0040) has successfully completed the Micro-Project in Computer
Graphics Using C (22318) for the academic year 2020-2021 as prescribed in the
curriculum.

Program Code: CM Course Code: CM/3/I


Place: SVCP, Pune Enrolment No: 2200400272

Date: Exam Seat No:

Mrs.V.M.Bodhankar Mrs.A.V.Kurkute Mrs.M.S.Jadhav


Course Teacher Head of department Principal
Maharashtra State Board of Technical
Education

Certificate
This is to certify that Mr. Sumeet More with Roll No. 72 of Semester III of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic
(Code: 0040) has successfully completed the Micro-Project in Computer
Graphics Using C (22318) for the academic year 2020-2021 as prescribed in the
curriculum.

Program Code: CM Course Code: CM/3/I


Place: SVCP, Pune Enrolment No: 2200400358

Date: Exam Seat No:

Mrs.V.M.Bodhankar Mrs.A.V.Kurkute Mrs.M.S.Jadhav


Course Teacher Head of department Principal
INDEX

SR NO CONTENTS PAGE NO

1 Aim of the Micro-Project 1

2 Rationale 5

3 Course Outcomes Achieved 5

4 Literature Review 6

5 Actual Methodology Followed 8

6 Actual Resources Used 9

7 Skills Developed 16

8 Conclusion 16
Object Oriented Programming Using C++ - 22316 Supermarket Management System

Annexure - I

Micro-Project Proposal

1.0 Aim of the Micro-Project:


The aim of the Micro-project is to create Moving Car System using C.

2.0 Intended Course Outcomes:


A) Develop C program to solve problems using Procedure Oriented Approach.
B) Develop C program to implement inheritance.
C) Develop C program using condition statements.

3.0 Proposed methodology:


I. Study inheritance and its types.

II. Study billing system.


III. Design structure of systems.
IV. Implement program to create car moving system.
V. Prepare the final report.
4.0 Action Plan:
Sr. Details of Activity Planned Planned Name of responsible
No. Start Date Finish Date
Team members

Department of Computer Technology Academic Year 2023-24 1


Object Oriented Programming Using C++ - 22316 Supermarket management system

1 Identify the requirements of the Ritesh Patil and


18/09/2023 20/09/2023
project. Tanmay Chandane
2 Sumeet More
Design the structure of the project. 21/09/2023 23/09/2023 And
Shubham Balte
3 Develop a program using C++ Ritesh Patil
language. 23/09/2023 30/09/2023 and Sumeet
More
4 Debug code and eliminate errors Ritesh
occurred while compilation. Patil ,Tanmay
15/10/2023 15/10/2023
Chandane and
Sumeet More
5 Ritesh Patil Tanmay
Chandane and
Test the project. 16/10/2023 16/10/2023 Shubham Balte

6 Sumeet More and


Prepare the final report. 16/10/2023 16/10/2023
Shubham Balte

5.0 Resources Required:

S. No. Resources required Specifications

1 Computer system Intel(R) Pentium CPU, RAM 8GB

2 Operating System Windows 10, 64 Bit Operating System

3 Software’s TurboC++, Sublime text editor

6.0 Team members:

S. No. Roll. number Name of Student


1 54 Ritesh Patil

Department of Computer Technology Academic Year 2023-24 2


Object Oriented Programming Using C++ - 22316 Supermarket management system

2 46 Tanmay Chandane

3 02 Shubham Balte

4 72 Sumeet More

Annexure - II
Micro-Project Report

Department of Computer Technology Academic Year 2023-24 3


Object Oriented Programming Using C++ - 22316 Supermarket management system

1.0 Rationale:

In computer graphics, use graphics.h which provide direct functions to draw


different coordinate shapes (like circle, rectangle etc). By using these functions we
can draw different objects like car, hut, trees, etc. In this program, we will draw a
moving car using line and circles.
Functions used in 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 file 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 file which draw a circle with
center (x, y) and radius r.

2.0 Aim of the Micro-Project:


The aim of the Micro-project is to create Car Moving using C.

3.0 Course Outcomes Achieved:


a) Develop C program to solve problems using Turbo C
b) Develop C program no inheritance.

4.0 Literature Review:

Department of Computer Technology Academic Year 2023-24 4


Object Oriented Programming Using C++ - 22316 Supermarket management system

The programs demonstrate the use of the following functions, which are widely used
in C:

a) Inheritance and its type in C.


b) Decision making statements in C.

A]. Inheritance :

The aim of this article is to demonstrate a simple and easy technique of applying inheritance and
polymorphism in C. By creating a VTable (virtual Table) and providing proper access between
base and derived objects, we can achieve inheritance and polymorphism in C. The concept of
VTable can be implemented by maintaining a table of pointers to functions. For providing access
between base and derived objects, we have to maintain the references of derived object in the
base class and the reference of the base object in the derived class.

C). Decision making statements in C:


• There come situations in real life when we need to make some decisions and based
on these decisions, we decide what should we do next. Similar situations arise in
programming also where we need to make some decisions and based on these
decisions we will execute the next block of code. For example, in C if x occurs then
execute y else execute z. There can also be multiple conditions like in C if x occurs
then execute p, else if condition y occurs execute q, else execute r. This condition of C
else-if is one of the many ways of importing multiple conditions.

a) The ‘switch’ statement:


Use ‘switch’ statement which allows a value to change control of execution.
Syntax:
switch(expression)
{ case
1:
// Block of code to be executed if expression = 1
break; case
2:
// Block of code to be executed if expression = 2
break;
…. case
n:
// Block of code to be executed if expression = n

Department of Computer Technology Academic Year 2023-24 5


Object Oriented Programming Using C++ - 22316 Supermarket management system

break; default:
// Block of code to be executed if expression does not match any cases

b) The ‘if-else’ statement:


Use the ‘if-else’ statement to specify a block of code to be executed if the condition is
true and if not, the else block code will be executed.

Syntax:

if (condition)

// Block of code to executed if the condition is true

} else {

// Block of code to be executed if the condition is false

5.0 Actual Methodology Followed:


The aim of the Micro-project is to create Car Moving using C.
I) Study the various syntaxes of C language.
II) Study inheritance and its types.
III)Design structure of systems.
IV)Implement program to create Car Moving.
V)Prepare the final report.

6.0 Actual Resources Used:


S. No. Resources required Specifications

Department of Computer Technology Academic Year 2023-24 6


Object Oriented Programming Using C++ - 22316 Supermarket management system

1 Computer system Intel(R) Pentium CPU, RAM 8 GB

2 Operating System Windows 10, 64 Bit Operating System

3 Software’s TurboC++, Sublime text editor

7.0 Inheritance

User Class
USER_ID
USER_NAME

TRAIN CLASS STATION CLASS


TRAIN_ID STATION_ID
TRAIN_NAME STATION_NAME

Department of Computer Technology Academic Year 2023-24 7


Object Oriented Programming Using C++ - 22316 Supermarket management system

CUSTOMER CLASS
CUSTOMER_ID
CUSTOMER_NAME

8.0 Source code of program:


#include <graphics.h>
#include <stdio.h>

// Function to draw moving car

void draw_moving_car(void) {

int i, j = 0, gd = DETECT, gm;

// Passed three arguments to initgraph

// function to initialize graphics mode

initgraph(&gd, &gm, "");

Department of Computer Technology Academic Year 2023-24 8


Object Oriented Programming Using C++ - 22316 Supermarket management system

for (i = 0; i <= 420; i = i + 10) {

// Set color of car as red

setcolor(RED);

// These lines for bonnet and

// body of car

line(0 + i, 300, 210 + i, 300);

line(50 + i, 300, 75 + i, 270);

line(75 + i, 270, 150 + i, 270);

line(150 + i, 270, 165 + i, 300);

line(0 + i, 300, 0 + i, 330);

line(210 + i, 300, 210 + i, 330);

// For left wheel of car

circle(65 + i, 330, 15);

circle(65 + i, 330, 2);

// For right wheel of car

Department of Computer Technology Academic Year 2023-24 9


Object Oriented Programming Using C++ - 22316 Supermarket management system

circle(145 + i, 330, 15);

circle(145 + i, 330, 2);

// Line left of left wheel

line(0 + i, 330, 50 + i, 330);

// Line middle of both wheel

line(80 + i, 330, 130 + i, 330);

// Line right of right wheel

line(210 + i, 330, 160 + i, 330);

delay(100);

// To erase previous drawn car

// use cleardevice() function

cleardevice();

Department of Computer Technology Academic Year 2023-24 10


Object Oriented Programming Using C++ - 22316 Supermarket management system

getch();

closegraph();
}

// Driver code

int main()
{

draw_moving_car();

return 0;
}

8.0 Output:

Department of Computer Technology Academic Year 2023-24 11


Object Oriented Programming Using C++ - 22316 Supermarket management system

9.0 Skills Developed:


During the course of this micro-project, we learned to create Car Moving by using C,

a) We learnt various new syntaxes of C language and syntaxes of inheritance.


b) We also learned scope resolution operator.
c) We also learnt classes and objects in C.

12.0 Conclusion:
We learn to design Car Moving using C, also we understood basic fundamentals of
systems in of Car Moving as well as managing
it.

Department of Computer Technology Academic Year 2023-24 12

You might also like