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.vustudents.ning.com

 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 1 SPRING 2019 – DUE DATE 6 TO 12/5/2019

Solution Discuss

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

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

Views: 2747

Attachments:

Replies to This Discussion

plz help why is not run

Attachments:

u need screen shot then email

CS602-ASSIGNMENT-1-SOLUTION-SPRING-2019

Attachments:

Tariq Malik this solution is right ...

M.Tariq Malik what is difference between .dev and .cpp file. Tell me how to submit this assignment.

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <graphics.h>
#include <math.h>
int main()
{
int gd=DETECT, gm;
initgraph(&gd,&gm,(char*)" ");
setcolor(WHITE);

settextstyle(DEFAULT_FONT, HORIZ_DIR, 2);
outtextxy(10, 20, (char*)"BC123456789");

int x1=150;
int y1=100;
int x2=450;
int y2=500;

setcolor(YELLOW);
rectangle(x1,y1,x2,y2);

setfillstyle(SOLID_FILL,MAGENTA);
floodfill(151,101,YELLOW);

line(x1,y1+10,x2,y1+10);
line(x1,y1+20,x2,y1+20);

for (int p=130; p<=280; p=p+10, x2=x2-10)
{
line(x1,p,x2,p);

}

int g=460;
for (int r=160; r<=300; r=r+10, g=g-10)
{
int f=290;

line(r, f, r, g);
}

int k=140;
for(int j=440; j>=290; j=j-10, k=k+10)
{
int i= 310;
line(j,k,j,i);
}
for (int q=470; q>=320; q=q-10, x1=x1+10)
{
int x2=450;
line(x1,q,x2,q);
}

line(150,490,450,490);
line(150,480,450,480);

getch();
closegraph();

}

idea sol attached

Attachments:

Add  Graphics  in  your  dev c++.

Latest Activity

amina, Arsalan khan, Muhaamad Rizwan and 24 more joined Virtual University of Pakistan
10 minutes ago
Kinzar iman (ˈinəsənt) liked Miss. Churhail's profile
25 minutes ago
34 minutes ago
35 minutes ago
35 minutes ago
Kamal Qaisar posted discussions
59 minutes ago
Junaid [MAF] joined +M.Tariq Malik's group

ECO401 Economics

1 hour ago
Junaid [MAF] updated their profile
1 hour ago
1 hour ago
Blessings posted a status
"Tu jo hr roz nye hussn pe mr jata hai........................tu btaye ga mujhe ishq hai kya"
1 hour ago
1 hour ago
2 hours ago
2 hours ago
2 hours ago
2 hours ago
3 hours ago

1

2

3

4

5