-
Notifications
You must be signed in to change notification settings - Fork 40
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
base: main
Are you sure you want to change the base?
Lais #36
Conversation
"exercício_16_versao_final"
print("latas de tinta") | ||
else: | ||
print("Você irá precisar de ") | ||
print(round(quantidade+0.5)) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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! :)
No description provided.