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

CG Microproject

Uploaded by

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

CG Microproject

Uploaded by

Dhruv Gandhi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
State Board of Technical Education SNJB SHRI H. H. J. B. POLYTECHNIC, CHANDWAD-423101 (Nasik) MICRO PROJECT Academic year: 2020-21 TITLE OF PROJECT DESIGN ROTATING FAN Program: Computer Technology Program code:CM Course: Computer Graphics Course-code: 22318 MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION Sr. Name of group Roll No Enrollment No Seat No No members Gandhi Dhruv 1 Jitendra Kumar 1900790153 2 Bhatiya vedant 1900790139 3 | Bedmutha Anurag 1900790141 4 Chordiya Sarthak 1900790145 Certificate This is to certify of Dhruv, Vedant, Anurag, Sarthak 3° Semester of Diploma in Computer Technology of Institute, SHHJB POLYTECHNIC, CHANDWAD (Code:0079) has completed the Micro Project satisfactorily in Subject: Computer Graphics(22318) for the academic year 2020- 2021 as prescribed in the curriculum Place: CHANDWAD Date? wo sninnnennne Subject Teacher Principal Head of the Department PART A-Plan Title of micro-project :- Design rotating fan SR_NO. CONTENT PAGE NO. 1 Part A 1.0 Brief Introduction 5 11 Aim of Micro Project 5 1.2 Action Plan 6 13 Resource Required 6 2 Part B 21 Brief Introduction 7 2.2 Aim of Micro Project a 2.3 Course Outcome Integrated 7 24 Actual Procedure Followed 8-9 25 Actual Resource Used 9 26 Outputs 70 27 Skill Developed ant Annexure ® Aim/Benefits of the Micro-Project :- To know basic concepts of computer graphics To know how to make program # Course Outcomes Addressed :- Learn to make a program in computer graphics + Proposed Methodology :- When the semester was started | came to know that we have to develop a micro — project of the subject Computer graphics and then we started searching for a topic. After some days | selected the topic Design rotating which is totally on the basis of computer graphics Then we started collecting data from reference books, some websites and notes. While collecting the data we understand about different concept of computer graphics . After that we combine all data preparing project using all material that we have collected. But there was difficulty while preparing project and with the help of our teacher D.B.Zambare sir it is solved. The project is successfully developed. And by this project | learned to how to develop a Program Annexure Action Plan Finalization of topic 1 2 Preparation of Abstract 3 Collection of data 4 Collection of data a Preparation of program 6 Preparation of program 7 Seminar / Presentation 8 Submission of Micro Project Annexure Resources Required Sr. | Name of Resource/Material Specification | Quantity | Remarks no. 1. | Computer system Dell 1 : 2. | Computer graphics Book 1 - PART B -Plan Title of micro-project :- Design rotating fan ® Rational :- Computer graphics is the branch of computer science that deals with generating images with the aid of computers. Today, computer graphics is a core technology in digital photography, film, video game cell phone and computer displays, and many specialized application We use graphics.h header file for graphics in C language. By using graphics we can. draw Lines, Circles, Rectangles(Geometrical figures) in the program. ¥ Aim/Benefits of the Micro-Project :- To know basic concepts of computer graphics To know how to make program ® Course Outcomes Addressed :- Learn to make a program in computer graphics # Actual methodology followed #include //for graphics #include —_//standard input/output #include _//string function #include //console input output #include //math calculation #define P13.14 //value constant pi=3.14 char speed|4]; //array declaration for speed int theta=0,change=1,temp=0,ch; 100; void main) { int gd=DETECT,gm; initgraph(&gd,&gmn,"c-\\te\\b strepy(speed,"on 1°); outtextxy(200,20,'Working Fan’); outtextxy(150,50,"Use number 0 1 2 3 to change fan speed’); outtextxy(475,375,'Fan Speed’); float x,y,r //path where ur BGI file is stored fan: do { cleardevice(); outtextxy(200,20,'Working Fan’ outtextxy(150,50,'Use number 0 1 23 to change fan speed’); outtextxy(475,375,"Fan Speed’); if(kbhit()) { ch=getch(); if(ch=='0') { rectangle(495,395,535,410); floodfil(515,405,15); temp=1; strepy(speed,"on 1°); change=1; } else if(ch: { strepy(speed,"on 2°); change=3; ) else if(ch { strepy(speed,"on 3°); change=18; } } outtextxy(500,400,speed); circle(320,240,(r/12)); circle(320,240,(/6)); circle(320,240,(1/4)); x=r*(cos((PI * theta)/180)); y=r'sin((PI * theta)/180); "line(320+(x/4),240+(y/4),320+(1.6*x),230+(1.64)); *drawr the line for fan*/ lime(320+(x/4),240+(y/4),320+(1.6*x),250+(1.6*y)); lime(320+(1.6*x),230+(1 .6*y),320+(1.6*x),250+(1.6"y)); x=r*cos((PI *(theta+120))/180); y-r'sin((PI *(theta+120))/180); line(320+(x/4),2404(y/4),320+(1.6*x),230+(1.6*y)); lime(320+(x/4),240+(y/4),320+(1.6*x),250+(1.6%y)); lime(320+(1.6*x),230+(1 .6*y),320+(1.6*x),250+(1.6"y)); x=r*cos(PI* (theta+240))/180); y-rsin((Pl * (thetat240))/180); lime(320+(x/4),240+(y/4),320+(1.6*x),230+(1.6*y)); line(320+(x/4),240+(y/4),320+(1.6*x),2504(1.6*y)); lime(320+(1.6*x),230+(1 .6*y),320+(1.6*x),250+(1.6"y)); if(temp!=1) delay(36/change); else { ch=getch(); if(ch: strepy(speed,"on 1°); temp=0; change=1; } else if(ch: { stropy(speed,"on 2°); temp=0; change=3; Annexure } else if(c { strepy(speed,'on 3°); temp=0; change=18; } else { strepy(speed,‘off"); temp=1; } } if(theta==360) theta=0; thetat+; } while(temp: 0); goto fan; } Output of program Cer ra Use number 0 1 2 3 to change fan speed Data Structures © Allabout Java * Java Data Types © Java Programming © Arey in Java © Vector in Java * Inheritance in Java © AWT and Applet in Java * Mathmetical functions * Interfaces in Java * swing + Game + Graphics * Multithreading C Language * Programming * Program Structure * Basic Introduction of C * Graphics in C Language C++ Programming © Programming in C++ * Introduction to C++ * Graphic Data Structures © Basics of Data Structures © Queue © Stack © Linked List © Sorting © Searching About Us

You might also like