Skip to content

Conversation

@belisarenata
Copy link
Collaborator

No description provided.

litros_necessarios = (area_a_ser_pintada * FOLGA) / COBERTURA_POR_LITRO
latas_necessarias = math.ceil(litros_necessarios / CAPACIDADE_LATA)
galoes_necessarios = math.ceil(litros_necessarios / CAPACIDADE_GALAO)
latas_necessarias, galoes_necessarios
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indentação incorreta

@@ -0,0 +1,68 @@
16. Faça um programa para uma loja de tintas.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seu arquivo não está salvo com a extensão .py, então o git entende como se fosse um arquivo de texto comum. No próximo, salva como py que vai te ajudar e você pode rodar pra testar!

PRECO_LATA = 80.0

def calcular_compra_tinta(area_a_ser_pintada):
54 = area_a_ser_pintada / 3
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variaveis não podem ter nomes só com números

if calcular_compra_tinta(area_a_ser_pintada):
litros_necessarios = (area_a_ser_pintada * FOLGA) / COBERTURA_POR_LITRO
latas_necessarias = math.ceil(litros_necessarios / CAPACIDADE_LATA)
galoes_necessarios = math.ceil(litros_necessarios / CAPACIDADE_GALAO)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aqui você está calculando o número de galões sem descontar o que já foi contado nas latas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants