Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Prueba HTML - Daniela Nieves I4DA
Prueba HTML - Daniela Nieves I4DA
PRUEBA PRACTICA
Html y Php
Estudiante:
Daniela Nieves C.I: 30.147.810
Sección: I4DA
Prof. María Sorellys Sánchez
<html>
<head>
<meta charset="utf-8">
<title>Prueba</title>
</head>
<body bgcolor="Thistle">
<center>
<br>
<br>
Seleccione su Producto:
<select>
<option>Harina Pan</option>
<option>Harina de Trigo</option>
<option>Arroz</option>
<option>Azúcar</option>
<option>Café</option>
</select>
<br>
<br>
<br>
<br>
<br>
<input type="submit" value="Calcular">
</center>
</form>
</body>
<?php
$Precio=0;
$Cantidad=0;
$Descuento;
$Subtotal;
$Total;
$Cantidad=$_REQUEST['Cantidad']+$Cantidad;
$Precio=$_REQUEST['Precio']+$Precio;
$Subtotal=$Precio*$Cantidad;
if ($Cantidad>=36) {
$Descuento=$Subtotal*0.15;
$Total=$Subtotal-$Descuento;
elseif ($Cantidad<=36) {
$Descuento=$Subtotal*0.10;
$Total=$Subtotal-$Descuento;
?>
</html>
PROGRAMA
Condicion1
Condicion2