We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

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



+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 2692

.

+ 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)

Replies to This Discussion

okay i have done 

as code main error hi ha 

ye erroe fix krwa do

Attachments:

yara code me error he, please resolve it.

Hey bro , how we can write our Student ID ?? kindly guide me

please someone upload correct code? this code is giving error

Great work bro that code is working.....

kon sa code thk hy 

Faheem which code is working

Thanks A lot...

Code Is 100% working you just need to use your brain to remove errors from the posted code 

Guys here is the full and final code add linker to the compiler and enjoy your marks....

#include<graphics.h>
#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<math.h>
using namespace std;
int main()
{
int gd=DETECT,gm;
int i,j,k,t,q;
float x,y;
initgraph(&gd,&gm,NULL);
setcolor(2);
int left=0, right=INT_MAX, bottom=INT_MAX;
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(27);
}
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(8);
}
getch();
}

mujhay solution email kar do

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

RSS

Latest Activity

彡JK彡 ❤️ replied to Asad's discussion انتظار
1 hour ago
afaq posted a discussion
5 hours ago
+ ! ! ! ! ! ! ! ! ! ! dReAm gIrL replied to Zain Kazimi's discussion Self Poetry Dedicated to Nasir Kazimi
6 hours ago
Zain Kazimi posted a discussion
6 hours ago
Azhar Sagar replied to Azhar Sagar's discussion use case diagrams of 4 projects
6 hours ago
+ ! ! ! ! ! ! ! ! STUDENTs +++ liked ♦_"Tooba"_♦'s discussion QUIZ NO 1
6 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU401 Contemporary Issues and Trends in Education
6 hours ago
+ M.Tariq Malik liked + M.Tariq Malik's discussion EDU401 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material
6 hours ago
+ M.Tariq Malik's 17 discussions were featured
6 hours ago
+ M.Tariq Malik added a discussion to the group EDU401 Contemporary Issues and Trends in Education
6 hours ago
+ M.Tariq Malik liked Zari's discussion cs502 important topics for mid
6 hours ago
+ M.Tariq Malik replied to + M.Tariq Malik's discussion EDU305 Current Mid Term Papers Fall 2019 (14 to 26 December 2019) & All Solved Past Papers, Solved MCQs & Helping Material in the group EDU305 Classroom Management
6 hours ago

Today Top Members 

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

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

.