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

В програме Python.Напишите пж задачу!Распишите пж! Потрібнообклеїти шпалерами стіну довжиною а м

і шириною b м. Скільки коштуватимутьшпалери, якщо ціна одного рулону k грн? Довжина рулону шпалер 10 м, ширина — 80см.
0 0
Перейти к ответам

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

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

Відповідь:

Пояснення:

import math

a = float(input('Довжина стіни '))

b = float(input('Ширина стіни '))

k = float(input('Ціна 1 рулону '))

s = a*b #площа стіни

sr = 8 #площа 1 рулону

if sr<s:

   price = math.ceil(s/sr)* k #ceil округлює рулони в більшу сторону

   print('Ціна шпалер',price, 'грн')

else:

   print('Ціна шпалер',k,'грн')

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

To calculate the cost of wallpapering a wall, we need to determine the number of rolls required and then multiply it by the price per roll. Let's break down the problem step by step:

Step 1: Calculate the area of the wall

To find the area of the wall, we multiply its length (a) by its width (b).

Area of the wall = a * b

Step 2: Calculate the area covered by one roll of wallpaper

The length of one roll of wallpaper is given as 10 meters, and the width is 80 centimeters. To calculate the area covered by one roll, we convert the width to meters and multiply it by the length.

Area covered by one roll = (10 meters) * (0.8 meters)

Step 3: Calculate the number of rolls required

To find the number of rolls required, we divide the area of the wall by the area covered by one roll.

Number of rolls required = (Area of the wall) / (Area covered by one roll)

Step 4: Calculate the cost of wallpapering

Finally, to calculate the cost of wallpapering, we multiply the number of rolls required by the price per roll.

Cost of wallpapering = (Number of rolls required) * (Price per roll)

Let's plug in the given values and calculate the cost of wallpapering the wall:

Given values: - Length of the wall (a) = a meters - Width of the wall (b) = b meters - Price per roll (k) = k gryvnas - Length of one roll of wallpaper = 10 meters - Width of one roll of wallpaper = 80 centimeters = 0.8 meters

Using the formulas above, we can calculate the cost of wallpapering the wall.

0 0

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

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

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

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