Docsity

DDA Line Algorithm Experiment: Mid-Point Circle Algorithm, Assignments of Database Management Systems (DBMS)

Toggle sidebar
bg1
Experiment: DDA LINE ALGORITHM
Student Name:๎˜›GANESH KUMAR๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜› UID:20BCA1534
Branch:๎˜›UIC-BCA๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜› Section/Group: BCA-3-/A
Semester:๎˜› 5th๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜› Date of Performance:31--Aug
Subject Name: Computer graphics๎˜›๎˜›Lab๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›๎˜›Subject Code: 20CAP-316
AIM: Draw Circle using Mid Point Algorithm:
A. Task to be done: Scan convert a circle with center (30,40) and radius 8 using mid-
point circle algorithm
Steps of Experiment:
Step1. Put x=0 ,y=r in equation 2
Were we have p=1-r
Step2.Repeat steps while x โ‰ค y
๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ Plot (x, y)
๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ If (p<0)
Then set p = p + 2x + 3
Else
๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ p = p + 2(x-y)+5
๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ y =y - 1 (end if)
๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ ๎˜’ x =x+1 (end loop)
Step3.END.
pf3
pf4

Partial preview of the text

Download DDA Line Algorithm Experiment: Mid-Point Circle Algorithm and more Assignments Database Management Systems (DBMS) in PDF only on Docsity!

Experiment: DDA LINE ALGORITHM

Student Name: GANESH KUMAR UID:20BCA Branch: UIC-BCA Section/Group: BCA-3-/A Semester: 5th Date of Performance:31--Aug Subject Name: Computer graphics Lab Subject Code: 20CAP- AIM: Draw Circle using Mid Point Algorithm:

A. Task to be done: Scan convert a circle with center (30,40) and radius 8 using mid-

point circle algorithm

Steps of Experiment:

Step1. Put x=0 ,y=r in equation 2 Were we have p=1-r Step2.Repeat steps while x โ‰ค y Plot (x, y) If (p<0) Then set p = p + 2x + 3 Else p = p + 2(x-y)+ y =y - 1 (end if) x =x+1 (end loop) Step3.END.

B.CODE IS HERE: