Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
christianpva authored Mar 21, 2020
1 parent 398a76e commit 40701a0
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 0 deletions.
5 changes: 5 additions & 0 deletions 1644-Logica de Programacion_Primeros Pasos-aula3/desktop.ini
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 1644-Logica de Programacion_Primeros Pasos-aula3/primer_test.html
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 1644-Logica de Programacion_Primeros Pasos-aula3/programa.html
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>


19 comments on commit 40701a0

@edisoncg
Copy link

Choose a reason for hiding this comment

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

3 Calculo consumo

@edisoncg
Copy link

Choose a reason for hiding this comment

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

3 Calculo consumo

@KellyDonoso
Copy link

Choose a reason for hiding this comment

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

image

@KellyDonoso
Copy link

Choose a reason for hiding this comment

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

Calculo consumo
image

@Luarb111
Copy link

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.

image
y luego sólo lo copié

image

@23nicolas
Copy link

Choose a reason for hiding this comment

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

3 1
3 2
2️⃣ 3️⃣ 👍

@giulianaci
Copy link

Choose a reason for hiding this comment

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

WhatsApp Image 2022-12-04 at 15 58 15

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 (:

@Darwin39
Copy link

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>

@xiomyvear2022
Copy link

Choose a reason for hiding this comment

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

@xiomyvear2022
Copy link

Choose a reason for hiding this comment

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

image

@xiomyvear2022
Copy link

Choose a reason for hiding this comment

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

image

@xiomyvear2022
Copy link

Choose a reason for hiding this comment

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

image

@xiomyvear2022
Copy link

Choose a reason for hiding this comment

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

image

@xiomyvear2022
Copy link

Choose a reason for hiding this comment

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

image

@isBuaio
Copy link

@isBuaio isBuaio commented on 40701a0 Apr 7, 2023

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>

@isBuaio
Copy link

@isBuaio isBuaio commented on 40701a0 Apr 7, 2023

Choose a reason for hiding this comment

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

image

@GabrielPinto124Baez
Copy link

Choose a reason for hiding this comment

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

logica 1
logica 2

@madthinker646
Copy link

Choose a reason for hiding this comment

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

2023-04-16 (19)

@madthinker646
Copy link

Choose a reason for hiding this comment

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

2023-04-16 (22)

Please sign in to comment.