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. 02
Semester: Fall 2015

CS602: Computer Graphics

 

Total Marks: 20

 

Due Date:9/12/2015

 

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 draw text, lines and polygons using different polygon filling algorithms 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 on screen with a line and a rectangle on screen as shown in following screenshot. We refer to the Rectangle as “Window” that is open.

 

Initially, you need to open Assigment2.dev project file in Dev-C++. After successful compilation and execution, you will see the output.

Your Task

Your task is to add new code that fill this rectangle with “Red color” in a way using “boundary fill algorithm” that it appears that first left side of window is closed and then the right side as shown in “Window.exe”. To show the window closing slowly, you need add the “delay” function. This simply requires only few lines of code to modify the x and y coordinates with reference to boundary. 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: 3712

.

+ 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

zarri  please upload ur folder in .zip format.site does not support the .rar format folder.thanks 

me id change krta hon but jb compile and run krta hon to koi change ni hota plzzzzzzzzz help me

Janab :) Ap carefully change krein ho jaye gi :) mein nay ki logo ko bana di assignments :) ho gae change email

please bro mujhy b kr do ... bc120200730

Carefully change krein :) every thing

agr karta hoon changing email id tu graphic k header pe error aa jata hai .. run honay se email id pe koi changing nahi ati

@all 

Email sharing is not allowed at the site..Next time be care.thanks 

    initgraph(&gd,&gm," ");
i get error at this line tell me plz what do i do?

bc130202065 mail me if any student is online

mere header file me kuch error hai ... kindly step by step koi guide kr de ... with any solution file..... time nahi bhai sahib

RSS

Latest Activity

Bilal joined +M.Tariq Malik's group
14 minutes ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* KIA NAMAZ MAIN KISI KO SALAM KRNY SY NAMAZ TOOT JATI HAI?...*
6 hours ago
zohaib iftikhar replied to zohaib iftikhar's discussion ...* NA SABOOT HAI NA DALEEL HAI...*
6 hours ago
zohaib iftikhar replied to zohaib iftikhar's discussion ...* KIA NAMAZ MAIN KISI KO SALAM KRNY SY NAMAZ TOOT JATI HAI?...*
6 hours ago
zohaib iftikhar liked zohaib iftikhar's discussion ...* KIA NAMAZ MAIN KISI KO SALAM KRNY SY NAMAZ TOOT JATI HAI?...*
6 hours ago
zohaib iftikhar posted discussions
6 hours ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* SUNO ...SUNO NA!...*
6 hours ago
Muhammad Bilal replied to zohaib iftikhar's discussion ...* NA SABOOT HAI NA DALEEL HAI...*
6 hours ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* NA SABOOT HAI NA DALEEL HAI...*
6 hours ago
Muhammad Bilal replied to Shanzay's discussion Sab Rasmii Rasmii Batain Hain...!!!
6 hours ago
Muhammad Bilal liked Shanzay's discussion Sab Rasmii Rasmii Batain Hain...!!!
6 hours ago
Muhammad Bilal replied to LILY's discussion HAPPY INDEPENDENCE DAY
6 hours ago
Muhammad Bilal liked LILY's discussion HAPPY INDEPENDENCE DAY
7 hours ago
Muhammad Bilal replied to Sofia_Khan's discussion Need Cs401 GDB SOLUTION
7 hours ago
Muhammad Bilal replied to zohaib iftikhar's discussion ...* APNY GHARON KO SUFAID MURAGH SY ZEENAT DOO...*
7 hours ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* APNY GHARON KO SUFAID MURAGH SY ZEENAT DOO...*
7 hours ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* APNY GHARON KO SUFAID MURAGH SY ZEENAT DOO...*
7 hours ago
Muhammad Bilal replied to zohaib iftikhar's discussion ...* SAMJHDAR AURAT...*
7 hours ago
Muhammad Bilal liked zohaib iftikhar's discussion ...* SAMJHDAR AURAT...*
7 hours ago
zohaib iftikhar replied to zohaib iftikhar's discussion ...* SAMJHDAR AURAT...*
7 hours ago

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

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

.