-
Notifications
You must be signed in to change notification settings - Fork 34
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
Aline santos #37
Open
aline-pereira
wants to merge
2
commits into
reprograma:aline-santos
Choose a base branch
from
aline-pereira:aline-santos
base: aline-santos
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
Aline santos #37
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 @@ | ||
/node_modules |
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 @@ | ||
let celsius = Number(prompt("Digite a temperatura em Celsius")); | ||
|
||
let calculo = (9 * celsius) / 5 + 32 | ||
|
||
console.log("A temperatura convertida em Celsius para Fahrenheit é igual a: " + calculo + "°F") |
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 @@ | ||
let fahrenheit = Number(prompt("Digite a temperatura em Celsius")); | ||
|
||
let calculo = (fahrenheit - 32) / 1.8 | ||
|
||
console.log("A temperatura convertida em Fahrenheit para Celsius é igual a: " + calculo + "°C") |
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 @@ | ||
let peso = Number(prompt("Digite o peso do peixe")); | ||
let calculo = (peso - 50) | ||
let excesso | ||
let multa | ||
|
||
if (peso > 50) { | ||
excesso = `Excesso ${calculo}` | ||
multa = `A multa foi de: ${calculo * 4}` | ||
|
||
} else { | ||
excesso = `Excesso 0` | ||
multa = `Multa 0` | ||
} | ||
|
||
console.log(excesso) | ||
console.log(multa) |
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,6 @@ | ||
let kmPercorrido = Number(prompt("Quantos foram os KM percorridos?")); | ||
let qtdDias = Number(prompt("Por quantos dias o carro foi alugado?")); | ||
|
||
let precoPagar = (qtdDias * 60) + (kmPercorrido * 0.15) | ||
|
||
console.log(`O valor total foi de: R$ ${precoPagar}` + `,00`) |
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,11 @@ | ||
// | ||
|
||
let lado1 = parseInt(prompt("Digite o 1º lado do triângulo:")); | ||
let lado2 = parseInt(prompt("Digite o 2º lado do triângulo:")); | ||
let lado3 = parseInt(prompt("Digite o 3º lado do triângulo:")); | ||
if ((lado1 < (lado2 + lado3)) && (lado2 < (lado1 + lado3)) && (lado3 < (lado1 + lado2))) { | ||
console.log("Os valores podem formar um triângulo."); | ||
} | ||
else { | ||
console.log("Os valores não podem formar um triângulo."); | ||
} |
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 @@ | ||
nota1 = Number(prompt("Digite a nota 01")) | ||
nota2 = Number(prompt("Digite a nota 02")) | ||
nota3 = Number(prompt("Digite a nota 03")) | ||
nota4 = Number(prompt("Digite a nota 04")) | ||
nota5 = Number(prompt("Digite a nota 05")) | ||
|
||
media = (nota1 + nota2 + nota3 + nota4 + nota5) / 5; | ||
|
||
if (media >= 7) { | ||
console.log("Aprovada") | ||
} else if (media <= 5) { | ||
console.log("Reprovada") | ||
} else { | ||
console.log("Recuperação") | ||
} |
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,7 @@ | ||
let cigarrosDia = Number(prompt("Digite a quantidade de cigarros fumados por dia")) | ||
let cigarrosFumadosAnos = Number(prompt("Digite quantos anos já fumou")) | ||
|
||
let dias = (cigarrosDia * 0.10) + (cigarrosFumadosAnos * 365) | ||
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. Tem certeza que essa conta reflete a regra que é: |
||
let diasVida = dias | ||
|
||
console.log(dias) |
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,7 @@ | ||
let anoBissexto = Number(prompt("Digite um número")) | ||
|
||
if ((anoBissexto / 4 == 0) && (anoBissexto / 100 > 0) && (anoBissexto / 400 == 0)) { | ||
console.log("O ano é bissexto") | ||
} else { | ||
console.log("O ano não é bissexto") | ||
} |
Empty file.
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 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
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.
aqui só faltou verificar quando é
isósceles
,escaleno
ouequilatero