Pet Goat on a Leash
(Problem 11.5 from the textbook.) Draw the resulting images using Processing and solve the problems.
Draw these two images in p5js:
My rectangular house is 30 feet by 40 feet.
(a) My goat Cassidy is outside on a 20-foot long leash that is connected to a corner of my house. What is the area of the region in which Cassidy can roam?
(b) If I lengthen Cassidy's leash to 50 feet, then what is the area of the region in which Cassidy can roam?
Draw these two images in p5js:
My rectangular house is 30 feet by 40 feet.
(a) My goat Cassidy is outside on a 20-foot long leash that is connected to a corner of my house. What is the area of the region in which Cassidy can roam?
(b) If I lengthen Cassidy's leash to 50 feet, then what is the area of the region in which Cassidy can roam?