Sistema de Recorrido del Camión (PHP)
![php.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmNSJbxVNkyJ3T6KRTLdB1q1iosuE9NfpT8yXX1tY9qvja/php.png)
CONSIGNA
Ingresar el nombre del chofer, los Kilómetros Iniciales (KMI) y Kilómetros Finales (KMF) e imformar:
- Los Kilómetros Recorridos (KMR)
- Subtotal, IVA 21% y el Total
- Beneficio (Plus) del 5%, si supera los 2000 kilómetros Recorridos
INTERFAZ
![recorrido.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmVXrke4AojniTEFVfePwzrEmtkx6TR2BXcD42svid66RX/recorrido.png)
![recorrido2.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmP7mXKwz5fmmG5Ji74guXjiiN9s8dUhezpBiboB2as9Wn/recorrido2.png)
FUENTE
<?PHP$nombre = $_POST['nombre'];
$KMI = $_POST['KMI'];
$KMF = $_POST['KMF'];
$KMR = $KMF - $KMI;
$Subtotal = round($KMR * 50,2);
if ($Subtotal >= 2000){
$Beneficio=$Subtotal * 0.05;
}
$Subtotal2 = round($Subtotal + $Beneficio,2);
$IVA21 = round($Subtotal2 * 0.21,2);
$Total = round($Subtotal2 + $IVA21,2);
?>
Fuente:
http://mauriciobobadilla.com/sistemas/recorrido
![steemit-mauri.gif](https://images.hive.blog/0x0/https://steemitimages.com/DQmUPekDQE7mmDoCAEKBcK1YNTZEkiWFvY9676aJDVeywhv/steemit-mauri.gif)
Congratulations @mauricioeb83! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP