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

Javascript #12

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
11 changes: 11 additions & 0 deletions aula/exs1.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@




let valorReais = Number(prompt("Qual o valor em reais a ser convertido para dolar?"))

let resultado = valorReais / 5.30

alert('valor convertido em dolar é ' + resultado)

console.log('valor convertido em dolar é' + resultado)
15 changes: 15 additions & 0 deletions aula/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="./exs1.js""></script>


</head>
<body>

</body>
</html>
17 changes: 17 additions & 0 deletions exercicios/para-casa/exs2.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
let prova1 = Number(prompt("Qual foi a sua nota na primeira prova?"));

let prova2 = Number(prompt("Qual foi a sua nota na segunda prova?"));

let prova3 = Number(prompt("Qual foi a sua nota na terceira prova?"));


let media = (prova1 + prova2 + prova3) / 3;

if (media <5) { alert ("Vish, aluno reprovado.") }

else if (media <= 6.99) { alert ("Aluno em recuperação - Boa sorte!")}

else if (media >= 7) { alert ("Parabéns, aluno aprovado!")}



13 changes: 13 additions & 0 deletions exercicios/para-casa/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="../para-casa/exs2.js"></script>
<title>Document</title>
</head>
<body>

</body>
</html>