-
Notifications
You must be signed in to change notification settings - Fork 468
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
398a76e
commit 40701a0
Showing
3 changed files
with
82 additions
and
0 deletions.
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,5 @@ | ||
[.ShellClassInfo] | ||
InfoTip=Esta pasta está compartilhada on-line. | ||
IconFile=C:\Program Files\Google\Drive\googledrivesync.exe | ||
IconIndex=16 | ||
|
22 changes: 22 additions & 0 deletions
22
1644-Logica de Programacion_Primeros Pasos-aula3/primer_test.html
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 @@ | ||
<meta charset="UTF-8"> | ||
|
||
|
||
<h1>mi primer programa HTML!!</h1> | ||
<br> | ||
<br> | ||
<br> | ||
|
||
será esto realmente un programa? descubralo <a href="https://es.wikipedia.org/wiki/HTML">aqui</a> | ||
|
||
<br> | ||
|
||
ingresa <a href="https://es.wikipedia.org/wiki/JavaScript">aqui</a> para ver un verdadero lenguage de programación | ||
|
||
|
||
<script> | ||
alert("Esto sí es lenguaje de programación"); | ||
</script> | ||
|
||
|
||
|
||
|
55 changes: 55 additions & 0 deletions
55
1644-Logica de Programacion_Primeros Pasos-aula3/programa.html
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,55 @@ | ||
<meta charset="UTF-8"> | ||
|
||
<h1>PROGRAMA</h1> | ||
|
||
<script> | ||
|
||
var anho = 2025; | ||
|
||
document.write("Juan tiene: " + (anho-2000) + " años"); | ||
document.write("<br>"); | ||
document.write("<br>"); | ||
document.write("Pedro tiene: " + (anho-1995) + " años"); | ||
|
||
anho = 2030 | ||
|
||
document.write("<br>"); | ||
document.write("<br>"); | ||
document.write("Carlos tiene: " + (anho-2005) + " años"); | ||
|
||
document.write("<br>"); | ||
document.write("<br>"); | ||
document.write("<br>"); | ||
document.write("<br>"); | ||
|
||
anho = 2020 | ||
document.write("Jimena tiene: " + (anho-2010) + " años"); | ||
document.write("<br>"); | ||
document.write("<br>"); | ||
|
||
document.write("Paola tiene: " + (anho-1995) + " años"); | ||
document.write("<br>"); | ||
document.write("<br>"); | ||
|
||
document.write("Laura tiene: " + (anho-2005) + " años"); | ||
document.write("<br>"); | ||
document.write("<br>"); | ||
|
||
|
||
var edadJimena = 10; | ||
var edadPaola = 25; | ||
var edadLaura = 15; | ||
|
||
var nombre1 = "Jimena"; | ||
var nombre2 = "Paola"; | ||
var nombre3 = "Laura"; | ||
|
||
promedio = (edadJimena+edadPaola+edadLaura)/3 | ||
|
||
document.write("El promedio de las edades de " + nombre1 + ", " + nombre2 + " y " + nombre3 + " es: " + Math.round(promedio)); | ||
document.write("<br>"); | ||
|
||
|
||
</script> | ||
|
||
|
40701a0
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.
3 Calculo consumo
40701a0
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.
3 Calculo consumo
40701a0
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.
40701a0
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.
Calculo consumo
40701a0
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.
Yo creo que me equivoqué con el ejercicio del alcohol y la gasolina porque primero lo calculé sin variable y luego ya sólo lo repetí lo de la opinión del instructor. pero igual me cuesta difinir las variables.
y luego sólo lo copié
40701a0
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.
2️⃣ 3️⃣ 👍
40701a0
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.
Veo que lo hice un poco diferente a la solución que se puede ver despues del instructor, de todas maneras el resultado es el mismo. Supongo que esta bien aunque tengo la duda (:
40701a0
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.
<meta charset= "UTF-8"
¿Alcohol o Gasolina?
<script> var capacidaddeltanque = 40; var distancia = 480; var tipodecombustible = "gasolina"; document.write("El recorrido por litro del auto es : " + (distancia/capacidaddeltanque) + " Km " + " usando " + tipodecombustible); document.write("
"); document.write("
"); var distancia = 300; var tipodecombustible = "alcohol"; document.write("El recorrido por litro del auto es : " + (distancia/capacidaddeltanque) + " Km " + "usando " + tipodecombustible); </script>
40701a0
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.
40701a0
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.
40701a0
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.
40701a0
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.
40701a0
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.
40701a0
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.
40701a0
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.
Alcool O Gasolina?
<script> var tanque = 40; var recorridoGas = 480; var recorridoAlch = 300; document.write( "Problema: Si un carro tiene un tanque de 40 litros. Usando gasolina y consumiendo todo el tanque se hace un recorrido de 480 kilómetros.¿Cuál es la eficiencia del carro usando gasolina? o sea, ¿cuántos kilómetros recorre el carro por cada litro de gasolina?"); document.write("
"); document.write("
"); document.write(" Respuesta"); document.write("
"); document.write("El total de condumo es de: " + (recorridoGas/tanque) + " KM por Litro"); document.write("
"); document.write("Sin embargo si usa Alchol el recorrido sera de :" + (recorridoAlch/tanque) + " KM por Litro"); </script>
40701a0
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.
40701a0
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.
40701a0
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.
40701a0
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.