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

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

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

# CS 602 Computer Graphics Assignment No.2 last date Jun 10, 2015

Dear Students,

Assignment No. 02 has been uploaded and last date for assignment submission is Wednesday, June 10, 2015. Submit your assignment with in due date, no assignment would be accepted through e-mail.

Good Luck!

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

Views: 2441

.

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

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

Attachments:

### Replies to This Discussion

Assignment

This assignment is based your Assignment No.1. Please see the given startup code for this assignment (in attached folder StartupCode) which is same as solution of Assignment No.1. Open Assigment2.dev project file in Dev-C++ and after successful compilation and execution, you will see the output. You can see the code in order to understand how coordinates of the Ball are modified to introduce back and forth motion effect along horzintal axis.

After understanding it’s working, you need to further modify the code as desired in this assignment.

Your task is to slightly modify this code just by improving motion effect of the Ball as shown in the executables “Desired_Output.exe”. You can see, Ball is not restricted to horizontal motion only, rather its moving in the rectangular rigion and get reflected with the same angle as inccident angle after colliding with the walls. Each time you execute the program, Ball get started from a randomnly selected position near the top line of rectangle.

Hint: To get ball reflected with the same angle as inccident angle, you can to add/subtract 3 from both x and y coordinates of the ball depending upon its motion direction.

koi to share kro

there is no solution right uptil now

upr se....ajj last date he,,.......

int gd=DETECT,gm,col=0;
initgraph(&gd,&gm,"../bgi");
START:
int get = 0;col=40;
while(!kbhit())
{

circle(col,210,20);
delay(5);
if(col <600 && get == 0) col++;
else{ get=1; col--; }
cleardevice();
if(col==40) goto START;
}

plz koi bataa saktaa hain yeh error kesay khatum ho ga?

mera b yhi error a raha hy

app dodno directly wo file open karo jo sir n startup code folder m assignment no 2 k name sy send ki hy .........us file ko dev c m open karo or pir run and comopile karo..

Hummm very simple assignment

ye error aa raha ha is ka kia krun ??? web sy search ki but solve ni hoa... help me frnds

to compile and run the startup code,

install 4.9.9.2 version

## Latest Activity

Maria posted a status
"Assalam o Alaikum! me New here and BSCS Student or AP logo ka Study Program kia?"
10 minutes ago
21 minutes ago
+ Faisal + joined +M.Tariq Malik's group

### CS202 Fundamentals of Front End Development

21 minutes ago
Maham Raza. replied to Maham Raza.'s discussion Zindagi..
24 minutes ago
Alisha Noor replied to Maham Raza.'s discussion Zindagi..
26 minutes ago
Nouman Butt replied to Nouman Butt's discussion My Birthday
40 minutes ago
Nouman Butt replied to Nouman Butt's discussion My Birthday
41 minutes ago
49 minutes ago
+++ Haniya+++ liked Mani Siddiqui BS VIII's discussion سمجھ نہیں آتی
1 hour ago
+++ Haniya+++ replied to Nouman Butt's discussion My Birthday
1 hour ago
+M.Tariq Malik added a discussion to the group CS001 Computer Proficiency

### CS001 Assignment No 01 Spring 2020 Solution & Discussion

1 hour ago
Aisha RD joined +M.Tariq Malik's group

1 hour ago

1

2