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.