Question: Use nested loops to create 7 concentric circles, each composed of 12 equally spaced small spheres of radius 0.2. The radius of the inner
Use nested loops to create 7 concentric circles, each composed of 12 equally spaced small spheres of radius 0.2. The radius of the inner circle of spheres should be 3. For each larger circle of spheres, increase the circle radius by 1. The outer loop should set the radius, and the inner loop should create the spheres. GlowScript 2.9 VPython dx = 2 y = -9 dy = 2 while y < 11: x = -9 while x < 11: rate (10) sphere(pos=vec(x,y,0), color-color.green) x = x + dx y = y + dy
Step by Step Solution
3.39 Rating (146 Votes )
There are 3 Steps involved in it
To create 7 concentric circles of small spheres as described using nested l... View full answer
Get step-by-step solutions from verified subject matter experts
