Вопрос задан 16.06.2023 в 12:57. Предмет Информатика. Спрашивает Кашина Анастасия.

ПОМОГИТЕ ПЛИС С ИНФОРМАТИКОЙ! 1) Створіть програму, яка порахує відстань,яку Ви проїдете за даним

часом і швидкістю руху.· Ввести час та швидкість· Здійснити обрахунки· Вивести на екран2) Створити програму, яка визначить Ваші кишеньковівитрати за поточний місяць (мобільний рахунок, інтернет, канцелярія, особистівитрати – на Ваш вибір можете додати більше позицій) (дійсне число)· Ввести Ваш дохід за місяць· Ввести Ваші витрати за місяць· Порахувати загальну суму кишенькових витрат і визначити різницю між доходами і витратами.· Визначити скільки Ви зможете заощадити за 1 рік , 5 років і 10 років.Умова 1. Якщо різниця між доходами і витратами менше за 1 000 грн - умова вірнаУмова 2. Якщо за 1 рік Ви зможете заощадити більше або рівно 5000 грн - умова вірнапомогите пожалуйста с этим программированием, я не знаю что и как делать, помогите плис <3
0 0
Перейти к ответам

Ответы на вопрос

Внимание! Ответы на вопросы дают живые люди. Они могут содержать ошибочную информацию, заблуждения, а также ответы могут быть сгенерированы нейросетями. Будьте внимательны. Если вы уверены, что ответ неверный, нажмите кнопку "Пожаловаться" под ответом.
Отвечает Нужненко Макар.

Ответ:

ответы на фото

Объяснение:

..........






0 0
Отвечает нейросеть ChatGpt. Будьте внимательны, ответы нейросети могут содержать ошибочные или выдуманные данные.

Program to Calculate Distance Traveled

Here's a program in Python that calculates the distance traveled based on the given time and speed:

```python # Input time and speed time = float(input("Enter the time (in hours): ")) speed = float(input("Enter the speed (in km/h): "))

# Calculate distance distance = time * speed

# Output the result print("The distance traveled is", distance, "kilometers.") ```

This program prompts the user to enter the time (in hours) and speed (in km/h), calculates the distance by multiplying the time and speed, and then displays the result on the screen.

Program to Calculate Pocket Expenses

Here's a program in Python that calculates your pocket expenses for the current month:

```python # Input income and expenses income = float(input("Enter your monthly income: ")) expenses = float(input("Enter your monthly expenses: "))

# Calculate pocket expenses pocket_expenses = income - expenses

# Output the result print("Your pocket expenses for the month are", pocket_expenses, "UAH.")

# Calculate savings for 1 year, 5 years, and 10 years savings_1_year = pocket_expenses * 12 savings_5_years = pocket_expenses * 12 * 5 savings_10_years = pocket_expenses * 12 * 10

# Output the savings print("You can save", savings_1_year, "UAH in 1 year.") print("You can save", savings_5_years, "UAH in 5 years.") print("You can save", savings_10_years, "UAH in 10 years.")

# Check conditions if pocket_expenses < 1000: print("Condition 1 is met: The difference between income and expenses is less than 1000 UAH.") if savings_1_year >= 5000: print("Condition 2 is met: You can save 5000 UAH or more in 1 year.") ```

This program prompts the user to enter their monthly income and expenses, calculates the pocket expenses by subtracting expenses from income, and then displays the result on the screen. It also calculates the savings for 1 year, 5 years, and 10 years based on the pocket expenses. Finally, it checks two conditions: if the difference between income and expenses is less than 1000 UAH and if the savings for 1 year are 5000 UAH or more.

Please note that the programs provided are in Python. If you are using a different programming language, the syntax may vary slightly.

0 0

Похожие вопросы

Топ вопросов за вчера в категории Информатика

Последние заданные вопросы в категории Информатика

Задать вопрос