Assignment No. 01 Semester: Spring 2019 CS602: Computer Graphics
Assignment No. 01
Semester: Spring 2019
CS602: Computer Graphics
Total Marks: 20
The objective of this assignment is to;
♣ Learn and practice basic concepts of computer graphics like pixels, lines, text etc using Dev-C++. (You can download Dev-C++ setup from LMS)
♣ Learn to draw lines by using graphics library functions.
You have to do the following steps first in order to perform the task.
- Install Dev-C++ from your LMS.
- Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.
Please read the following instructions carefully before submitting assignment:
- You should consult the recommended books, PowerPoint slides, Handouts and video lectures to clarify your concepts.
- You can take any help from your provided labs.
- It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The assignment is copied from Internet or from any other student.
• The submitted assignment does not open or file is corrupt.
You are required to submit your solution through LMS in zip format containing following 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.
Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.
For any query about the assignment, contact at [email protected]
A graphic designing company ABC needs your services to write a code for a particular design consisting of lines only. The design will be used for greeting cards printing, mug art printing and t-shirts printing in future. Following design is selected for this purpose:
As you can see there is a rectangle in the centre of the screen. Inside the rectangle there are three horizontal lines above and below the rectangle at equal space.
Inside these three lined set there are two patterns. First pattern is the horizontal lines equidistance from each other followed by vertical lines. Second pattern is equidistance vertical lines followed by horizontal lines. The total number of lines in both patterns are equal.
(Hint: You can use loop for each pattern)
Now you have to write a code for generating the above design. Your actual Student-ID should be displayed at the top left corner of the screen.
SOLVED CS508 Quiz No. 1 Solution and Discussion
CS508 - Modern Programming Languages12
SOLVED CS432 Assignment 2 Solution and Discussion
CS432 - Network Modeling and Simulation8
SOLVED CS605 Assignment 2 Solution and Discussion
CS605 - Software EngineeringII8
SOLVED FRL101 Quiz 2 Solution and Discussion
SOLVED CS625 Assignment 2 Solution and Discussion
CS625 - Professional Practices4
SOLVED CS411 Assignment 2 Solution and Discussion
CS411 - Visual Programming4
SOLVED CS703 Assignment 2 Solution and Discussion
CS703 - Advanced Operating Systems4
SOLVED CS432 Assignment 1 Solution and Discussion
CS432 - Network Modeling and Simulation4
SOLVED MGT713 GDB 1 Solution and Discussion
MGT713 - Production / Operations Management3
SOLVED EDU508 Assignment 1 Solution and Discussion
EDU508 - Teaching of English Language3
SOLVED BNK611 Quiz 2 Solution and Discussion
BNK611 - Economic Ideology in Islam3
SOLVED ACC311 Quiz 2 Solution and Discussion
ACC311- Fundamentals of Auditing3
SOLVED MTH633 Assignment 1 Solution and Discussion
MTH633 - Group Theory3
SOLVED FIN725 GDB 1 Solution and Discussion
FIN725 - Credit & Risk Management3
SOLVED CS202 Assignment 2 Solution and Discussion
CS202 - Fundamentals of Front End Development3
SOLVED CS001 Assignment 2 Solution and Discussion
CS001- Computer Proficiency License3
SOLVED EDU304 Assignment 1 Solution and Discussion
EDU304 - Introduction to Guidance and Counseling3
SOLVED CS310 Assignment 2 Solution and Discussion
CS310 - Open Source Web Application Development (PHP, PERL, CGI, Mysql)3
SOLVED CS606 Assignment 1 Solution and Discussion
CS606 - Compiler Construction3
SOLVED CS314 Assignment 2 Solution and Discussion
CS314 - Introduction to Cellular Networks3