generated from reprograma/onX-sx-temaX
-
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
Work Home Done S2 #34
Open
Bodecam
wants to merge
1
commit into
reprograma:main
Choose a base branch
from
Bodecam:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
print ("Hi Bodecam") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
texto1 = "Be strong" | ||
print (texto1) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
22 changes: 22 additions & 0 deletions
22
exercicios/WorkHomeDoneBelisa-Bodecam/programadetintatentativa.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
print(valor_total, litros, latas_inteiras) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}") |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
amiga voce simplesmente transcendeu, passou os argumentos dentro dos argumentos!!!!!!!!!! SOU SUA FA SERIO
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.
Ahhhhhhhh, pow fico tão feliz sabendo, eu jurei que tinha feito muita merda kkkkkkkkkkkkkkkkkkkkkkk
<3 <3 <3 <3 Posso dormir em paz!
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.
Eu também!!
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.
Ai gente, eu vou chorar kkkkkkkkkkkkk
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.
Menina, que ARRASO!!!!