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

Work Home Done S2 #34

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
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
1 change: 1 addition & 0 deletions exercicios/DoneInrRoom-Bodecam/Bodecam.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print ("Hi Bodecam")
12 changes: 12 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/exercice.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
numero1 = 10
print (numero1)

numero2 = 20
print (numero2)

print (numero1 + numero2)

numero1 = numero1 + numero2
print (numero1)

print (numero1 + numero2)
10 changes: 10 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/expensive.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
numero1 = 17
numero2 = 3

print (numero1/numero2)

piso_quociente = numero1//numero2
print (piso_quociente)

restante = numero1%numero2
print (restante)
15 changes: 15 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/funcoes-nota.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Vamos pensar num exemplo.
# Imagine que você é um professor e deve calcular a média das notas dos alunos em três provas.
# Para facilitar, você qyer escrever um código que calcule as notas para você
# Vamos criar uma função para isso e nós só precisamos chamar essa função com as notas dos alunos!

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

nota1 = 15
nota2 = float (input ())
nota3 = float (input ())

media = calcula_media (nota1, nota2, nota3)
print (media)
10 changes: 10 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/funcoes-nota2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
def calcula_media(nota1, nota2, nota3):
media = (nota1*peso1 + nota2*peso2 + nota3*peso3)/(peso1+peso2+peso3)
return

nota1 = 15
nota2 = 98
nota3 = 19
peso,1 peso2, peso3 = float (input("peso1: ")), float (input("peso2: ")), float (input("peso3: "))

print(calcula_media_ponderada(nota1, nota2, nota3))
4 changes: 4 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/indentaçao.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Começo de linha
# teto identado com tab
# linha
# texto indentado
16 changes: 16 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/input.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
entrada1 = input ()

print ("O valor digitado é: " + entrada)

entrada1 = input ("Hoje está frio")
entrada2 = input ("O tempo de SP é muito louco")

print (type (entrada1))
print (type (entrada2))

concat = entrada1 + entrada2
print (concat)
print (type (concat))

numero1 = ("numero1 + numero2")
print (entrada1 + entrada2)
4 changes: 4 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/string.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
texto1 = "Be strong"
print (texto1)


8 changes: 8 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/texto.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
texto1 = "Oi, pessoal, "
texto2 = "tudo bem?! "
texto3 = "O reprograma é muito maravilhoso!"
numero1 = 25

texto_inteiro = texto1 + texto2 + texto3 + str (numero1)

print (texto_inteiro)
13 changes: 13 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
numero1 = 5
print (type(numero1))

numero2 = 1.555
print (type (numero2))

soma = numero1 + numero2
print (type(soma))

#Qualquer texto que nao ira executar
a = True
b = False

5 changes: 5 additions & 0 deletions exercicios/DoneInrRoom-Bodecam/unaria.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
numero_positivo = 24
numerp_negatovp = -numero_positivo

soma = numero_negativo+2
print
12 changes: 12 additions & 0 deletions exercicios/WorkHomeDoneBelisa-Bodecam/BodecamBio.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
texto1 = "Olá, hoje é domingo "
adj1 = 13
texto2 = " de Agosto de "
adj2= 2023
texto3 = ", agora é exatamente "
adj3 = 16
texto4 = "hrs e cá estou eu tentando resolver os exercícios. "
texto5 = "Confesso que não está sendo nada fácil e que estou surtando, mas, seguindo. "
texto6 = "Conto com ajuda de pessoas maravilhosas para não desistir e seguir resiliente. "
texto7 = "Então, me segure, pois a partir de dezembro sairei espalhando para todo mundo que me formei pela Reprograma e que enfim serei uma GAROTA DE PROGRAMA."

print(texto1 + str(adj1) + texto2 + str(adj2) + texto3 + str(adj3) + texto4 + texto5 + texto6 + texto7)
Copy link
Contributor

Choose a reason for hiding this comment

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

amiga voce simplesmente transcendeu, passou os argumentos dentro dos argumentos!!!!!!!!!! SOU SUA FA SERIO

Copy link
Author

Choose a reason for hiding this comment

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

Ahhhhhhhh, pow fico tão feliz sabendo, eu jurei que tinha feito muita merda kkkkkkkkkkkkkkkkkkkkkkk
<3 <3 <3 <3 Posso dormir em paz!

Copy link
Collaborator

Choose a reason for hiding this comment

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

Eu também!!

Copy link
Author

Choose a reason for hiding this comment

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

Ai gente, eu vou chorar kkkkkkkkkkkkk

Choose a reason for hiding this comment

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

Menina, que ARRASO!!!!

22 changes: 22 additions & 0 deletions exercicios/WorkHomeDoneBelisa-Bodecam/programadetintatentativa.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#PAINT PROGRAM


TextoInf1 = "Uma lata de tinta equivale a "
Adjetio1 = 18
TextoInf2 = " litros que pinta "
Adjetivo2 = 54
TextoInf3 = " metros quadrados. "
TextoInf4 = "Valor unitário de cada lata é de R$ "
Adjetio3 = 80.00

print (TextoInf1 + str(Adjetio1) + TextoInf2 + str(Adjetivo2) + TextoInf3 + TextoInf4 + str(Adjetio3))


CanOfPaint = 1
LitersPerCan = 18
SquareMeters = 54
ValueOfTheCan = 80.00

print (SquareMeters * LitersPerCan)


18 changes: 18 additions & 0 deletions exercicios/WorkHomeDoneBelisa-Bodecam/tintas.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
def caucular_numero_de_litros_de_tinta(numero_de_metros_quadrados, area_por_litro):
numero_de_litros_de_tinta = numero_de_metros_quadrados / area_por_litro
return numero_de_litros_de_tinta


metros_quadrados = float(input("Digite o tamanho em M² de área para pintar "))
metros_quadrados_por_litro = 3
tamanho_da_lata_em_litros = 18
preco_da_lata = 80

litros = caucular_numero_de_litros_de_tinta(area_por_litro= metros_quadrados_por_litro, numero_de_metros_quadrados= metros_quadrados)
print (litros)
latas_inteiras = int(litros/tamanho_da_lata_em_litros)
if(litros%tamanho_da_lata_em_litros != 0):
latas_inteiras += 1

valor_total = latas_inteiras * preco_da_lata
Copy link
Collaborator

Choose a reason for hiding this comment

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

Aqui tem um errinho. A variável valor_total tá sendo criada dentro do bloco interno do if da linha 14 for verdadeiro.
Então se o if não for verdadeiro, não vai fazer a conta e criar a variável, o que vai gerar erro na hora do print.

print(valor_total, litros, latas_inteiras)
14 changes: 14 additions & 0 deletions exercicios/WorkHomeDoneBelisa-Bodecam/tintas2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import math

area = float(input("Digite o tamanho em M² de area a ser pintado "))
litros = area/6
litros_com_folga = litros * 1.1

latas = int(litros_com_folga/18)
resto = litros_com_folga % 18
galoes = math.ceil(resto/3.6)
preco = (latas * 80) + (galoes * 25)

print(f"Misture latas e galões")
print(f"Você precisa de {latas} latas e {galoes} galões de tinta ")
print(f"O preço total é de R$ {preco:.2f}")