Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lais #36

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Lais #36

wants to merge 4 commits into from

Conversation

belisarenata
Copy link
Collaborator

No description provided.

print("latas de tinta")
else:
print("Você irá precisar de ")
print(round(quantidade+0.5))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Adorei a forma como tu contornou o uso de math.ceil! Arrasou na lógica!

area_total_m2, cobertura_tinta, volume_lata, volume_galao = {}, 6.0, 18.0, 3.6
area_total_m2 = float(input("Informe a área que será pintada em m2: "))
print(int(calculo_quantidade(area_total_m2,cobertura_tinta,volume_lata)))
ainda_faltou_cobrir = area_total_m2%108
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Não é errado usar 108, mas imagine em você mesma daqui dois meses olhando esse código. O que significa 108?

Choose a reason for hiding this comment

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

profa vou te falar que nao precisa de dois meses nao, hoje eu já to com dificuldade de lembrar do raciocínio. mas vou retomar rs mto obrigada pelo Feedback <3

ainda_faltou_cobrir = area_total_m2%108
print(ainda_faltou_cobrir)
print( "metros quadrados") #ver concat para tentar deixar tudo na mesma linha
print(round(calculo_quantidade(ainda_faltou_cobrir,cobertura_tinta, volume_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.

Debochou usando funções! Arassou!
Só faltou arredondar o número de galões pra cima pra não correr o risco de faltar tinta.

Choose a reason for hiding this comment

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

ah mto obrigada!!! legal! vou trabalhar no do arredondamento! :)

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