The Joy of Programming
Repeat
There is no preview available for this lesson. Please join the course to access it. Click here to enroll.
Questions
Exercise 5.12
SA S Anushree
2 years ago
Post
Dismiss
Answer pls
Answer pls
Praveena Jude
2 years ago
Post
Dismiss
i tried this s1 = ellipse(w=250, h=150) shape = s1 | repeat(30*2, rotate(5) | scale(0.95)) show(shape)
i tried this s1 = ellipse(w=250, h=150) shape = s1 | repeat(30*2, rotate(5) | scale(0.95)) show(shape)
BS Bhagya S Nair
2 years ago
Post
Dismiss
how did you know about 30*2
how did you know about 30*2
BS Bhagya S Nair
2 years ago
Post
Dismiss
pls tell the reason
pls tell the reason
Gayathry
2 years ago
Post
Dismiss
i have trouble doing 5.9 can you pls explain
i have trouble doing 5.9 can you pls explain
SN Sreenand. N
2 years ago
Post
Dismiss
r1 = rectangle(w=25,h=25,x=135,y=0) r2 = r1 | repeat(20 , rotate (20)) show(r2) activity 5.9
r1 = rectangle(w=25,h=25,x=135,y=0) r2 = r1 | repeat(20 , rotate (20)) show(r2) activity 5.9
Venu GVGK
2 years ago
Post
Dismiss
for 5.12, tried this - e = ellipse()|repeat(72, rotate(5)|scale(0.945)). I get the relationship between repeat and rotate. Is the scale factor simply guess work?
for 5.12, tried this - e = ellipse()|repeat(72, rotate(5)|scale(0.945)). I get the relationship between repeat and rotate. Is the scale factor simply guess work?
Want to discuss?
Post it here, our mentors will help you out.
repeat
F Farhan
2 years ago
Post
Dismiss
In the repeat sectio Exercise 5.12 the magic ellipse , there you are given to us a figure . I am trying that figure to draw 1 or more than 1 hour. please help me to draw the figure. mycode is :- e = ellipse(w=300,h=200) | repeat(36*4, rotate(10) | scale(0.9)) show(e)
In the repeat sectio Exercise 5.12 the magic ellipse , there you are given to us a figure . I am trying that figure to draw 1 or more than 1 hour. please help me to draw the figure. mycode is :- e = ellipse(w=300,h=200) | repeat(36*4, rotate(10) | scale(0.9)) show(e)
SJ Steve Joseph Manoj
2 years ago
Post
Dismiss
Hi ,i tied this it is not the same but similar.Hope it helps. z= ellipse(h=150,w=250) s1 = z | repeat(33*2,scale(0.96)|rotate (5)) show (s1)
Hi ,i tied this it is not the same but similar.Hope it helps. z= ellipse(h=150,w=250) s1 = z | repeat(33*2,scale(0.96)|rotate (5)) show (s1)
AS Aneef S
2 years ago
Post
Dismiss
c = ellipse(w= 300, h=150) | repeat(36*2, scale(0.95) | rotate(3)) show(c)
c = ellipse(w= 300, h=150) | repeat(36*2, scale(0.95) | rotate(3)) show(c)
PR Pratheek Rao K B
2 years ago
Post
Dismiss
e = ellipse(w=250,h=150) shape = e | repeat(60, rotate(5) | scale(0.95)) show(shape)
e = ellipse(w=250,h=150) shape = e | repeat(60, rotate(5) | scale(0.95)) show(shape)
Nijin Muhammed
2 years ago
Post
Dismiss
show(ellipse(w=250, h=150) | repeat(60, rotate(5) | scale(0.95)))
show(ellipse(w=250, h=150) | repeat(60, rotate(5) | scale(0.95)))
TV thejus v
2 years ago
Post
Dismiss
guide how to do exercise 5.12
guide how to do exercise 5.12
JE Joswin Emmanuel
2 years ago
Post
Dismiss
try this one..... j_e=ellipse(0,0,275,175)|repeat(60,rotate(5)|scale(0.95)) show(j_e)
try this one..... j_e=ellipse(0,0,275,175)|repeat(60,rotate(5)|scale(0.95)) show(j_e)
KN Khadeeja Najeem
2 years ago
Post
Dismiss
i had trouble solving 5.10
i had trouble solving 5.10
A Ansif
2 years ago
Post
Dismiss
z1 = line(x=100,y=0)| repeat(30,rotate(10)) c1 = circle(r=25,x=0,y=0,fill="white",stroke="none") show(z1,c1)
z1 = line(x=100,y=0)| repeat(30,rotate(10)) c1 = circle(r=25,x=0,y=0,fill="white",stroke="none") show(z1,c1)
AB AKHIL B
2 years ago
Post
Dismiss
How to erase the lines in a semicircular shape in the exercise 5.11 ?
How to erase the lines in a semicircular shape in the exercise 5.11 ?
SA Shifali A
2 years ago
Post
Dismiss
How to code for exercise 5.11 .I tried bit couldn't solve.
How to code for exercise 5.11 .I tried bit couldn't solve.
AJ Abin Jacob
2 years ago
Post
Dismiss
5.11 Feel free to learn dont copy:) shape = line(x1=100, y1=0,x2=25,y2=0) | repeat(19, rotate(10)) show(shape)
5.11 Feel free to learn dont copy:) shape = line(x1=100, y1=0,x2=25,y2=0) | repeat(19, rotate(10)) show(shape)
Want to discuss?
Post it here, our mentors will help you out.