We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

Looking For Something at Site? Search Below

CS602 Computer Graphics: Assignment No. 04 Semester: Fall 2015 ^Solution + Discussion^

Assignment No. 04
Semester: Fall 2015

CS602: Computer Graphics

Instructions

Please read the following instructions carefully before submitting assignment:

Read and follow the instructions given in document inside the Help folder attached.

It should be clear that your assignment will not get any credit if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupt.
  • Solution is copied from any other source.

Objective

The objective of this assignment is to;

  • Learn and practice basic concepts of computer graphics using Dev-C++. (you can download Dev-C++ setup from LMS)
  • Learn animations and use of graphics library functions.

Assignment

 

In this assignment, you are not provided with any startup code.

You are just required to see the snapshot of desired output and write a program in Dev C++ that will produce desired output show below.

It will firstly show that sun is behind the mountains and then it rise as shown in desired output exe. Sun.exe

 

Submission

You are required to submit your solution through LMS in zip format containing two 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




+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 2769

Replies to This Discussion

Lets Start Discussion.
Share Your Ideas..

can anyone give idea of this assignment

Is there No One 

where is coding of the assignment?

plzz koi code share kr do

How Looks That

yra solution he share kar do plz

plz share some idea or solution.

#include<graphics.h>
#include<conio.h>
#include<stdio.h>
void main()
{
int gd=DETECT,gm;
int i,j,k,t,q;
float x,y;
initgraph(&gd,&gm,"c:\\tc\\bgi");
setcolor(2);
int left=0, int right=0, int right=INT_MAX, int bottom=INT_MAX;
&nbsp;setcolor(2);
&nbsp;i=0;
for(t=0;t<getmaxx();t+=120)
{
line(t,250,t+60,170);
line(t+60,170,t+120,250);
}
line(0,400,getmaxx(),350);
setfillstyle(11,CYAN);
floodfill(2,420,2);
setfillstyle(4,LIGHTGREEN);
floodfill(1,300,2);

i=0;
while(i!=150)
{

setcolor(BLACK);
setfillstyle(SOLID_FILL,BLACK);
fillellipse(k,j,30,30);
setfillstyle(SOLID_FILL,LIGHTRED);
fillellipse(170+i,235-i,30,30);
j=235-i;
k=170+i;
i++;
setcolor(2);
for(t=0;t<getmaxx();t+=120)
{
line(t,250,t+60,170);
line(t+60,170,t+120,250);
}
setfillstyle(1,GREEN);
floodfill(202,200,GREEN);
delay(25);
}

for(i=36;i<80;i++)
for(j=0;j<=360;j+=20)
{
x=319+i*cos(((float)j*3.14)/180);
y=86+i*sin(((float)j*3.14)/180);
putpixel(x,y,LIGHTRED);
delay(1);
}
getch();
}

Aslamo alkeum to all
dost ye start me error kiyo dy raha hy pranthsis ka

bhai please ya code k bare me guidline de den..error kun araha ha starting per void main k bad

RSS

Latest Activity

stylo posted a discussion
13 minutes ago
+M.Tariq Malik replied to shifa arshad's discussion MCM301 Assignment No 01 Fall 2020 Solution / Discussion Due Date: 04-dec-2020 in the group MCM301 Communication skills
30 minutes ago
Profile IconMuhammad Hamza, Touseeq Nasir, sajid and 8 more joined Virtual University of Pakistan
31 minutes ago
Rose replied to Rose's discussion CS608 Assignment No 01 Fall 2020 Solution & Discussion Due Date: 28-11-2020 in the group CS608 Software Verification and Validation
52 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH001 Elementary Mathematics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH001 Elementary Mathematics
55 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH302 Business Mathematics & Statistics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH302 Business Mathematics & Statistics
56 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion MTH302 Business Mathematics & Statistics Assignment 01 Fall 2020 Solution / Discussion Due Date: 03-12-2020 in the group MTH302 Business Mathematics & Statistics
57 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion SOC101 Introduction to Sociology Online Quiz No 01 Fall 2020 Solution / Discussion Last Date: 01-12-2020 in the group SOC101 Introduction to Sociology
59 minutes ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PAK301 Online Quiz No 01 Fall 2020 Solution / Discussion in the group PAK301 Pakistan Studies
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS403 Assignment 01 Fall 2020 Solution / Discussion in the group CS403 Database Management Systems
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion CS403 Assignment 01 Fall 2020 Solution / Discussion in the group CS403 Database Management Systems
1 hour ago
+M.Tariq Malik replied to +M.Tariq Malik's discussion PSY402 Experimental Psychology Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group PSY402 Experimental Psychology
1 hour ago

Today Top Members 

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.