SlideShare una empresa de Scribd logo
1 de 3
Descargar para leer sin conexión
INFORME
Integrante: Lenin Mateo Quishpe Chanataxi
SEMESTRE: TERCERO
PARALELO: C
PRÁCTICA: #25
TEMA:
Operadores lógicos
OBJETIVO:
• Realizar la utilización de operadores lógicos y mejoramiento del uso del lenguaje de programación
“PHP”.
• Reconocer el uso de variables para el desarrollo del programa en “PHP”.
• Aprender a utilizar el nuevo lenguaje de programación de “PHP”.
RESULTADOS DE APRENDIZAJE
• La mejor comprensión del uso de lenguaje PHP
• Manipulación del servidor “XAMPP”
• Utilización de los operadores lógicos Switch Case
ACTIVIDADES:
- Realizar un ejercicio en php que permita ingresar
PHP1
<!DOCTYPE html PUBLIC "-
//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>
<form action="ejercicio21.php" method="post">
Masculino <input type="radio" name="genero" value= masculino>
Femenino <input type="radio" name="genero" value= femenino> <br>
Tu edad <input type="text" name="edad" size="4">
<input type="submit" value="Entrar">
</form>
<body>
</body>
</html>
PHP2
<!DOCTYPE html PUBLIC "-
//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-
transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
UNIVERSIDAD CENTRAL DEL ECUADOR
FACULTAD DE FILOSOFÍA, LETRAS Y CIENCIAS DE LA EDUCACIÓN
CARRERA DE LA PEDAGOGÍA DE LAS CIENCIAS EXPERIMENTALES
DE LA INFORMÁTICA
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin t&iacute;tulo</title>
</head>
<?php
$genero = $_POST["genero"];
$edad = $_POST["edad"];
if ($genero == 'masculino') {
echo "Es de genero masculino y ";
}else{
echo "Es de genero femenino y ";
}
if ($edad <18) {
echo "es menor de edad.";
}else{
echo "es mayor de edad.";
}
?>
<body>
</body>
</html>
CAPTURAS DEL PROGRAMA
PROGRAMA FUNCIONANDO CON EL NÚMERO DEL MES CORRECTO
f.)
____ _______ f.) __________________
MSc. Víctor Zapata
ESTUDIANTE DOCENTE

Más contenido relacionado

La actualidad más candente (20)

In 5
In 5In 5
In 5
 
In 11
In 11In 11
In 11
 
In 20
In 20In 20
In 20
 
In 7
In 7In 7
In 7
 
In 14
In 14In 14
In 14
 
In 4
In 4In 4
In 4
 
Tabla de multiplicar con while
Tabla de multiplicar con whileTabla de multiplicar con while
Tabla de multiplicar con while
 
In 2
In 2In 2
In 2
 
In 3
In 3In 3
In 3
 
Tarea con switch
Tarea con switchTarea con switch
Tarea con switch
 
Tabla de multiplicar con for y while
Tabla de multiplicar con for y whileTabla de multiplicar con for y while
Tabla de multiplicar con for y while
 
In 15
In 15In 15
In 15
 
In 12
In 12In 12
In 12
 
In 17
In 17In 17
In 17
 
In 23
In 23In 23
In 23
 
In 18
In 18In 18
In 18
 
Tabla de multiplicar con for
Tabla de multiplicar con forTabla de multiplicar con for
Tabla de multiplicar con for
 
22
2222
22
 
11
1111
11
 
In 22
In 22In 22
In 22
 

Similar a In 25 (20)

12
1212
12
 
U1
U1U1
U1
 
U1
U1U1
U1
 
Informe1
Informe1Informe1
Informe1
 
U2
U2U2
U2
 
11
1111
11
 
13
1313
13
 
Jefferson cuenca practica_b#2
Jefferson cuenca practica_b#2Jefferson cuenca practica_b#2
Jefferson cuenca practica_b#2
 
