CS602| Computer Graphics Assignment No.1 Solution Spring 2019

Assignment No. 01 | Semester: Spring 2019 | CS602: Computer Graphics

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 .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.

TASK                                                                                                                                       Marks=20

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 printinCS602 Assignment No1g 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.

Download All files:

Read it carefully:

Add graphics in Dev

Graphics library:

Graphics library

Project File:

Project File Download

Final Out Put:

If any query then comment….

This site is under working. if you have any idea then tell us on our official mail : [email protected]

 

 

Leave a Reply

Close Menu