In this exercise we have to use the knowledge in computational language in python to write a code with circles and squares.
<h3>how to draw geometric figures in python?</h3>
<em>inputs = 100</em>
<em>radius</em>
<em> draw_circle(radius);</em>
<em> pendown()</em>
<em> begin_fill()</em>
<em> circle(radius)</em>
<em> end_fill()</em>
<em> penup()</em>
<em>left(90)</em>
<em>forward(radius*2)</em>
<em>right(90) </em>
<em>penup()</em>
<em>setposition(0,-200)</em>
<em>color("gray")</em>
<em>bottom_radius = int(input("What should the radius of the bottom circle be?: "))</em>
<em>draw_circle(bottom_radius)</em>
<em>draw_circle(bottom_radius)</em>
See more about python at brainly.com/question/18502436
Answer:
High learning
Explanation:
High Learning means that a product require significant customer education before customers understand how the product functions and that may make the product stay longer in the introduction stage whilst the customers are being familiarize with it. Examples are microwave ovens.
Answer:
Hi there Foodalexandre! The question is good to revise knowledge on the concepts of classes and inheritance. Please find the answer with explanation below.
Explanation:
We can use a number of different object-oriented programming languages to implement this solution in, such as Java, C++, Ruby, etc. I have chosen to use Python as the language to implement because of the ease with which it can be used. First, I have defined the Vehicle class based on the description from the question, where the constructor (the __init__ method) initializes the door count and the engine sound, and the original Move() method belonging to the Vehicle class is defined. Then I define the Car class which inherits from the Vehicle class making it inherit the Vehicle properties, and initialize the Car class to have door count of 4 and engine sound as 'rrrrrr'. Defining the Move() method again in the Car class overrides the one in the Vehicle class, and the RoadTrip() method is added to return the string as requested in the question.
class Vehicle(object):
def __init__(self, door_count, engine_sound):
door_count: door_count
engine_sound: engine_sound
def Move()
:
return ‘rrrrrr’
class Car(Vehicle):
def __init__(self, door_count, engine_sound):
super().__init__(4, ‘rrrrrr’)
def Move():
return ‘vrumm’
def RoadTrip()
:
return “Not a care in the world”
Answer:
<u>How to implement a stack in C using an array?</u>
A stack is a linear data structure that follows the Last in, First out principle (i.e. the last added elements are removed first).
This abstract data type can be implemented in C in multiple ways. One such way is by using an array.
Pro of using an array:
No extra memory required to store the pointers.
Con of using an array:
The size of the stack is pre-set so it cannot increase or decrease.
Answer:
The encoding algorithm looks for pairs of characters that appear in the string more than once and replaces each instance of that pair with a corresponding character that does not appear in the string. ... Byte pair encoding is an example of a lossy transformation because it discards some of the data in the original string.
Explanation:
hope it helps!!