Sistema de Recorrido del Camión (PHP)steemCreated with Sketch.

in programming •  7 years ago 

Sistema de Recorrido del Camión (PHP)

php.png

CONSIGNA
Ingresar el nombre del chofer, los Kilómetros Iniciales (KMI) y Kilómetros Finales (KMF) e imformar:

  1. Los Kilómetros Recorridos (KMR)
  2. Subtotal, IVA 21% y el Total
  3. Beneficio (Plus) del 5%, si supera los 2000 kilómetros Recorridos

INTERFAZ

recorrido.png

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

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @mauricioeb83! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

You published 4 posts in one day

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

By upvoting this notification, you can help all Steemit users. Learn how here!