<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CS602 Assignment 1 Solution and Discussion]]></title><description><![CDATA[<p dir="auto">Re: <a href="/topic/36/assignment-no-01-semester-spring-2019-cs602-computer-graphics">Assignment No. 01 Semester: Spring 2019 CS602: Computer Graphics</a></p>
<pre><code>Assignment No. 01
</code></pre>
<p dir="auto">Semester: Spring 2020<br />
CS602: Computer Graphics<br />
Total Marks: 20</p>
<p dir="auto">Due Date: 1st  June 2020</p>
<p dir="auto">Objective<br />
The objective of this assignment is to;<br />
	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)<br />
	Learn to draw shapes and patterns by using graphics library functions.<br />
Instructions:<br />
You have to do the following steps first in order to perform the task.</p>
<ol>
<li>Install Dev-C++ from your LMS.</li>
<li>Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.<br />
Please read the following instructions carefully before submitting assignment:</li>
<li>You should consult the recommended books, PowerPoint slides , Handouts and video lectures to clarify your concepts.</li>
<li>You can take any help from your provided labs.</li>
<li>It should be clear that your assignment will not get any credit if:<br />
•	The assignment is submitted after due date.<br />
•	The assignment is copied from Internet or from any other student.<br />
•	The submitted assignment does not open or file is corrupt.<br />
Submission<br />
You are required to submit your solution through LMS in zip format containing following files.<br />
	Your Project in zipped form containing both .cpp and .exe file.</li>
</ol>
<p dir="auto">The word document (.doc/docx) or any other file format containing code will not be considered.<br />
If the code files are missing in zip folder, your assignment will be awarded as zero.<br />
Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).<br />
It is recommended to upload solution file at least two days before its closing date.</p>
<p dir="auto">For any query about the assignment, contact at <a href="mailto:cs602@vu.edu.pk" target="_blank" rel="noopener noreferrer nofollow ugc">cs602@vu.edu.pk</a><br />
TASK<br />
<img src="https://i.imgur.com/xEXGwbA.png" alt="aae17c72-2d87-4a88-952b-795056e8db87-image.png" class=" img-fluid img-markdown" />                                                                                                                                        Marks=20<br />
ABC is a well-known graphic designing industry famous for greeting card designs, logos and visiting card designs. The company needs your services to write a code for following design for its client:</p>
<p dir="auto">Write a code in C++ for generating the above design. Your actual Student-ID should be displayed at the top left corner of the screen.</p>
]]></description><link>https://community.secnto.com//topic/1850/cs602-assignment-1-solution-and-discussion</link><generator>RSS for Node</generator><lastBuildDate>Mon, 08 Jun 2026 23:51:53 GMT</lastBuildDate><atom:link href="https://community.secnto.com//topic/1850.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 05 Jun 2020 09:38:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CS602 Assignment 1 Solution and Discussion on Sat, 13 Jun 2020 15:34:18 GMT]]></title><description><![CDATA[<p dir="auto">Solution.cpp</p>
<pre><code>#include &lt;graphics.h&gt; 
  
// driver code 
int main() 
{ 
    // gm is Graphics mode which is a computer display 
    // mode that generates image using pixels. 
    // DETECT is a macro defined in "graphics.h" header file 
  int gd = DETECT, gm; 
  int left = 200, top = 20; 
  int right = 430, bottom = 460; 
    
 
    // initgraph initializes the graphics system 
    // by loading a graphics driver from disk 
  initgraph(&amp;gd, &amp;gm, ""); 
  setcolor(WHITE);
  settextstyle(DEFAULT_FONT, HORIZ_DIR, 2);
  outtextxy(10, 20, (char*)"BC123456789"); 
  
  setcolor(WHITE);
  setfillstyle(SOLID_FILL,WHITE);
  rectangle(left, top, right, bottom);
  bar(200,20,430,460);
  
  setcolor(LIGHTRED);
  setfillstyle(SOLID_FILL,LIGHTRED);
  circle(left+100,top+280,50);
  floodfill(left+100,top+280,LIGHTRED);
  
  
  setcolor(LIGHTGREEN);
  setfillstyle(SOLID_FILL,LIGHTGREEN);
  circle(left+160,top+340,30);
  floodfill(left+160,top+340,LIGHTGREEN);
     
  setcolor(LIGHTBLUE);
  line(left,top+280,right,bottom-20);
  setcolor(LIGHTGREEN);
  line(left,top+300,right,bottom);
  setcolor(LIGHTRED);
  line(left,top+320,right-30,bottom);
  
     
  getch(); 
  
    // closegraph function closes the graphics 
    // mode and deallocates all memory allocated 
    // by graphics system . 
  closegraph(); 
} 

</code></pre>
<p dir="auto"><a href="/assets/uploads/files/1591350001206-spring-2020_cs602_1_sol.zip">Download Complete Solution</a></p>
]]></description><link>https://community.secnto.com//post/5144</link><guid isPermaLink="true">https://community.secnto.com//post/5144</guid><dc:creator><![CDATA[Wajahat Ali]]></dc:creator><pubDate>Sat, 13 Jun 2020 15:34:18 GMT</pubDate></item></channel></rss>