Jefferson cuenca practica_b#1
Jefferson cuenca practica_b#1Jefferson cuenca practica_b#1
Jefferson cuenca practica_b#1
 
U3
U3U3
U3
 
3
33
3
 
Jefferson cuenca practica_b#3
Jefferson cuenca practica_b#3Jefferson cuenca practica_b#3
Jefferson cuenca practica_b#3
 
27
2727
27
 
Informe10
Informe10Informe10
Informe10
 
14
1414
14
 
Jefferson cuenca trabajos_individuales#5
Jefferson cuenca trabajos_individuales#5Jefferson cuenca trabajos_individuales#5
Jefferson cuenca trabajos_individuales#5
 
Jefferson cuenca trabajos_individuales#10
Jefferson cuenca trabajos_individuales#10Jefferson cuenca trabajos_individuales#10
Jefferson cuenca trabajos_individuales#10
 
U4
U4U4
U4
 
10
1010
10
 
Jefferson cuenca practica_b#4
Jefferson cuenca practica_b#4Jefferson cuenca practica_b#4
Jefferson cuenca practica_b#4
 

Más de LENINMATEO1 (11)

Examen
ExamenExamen
Examen
 
Chatbot
ChatbotChatbot
Chatbot
 
Cheque
ChequeCheque
Cheque
 
Ejercicios basicos php lenin quishpe
Ejercicios basicos php lenin quishpeEjercicios basicos php lenin quishpe
Ejercicios basicos php lenin quishpe
 
Uso de variables en php
Uso de variables en phpUso de variables en php
Uso de variables en php
 
In 29
In 29In 29
In 29
 
In 28
In 28In 28
In 28
 
In 18
In 18In 18
In 18
 
In 16
In 16In 16
In 16
 
In 13
In 13In 13
In 13
 
In 10
In 10In 10
In 10
 

In 25

  • 1. INFORME Integrante: Lenin Mateo Quishpe Chanataxi SEMESTRE: TERCERO PARALELO: C PRÁCTICA: #25 TEMA: Operadores lógicos OBJETIVO: • Realizar la utilización de operadores lógicos y mejoramiento del uso del lenguaje de programación “PHP”. • Reconocer el uso de variables para el desarrollo del programa en “PHP”. • Aprender a utilizar el nuevo lenguaje de programación de “PHP”. RESULTADOS DE APRENDIZAJE • La mejor comprensión del uso de lenguaje PHP • Manipulación del servidor “XAMPP” • Utilización de los operadores lógicos Switch Case ACTIVIDADES: - Realizar un ejercicio en php que permita ingresar PHP1 <!DOCTYPE html PUBLIC "- //W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento sin t&iacute;tulo</title> </head> <form action="ejercicio21.php" method="post"> Masculino <input type="radio" name="genero" value= masculino> Femenino <input type="radio" name="genero" value= femenino> <br> Tu edad <input type="text" name="edad" size="4"> <input type="submit" value="Entrar"> </form> <body> </body> </html> PHP2 <!DOCTYPE html PUBLIC "- //W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> UNIVERSIDAD CENTRAL DEL ECUADOR FACULTAD DE FILOSOFÍA, LETRAS Y CIENCIAS DE LA EDUCACIÓN CARRERA DE LA PEDAGOGÍA DE LAS CIENCIAS EXPERIMENTALES DE LA INFORMÁTICA
  • 2. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Documento sin t&iacute;tulo</title> </head> <?php $genero = $_POST["genero"]; $edad = $_POST["edad"]; if ($genero == 'masculino') { echo "Es de genero masculino y "; }else{ echo "Es de genero femenino y "; } if ($edad <18) { echo "es menor de edad."; }else{ echo "es mayor de edad."; } ?> <body> </body> </html> CAPTURAS DEL PROGRAMA PROGRAMA FUNCIONANDO CON EL NÚMERO DEL MES CORRECTO
  • 3. f.) ____ _______ f.) __________________ MSc. Víctor Zapata ESTUDIANTE DOCENTE