Sistema de Plazo Fijo (PHP)

in #programming7 years ago

Sistema de Plazo Fijo (PHP)

php.png

CONSIGNA
Ingresar el valor del deposito y la cantidad de días y calcular el monto según los datos:

Monto
$1000
$5000
$10000
$15000
$20000
$25000
Días
30 (Interes 2%), 60 (Interes 4%)
90 (Interes 6%), 120 (Interes 8%)
150 (Interes 10%), 180 (Interes 12%)
210 (Interes 14%), 240 (Interes 16%)
270 (Interes 18%), 300 (Interes 20%)
330 (Interes 22%), 365 (Interes 24%)

INTERFAZ

plazo-fijo.png

plazo-fijo2.png

FUENTE

<?PHP
$deposito = $_POST['deposito'];
$dias = $_POST['dias'];

if ($dias==''){
$monto=0;
}
if ($dias=='30'){
$monto=1.02 * $deposito;
}
if ($dias=='60'){
$monto=1.04 * $deposito;
}
if ($dias=='90'){
$monto=1.06 * $deposito;
}
if ($dias=='120'){
$monto=1.08 * $deposito;
}
if ($dias=='150'){
$monto=1.10 * $deposito;
}
if ($dias=='180'){
$monto=1.12 * $deposito;
}
if ($dias=='210'){
$monto=1.14 * $deposito;
}
if ($dias=='240'){
$monto=1.16 * $deposito;
}
if ($dias=='270'){
$monto=1.18 * $deposito;
}
if ($dias=='300'){
$monto=1.20 * $deposito;
}
if ($dias=='330'){
$monto=1.22 * $deposito;
}
if ($dias=='365'){
$monto=1.24 * $deposito;
}
?>

Fuente:
http://mauriciobobadilla.com/sistemas/plazo-fijo

steemit-mauri.gif

Sort:  

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

Award for the number of upvotes received

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!

Thank you very much