We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Assignment No. 03
Semester: Fall 2015

CS602: Computer Graphics

 

Total Marks: 20

 

Due Date:27/01/2016

 

Instructions

Please read the following instructions carefully before submitting assignment:

Read and follow the instructions given in document inside the Help folder attached.

It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Solution is copied from any other source.

Objective

The objective of this assignment is to;

  • Learn and practice basic concepts of computer graphics using Dev-C++. (you can download Dev-C++ setup from LMS)
  • Learn to use transformations and use of graphics library functions.

Assignment

 

In this assignment, you are provided with a small startup code attached with this assignment in folder “Startup_Code”. Your job is to slightly modify this code as desired in this assignment.

First, you need to understand the working of the given code and execute it in Dev-C++. This program essentially draws some text in the middle of screen and a circle of small circles on screen as shown in following screenshot. We refer it as “Circles”.

 

Initially, you need to open Assigment3.dev project file in Dev-C++. After successful compilation and execution, you will see the output.(Ignore warning messages)

Your Task

Your task is to add new code that make these circle start rotating in a clock wise direction. Also add three new circles like this within this big circle so that next circle will move in anti-clockwise direction, again next in clock wise and the last in anti-clockwise as shown in “Rolling_Circles.exe”. While applying rotation keep in mind that homogeneous coordinates must be used in rotation .To show the circles movement you need to add the “delay” function. All this simply requires only few lines of code to modify. You shall add your code in the areas indicated with comments “add your code here”.

Screenshot of the desired  output:

 

 

 

Submission

You are required to submit your solution through LMS in zip format containing two files.

  • Your Project in zipped form containing both .dev and .cpp file.
  • An MS Word document containing screenshot of your program output/execution and your own Student-ID must be visible in the screenshot

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 1351

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

Copy Paste, change the values and you will come to a solution. 

plzz code share krain jis main rotation ka ho clockwise and anticlockwise plzzzzzzzzzzz help

Attachments:

thanx @sanwal

CS602_Assignment_03_Solution

Attachments:

is main cpp file nhn hay jahan code lehka hota hay

Remove Circles.cpp file from Circles.dev project and then add it again by selecting the file present in folder.

koi solution file e send kr do plz

Bro help me, mere pas window 10 hai ... file nahi chal rahi , samjh se bahir hai :/

is code main error arha hay

Code is here.

#include<stdio.h>
#include<graphics.h>
#include<conio.h>
#include<dos.h>
#include<stdlib.h>
#include<math.h>
main()
{
int gd=DETECT,gm,x=295,y=222,a,j,i;
initgraph(&gd,&gm," ");
setcolor(8);

outtextxy(x-82,y-10,"My Student id:??????????????");
for (i=1; i>0 ;i++)//change code here
{
delay(1);
setcolor(16);
circle(x+(200*cos(i)),y+(200*sin(i)),8);
setcolor(9);
circle(x+(200*cos(i+45)),y+(200*sin(i+45)),8);
//add your code here
setcolor(16);
circle(x+(165*sin(i)),y+(165*cos(i)),7);
setcolor(14);
circle(x+(165*sin(i+38)),y+(165*cos(i+38)),7);

setcolor(16);
circle(x+(128*cos(i)),y+(128*sin(i)),5);
setcolor(2);
circle(x+(128*cos(i+38)),y+(128*sin(i+38)),5);
setcolor(16);
circle(x+(98*sin(i)),y+(98*cos(i)),6);
setcolor(12);
circle(x+(98*sin(i+38)),y+(98*cos(i+38)),6);
}
getch();
return 0;
}

compile error araha hai koi perfect code de do

RSS

Latest Activity

彡JK彡 ❤️ replied to Asad's discussion انتظار
1 hour ago
afaq posted a discussion
5 hours ago
+ ! ! ! ! ! ! ! ! ! ! dReAm gIrL replied to Zain Kazimi's discussion Self Poetry Dedicated to Nasir Kazimi
6 hours ago
Zain Kazimi posted a discussion
6 hours ago
Azhar Sagar replied to Azhar Sagar's discussion use case diagrams of 4 projects
6 hours ago
+ ! ! ! ! ! ! ! ! STUDENTs +++ liked ♦_"Tooba"_♦'s discussion QUIZ NO 1
6 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU401 Contemporary Issues and Trends in Education
6 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
6 hours ago
+ M.Tariq Malik's 17 discussions were featured
6 hours ago
+ M.Tariq Malik added a discussion to the group EDU401 Contemporary Issues and Trends in Education
6 hours ago
+ M.Tariq Malik liked Zari's discussion cs502 important topics for mid
6 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU305 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU305 Classroom Management
6 hours ago

Today Top Members 

© 2019   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.