Use nested loops to create 7 concentric circles, each composed of 12 equally spaced small spheres...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
To create 7 concentric circles of small spheres as described using nested l... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
How does a database management system (DBMS) contribute to the effectiveness of information systems?
-
Hailstone sequence (due 28 feb 2015) take any natural number n. if n is even, divide it by 2 to get n // 2. if n is odd, multiply by 3 and add 1 to obtain 3 * n + 1. repeat the process indefinitely....
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
8. Describe each of the following types of isomerism (i) geometrical isomerism (2 marks) (ii) solavate isomerism (2 marks) (iii) coordination isomerism (2 amrks)
-
A steel rod is bent to form a mounting bracket. For each of the mounting brackets and loading shown, determine the reactions at A and B.
-
explain the concept of upstream activities related to Oil and Gas Accounting taking into account relevant laws in Ghana. b. differentiate between a proved property and an unproved property
-
For each of the following situations, calculate the \(t\)-statistic \((t)\) : a. \(\mathrm{X}^{-}=11.00 ; \mu=5 ; s \mathrm{X}^{-}=3.00\) b. \(X^{-}=26.00 ; \mu=31 ; s X^{-}=2.00\) c. \(X^{-}=19.60 ;...
-
The adjusted seasonal indexes presented in Table P-19 reflect the changing volume of business of the Mt. Spokane Resort Hotel, which caters to family tourists in the summer and skiing enthusiasts...
-
3. If the input is a sorted array with n elements in ascending order, what is the big O notation of Merge Sort? Why? (20 points) MERGE-SORT(A. p.r) 1 if p
-
The owner has decided to transfer a large shelving unit he owns privately to the business to be used as display shelving in the shop. The asset is to be transferred on the 30 June 2022 at its current...
-
The negative publicity associated with financial scandals worldwide has seriously eroded public confidence, trust in the auditing profession and damaged the reputation of the profession (Fadzly &...
-
What is management audit?
-
What is periodical audit? What are the advantages and disadvantages of periodical audit? Distinguish between continuous audit and periodical audit.
-
(a) Distinguish between internal audit and statutory audit. (b) Can the statutory auditor rely upon the internal audit in carrying out his function as a statutory auditor?
-
Explain the following statement (a) Vouching is the essence of auditing. (b) In vouching payments, the auditor does not merely seek proof that money has been paid away.
-
What precautions are to be taken in the application of internal check system?
-
Explain database system 3 tier architecture with clear diagram in detail.
-
Refer to the Conservation Ecology (Dec. 2003) study of the causes of forest fragmentation, presented in Exercise 2.166 (p. 97). Recall that the researchers used advanced high-resolution satellite...
-
Over a full course of treatment, two different tumors are to receive the same absorbed dose of therapeutic radiation. The smaller of the tumors (mass = 0.12 kg) absorbs a total of 1.7 J of energy....
-
A man stands at the midpoint between two speakers that are broadcasting an amplified static hiss uniformly in all directions. The speakers are 30.0 m apart and the total power of the sound coming...
-
Two strings have different lengths and linear densities, as the drawing shows. They are joined together and stretched so that the tension in each string is 190.0 N. The free ends of the joined string...
-
A container of an organic liquid a $25^{\circ} \mathrm{C}$ has a mass of $1100 \mathrm{~kg}$ and a volume of $0.94 \mathrm{~m}^{3}$. Find the liquid's weight, its density, and its specific gravity.
-
What is the pressure one mile $(1.6 \mathrm{~km})$ beneath the ocean's surface?
-
A vertical, cylindrical tank with a diameter of $10 \mathrm{~m}$ and a depth of $4 \mathrm{~m}$ is filled to the top with water at $25^{\circ} \mathrm{C}$. If the water is heated to $60^{\circ}...
Study smarter with the SolutionInn App