Предмет: Информатика, автор: karasikfh

ПОЖАЛУЙСТА СРОЧНО!!
ДАЮ 50 БАЛОВ
№2. Реалізувати програму у якій виконавець «Черепаха» малює літери вашого ім’я.
№3. Створити програму «Таблиця квадратів та коренів», у якій для введеного числа знаходять його квадрат і квадратний корінь. У результаті виводиться три числа.

Ответы

Автор ответа: ntrvoska
0

Відповідь:Завдання №2: Програма для малювання літер імені за допомогою черепахи

python

import turtle

# Функція для малювання літер імені

def draw_name():

   turtle.penup()

   turtle.goto(-100, 0)  # Початкова позначка для першої літери

   # Малюємо кожну літеру імені

   turtle.write('YourName', font=("Arial", 16, "normal"))

# Викликаємо функцію для малювання імені

draw_name()

# Затримка для того, щоб можна було переглянути результат

turtle.done()

Завдання №3: Програма для обчислення квадратів та квадратних коренів

python

Copy code

# Функція для обчислення квадрату та квадратного кореня

def square_and_sqrt(number):

   square = number ** 2

   square_root = number ** 0.5

   return square, square_root

# Зчитуємо введене число від користувача

user_number = float(input("Введіть число: "))

# Викликаємо функцію та виводимо результат

result_square, result_sqrt = square_and_sqrt(user_number)

print(f"Квадрат числа {user_number}: {result_square}")

print(f"Квадратний корінь з числа {user_number}: {result_sqrt}")

Ці програми використовують бібліотеку turtle для малювання та виводять результати введених чисел для обчислення їх квадратів та квадратних коренів. Якщо вам потрібен код для іншої мови програмування або уточнень, будь ласка, повідомте мене.

Пояснення:

Похожие вопросы
Предмет: Английский язык, автор: saddamn
помогите с заданием на картинке!!

текст по заданию:
Plants have been on the planet for billions of years, ang they lie just about everywhere. In this series, we look at plants that stand out from the rest.
Here I am, in the Indonesian rainforest. Walking through the jungle, I can see many plants and flowers, but none are as impressive as the one I'm looking for. It is quite simply the biggest flower in the world and it was discovered in 1818 by Dr Joseph Arnold and he named it after the explorer. Sir Thomas Stamford Raffles. The plants name is Rafflesi. Now, they are difficult to find and they only last for 2-3 days. I haven't seen one yet, but I know one is near. That's because Rafflesia has a very strong smell. It smells like rotting dead bodies. It smells awful to us, but insects just love it and are attracted to it from kilometres away... And there it is, in all its splendour.
I'm in California now, and I'm in a different kind of forest.
It's the Sequoia National Park and all these trees around me are giant Sequoias. These trees live for thousands of years and reach heights of more than 70 metres. There is one, however, that is the largest of them all. It's called General Sherman, after the famous American soldier and hero, and it is the largest tree in the world. Now, it's not the tallest tree in the world, but it is 84 metres tall and it has got a huge 11 metre-wide trunk. Scientists say the wood in General Sherman would weigh 2100 tonnes, making it the heaviest living thing on the planet. In 2006, a branch fell from the tree. Now, because of General Sherman's size, this was no ordinary branch. It was 2 metres wide and 30 metres long, bigger than most trees.
Scientists say it's natural for these trees to lose branches and the tree is in good health. So, even though it's about 2500 years old, it's still got a long life ahead.
Предмет: Биология, автор: m1treexxa
Предмет: Математика, автор: insarzumadildin84
Предмет: Математика, автор: Polinnaaaaaaa