/* PROGRAMA QUE PROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR
AUTOR: CARLOS E. LOPEZ */
#include <stdio.h>
#include <stdlib.h>
main()
{
float sb,v1,v2,v3,com,tot_ven,tot_pag;
sb=250;
printf("\nPROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR\n\n");
printf ("Ingrese la venta 1: ");
scanf ("%f",& v1);
printf ("Ingrese la venta 2: ");
scanf ("%f",& v2);
printf ("Ingrese la venta 3: ");
scanf ("%f",& v3);
tot_ven=v1+v2+v3;
com=tot_ven*.12;
tot_pag=sb+com;
printf ("\n\nSUELDO BASE: %f PESOS",sb);
printf ("\nCOMISION POR VTAS: %f PESOS",com);
printf ("\n\nPAGO NETO: %f PESOS\n\n\n",tot_pag);
system("PAUSE");
return 0;
}
AUTOR: CARLOS E. LOPEZ */
#include <stdio.h>
#include <stdlib.h>
main()
{
float sb,v1,v2,v3,com,tot_ven,tot_pag;
sb=250;
printf("\nPROGRAMA QUE CALCULA EL SUELDO NETO DE UN VENDEDOR\n\n");
printf ("Ingrese la venta 1: ");
scanf ("%f",& v1);
printf ("Ingrese la venta 2: ");
scanf ("%f",& v2);
printf ("Ingrese la venta 3: ");
scanf ("%f",& v3);
tot_ven=v1+v2+v3;
com=tot_ven*.12;
tot_pag=sb+com;
printf ("\n\nSUELDO BASE: %f PESOS",sb);
printf ("\nCOMISION POR VTAS: %f PESOS",com);
printf ("\n\nPAGO NETO: %f PESOS\n\n\n",tot_pag);
system("PAUSE");
return 0;
}