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


+ Link For Assignments, GDBs & Online Quizzes Solution


+ 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. 04
SEMESTER Spring2013
CS602- Computer Graphics


Total Marks: 20


Due Date: 25/06/2013


Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied (from other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.


Uploading instructions

Your Submission must include:


  1. Dev cpp project file with .dev extension.
  2. Code file with .cpp extension.


The objective of this assignment is


  • To make you understand the concept and application of flat filling algorithm for polygon filling.
  • To give you practical exercise of an application.


Important Requirements and Instructions:

  1. You are not allowed to copy it from internet. In that case no marks shall be awarded.
  2. Same assignment of two or more students shall be considered cheating case and they will get straight zero marks.
  3. Assignment last date is June 25 2013.Any lame excuses will not be accepted. 
  4. We will not accept assignment through email in any case. Be careful.




For any query about the assignment, contact at cs602@vu.edu.pk







Question 1:                                                                                                                 //20marks


Write a program in C/C++ to draw the triangle on the screen by three lines and fill them using “Flat fill algorithm”. See the “Assignment4Demo.mp4” along with the assignment file. You have to show the triangles on the basis of the following coordinate values:


Starting output at console:


Enter :

 1      for    >>>> Ay=75,By=110,Cy=170

 2      for    >>>> Ay=100,By=150,Cy=250

 3      for    >>>> Ay=150,By=250,Cy=350


Note:   You are required to fulfill all the requirements given in the demo file “Assignment4Demo.mp4”. Also note the changing color scheme of triangles at each step.



Note: Your explanation must justify enough for given marks for each part.

Lectures Covered: This assignment covers Lecture # 19-25


Your assignment must be uploaded/submitted at or before 25/06/2013.                         


+ 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: 2641


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


Replies to This Discussion

akhtr bhai khch sm j nhe aa rha kya mtlb code chnge kree han plzz guide kr do 

Allah ka naam le k sis jtna bhe aat code bhj do zero marks se to bhtr ha k khch mil jain marks aagae Allah maalik 

aoa, nechy code file hy isko edit krlen aur header (graphic lib already add hogi ap k pas last assignment mein edit kr len warna)


plz nawaz bro .cpp file send kr do plz plz plz plz plz

here is .cpp file


than x alot arzu

same code hua to mare jaein ge is liye keh rha tha change kerne ka mean ID and variables names etc

yar sirf .ccp wali file he upload kerni hain ya koi or b?

Asma gi aap ka project download kr lein aur upload kr dein


Rubab gi download kr lein


Thanks Nawaz ho gai submit :-)

Ek cheez hai last assignment is assignment se milti julti thi. I think next assignment bhi isi ka updated version ho ga. Is liye marks milein ya na milein is aasginment idea lazi le lijye ga ta k next me koi problem na face krni pre.

Thanks to all.


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

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