We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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


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

 


+ 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)


Views: 1407

Attachments:

Replies to This Discussion

ye code to 8 error dy rha ha dear

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)

yes error hay

assignment no 03.dev yeh file hi to open nhi ho rahi hai kiya karna parega?

cs602 solution

thanx God I have done

nai ho rah error a jata hai plz koi help kar deh
yeh line red show ho jati hai is mein error a jata hai is line par

circle(x+(200*cos(i)),y+(200*sin(i)),8);

help plz

please download thi file

Attachments:

RSS

Latest Activity

+++!!zυηι кнαη(αм ¢у¢σ) updated their profile
36 minutes ago
Profile Iconjiya chaudhry, Azeem, Falakshair and 11 more joined Virtual University of Pakistan
56 minutes ago
Mifa Fadel liked +M.Tariq Malik's discussion SOC101 Introduction to Sociology Assignment 01 Fall 2020 Solution / Discussion
4 hours ago
shifa arshad added a discussion to the group CS605 Software Engineering-II
7 hours ago
shifa arshad joined +M.Tariq Malik's group
7 hours ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
8 hours ago
shifa arshad replied to +M.Tariq Malik's discussion MGT502 Organizational Behavior GDB No 01 Fall 2020 Solution / Discussion in the group MGT502 Organizational Behavior
9 hours ago
shifa arshad joined +M.Tariq Malik's group
9 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
10 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
10 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
10 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
11 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
11 hours ago
Arooj Shahid liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
11 hours ago
Arooj Shahid liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
11 hours ago
Arooj Shahid liked Omar's discussion Dua
11 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
11 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
11 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
12 hours ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MGT201 Financial Management GDB No 01 Fall 2020 Solution / Discussion in the group MGT201 Financial Management
12 hours ago

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

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

.