import turtle
tina = turtle.Turtle()
screen = turtle.Screen()
screen.bgcolor("white")
tina.shape("turtle")
tina.pencolor("blue")
SCALE=20
def concentric_loop(n):
for size in range (1,n):
tina.penup()
tina.goto(0,-SCALE*size)
tina.pendown()
tina.circle(SCALE*size)
tina.hideturtle()
screen.exitonclick()
#input n
#output concentric circle at 0,0
def concentric_recursive(n):
tina.penup()
tina.goto(0,-SCALE*n)
tina.pendown()
tina.circle(SCALE*n)
if(n > 0):
concentric_recursive(n-1)
else:
tina.hideturtle()
screen.exitonclick()
concentric_recursive(5)
Dle Edit Search View Encoding Language Settings Tools Macro Run Plugins Window 1 isport turtle 3 ...
#include <iostream> #include <iomanip> #include <vector> using namespace std; Part 1. [30 points] In this part, your program loads a vending machine serving cold drinks. You start with many foods, some are drinks. Your code loads a vending machine from foods, or, it uses water as a default drink. Create class Drink, make an array of drinks, load it and display it. Part 1 steps: [5 points] Create a class called Drink that contains information about a single drink. Provide...
You need not run Python programs on a computer in solving the following problems. Place your answers into separate "text" files using the names indicated on each problem. Please create your text files using the same text editor that you use for your .py files. Answer submitted in another file format such as .doc, .pages, .rtf, or.pdf will lose least one point per problem! [1] 3 points Use file math.txt What is the precise output from the following code? bar...