Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions exercicios/para-casa/ex27decisao.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
print('Venda de frutas')
pesoMo = float(input('Informe quantos quilos de morango:'))
pesoMa = float(input('Informe quantos quilos de maçã:'))
valorMo1 = 2.2 * pesoMo
valorMo2 = 2.5 * pesoMo
valorMa1 = 1.5 * pesoMa
valorMa2 = 1.8 * pesoMa
pesoT = pesoMo + pesoMa
valorT1 = valorMo1 + valorMa1
valorT2 = valorMo1 + valorMa2
valorT3 = valorMo2 + valorMa1
valorT4 = valorMo2 + valorMa2

if pesoMo <= 5.00 and pesoMa <= 5.00:
print("Valor total: ", valorT4)
elif pesoMo > 5.00 and pesoMa <= 5.00:
print("Valor total; ", valorT3)
elif pesoMo <= 5.00 and pesoMa > 5.00:
print("Valor total: ", valorT2)
elif pesoMo > 5.00 and pesoMa > 5.00:
print("Valor total: ", valorT1)

if pesoT > 8.00 or valorT1 > 25.00 or valorT2 > 25.00 or valorT3 > 25.00 or valorT4 > 25.00:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Aqui não está sendo contato o peso e o custo total das frutas combinadas.

valorT = valorT1, valorT2, valorT3, valorT4
print("Desconto! Novo valor total = R$ ", (0.9 * valorT))
10 changes: 10 additions & 0 deletions exercicios/para-sala/debug_Ige.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
print("Igea")

def calcula_media(nota1, nota2):
media = (nota1 + nota2)/2
return media

nota1 = 15
nota2 = 98

print(calcula_media(nota2=nota1, nota1=nota2))
11 changes: 11 additions & 0 deletions exercicios/para-sala/exemplo-math.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import math
print(math.log(10,2))

print(math.sin(10))

print(math.cos(20))

valorPi=math.pi
print(round(valorPi))
print(round(5.216312351, ndigits=3))