Spring 2023 - CS602 - 1
Spring 2023 - CS602 - 1
01 Total Marks: 20
Semester: Spring 2023
Due Date: 23nd May 2023
CS602: Computer Graphics
Objective
The objective of this assignment is to;
Learn and practice basic concepts of computer graphics like pixels,
lines, circles and rectangles, texts etc using Dev-C++. (You can
download Dev-C++ setup from LMS)
Learn to draw shapes and patterns by using graphics library functions.
Instructions:
You have to do the following steps first in order to perform the task.
1. Install Dev-C++ from your LMS.
2. 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:
1. You should consult the recommended books, PowerPoint slides ,
Handouts and video lectures to clarify your concepts.
2. You can take any help from your provided labs.
3. 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.
Submission
You are required to submit your solution through LMS in zip format containing
following files.
Your Project in zipped form containing both .cpp and .exe file.
The word document (.doc/docx) or any other file format containing code
will not be considered.
If the code files are missing in zip folder, your assignment will be awarded
as zero.
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.
Suppose you are working on a project where you need to draw an ellipse of a given center point
(xc,yc), major axis length (a), and minor axis length (b) using the Midpoint Ellipse Drawing
Algorithm in C++. Write a program to implement the algorithm and display the resulting ellipse.
Then fill the Ellipse with any color and design using the graphics libraries.
Note: You should display your student ID before displaying the Ellipse.