#include<stdio.h>

//DECLARACION DE MIS VARIABLES GLOBALES
int monto_efec, monto_tarj;

//Declaraciones de Las Funciones

void RegistroCliente();
int Tipo_Pago();
void Reportes();


int main (){
int opc;
do{
printf("\n***BIENVENIDO***\n");
printf("\n***MENU PRINCIPAL****\n");
printf("\n*************");
printf("\nQue desea hacer\n");
printf("\n(1)-> Registrar Datos del Cliente\n");

//printf("\n(2)-> Registrar Mercancia\n");

                 printf("*************\n");
printf("\n(2)-> Tipo de Pago\n");
printf("\n(3)-> Reportes\n");
printf("\n(4)-> Salir\n");
printf("*************\n");
scanf("%i",&opc);

switch(opc){

case 1:{
RegistroCliente();
break;
}

case 2:{
Tipo_Pago();
break;
}
case 3:{
Reportes();
break;
}
case 4:{
printf("\nPROGRAMA FINALIZADO EXITOSAMENTE, GRACIAS POR PREFERIRNOS\n");
return 0;
break;
}

default:{
printf("\nPERDONE LA OPCION NO ES VALIDA\n");
break;
}

}//fin del case

}while(opc!=4);//fin del ciclo do while()

}//FIN DEL MAIN

/*_________________________________________________________

              DESARROLLO DE LAS FUNCIONES

_________________________________________________________*/


void RegistroCliente(){

char nombre[25], apellido[25];
int ci;

printf("\n***BIENVENIDO***\n");
printf("\n***MENU REGISTRO DEL CLIENTE****\n");
printf("\n*************");

printf("\nNOMBRE:\t");
scanf("%s",&nombre);

printf("\nAPELLIDO:\t");
scanf("%s",&apellido);

printf("\nCedula de Identidad:\t");
scanf("%i",&ci);

}//Fin de la funcion registro del cliente

int Tipo_Pago(){

int opcion;
do{
printf("\n***BIENVENIDO***\n");
printf("\n***MENU TIPO DE PAGO****\n");
printf("\n*************");

printf("\nSeleccione opcion:\t");
printf("\n(1)-> Efectivo\n");
printf("\n(2)-> Tarjetas\n");
printf("\n(3)-> Salir\n");
scanf("%i",&opcion);

switch(opcion){

case 1:{
printf("\nMONTO A PAGAR:\t");
scanf("%i",&monto_efec);
break;
}

case 2:{
printf("\nMONTO A PAGAR:\t");
scanf("%i",&monto_tarj);
break;
}

case 3:{
printf("\nPROGRAMA FINALIZADO EXITOSAMENTE, GRACIAS POR PREFERIRNOS\n");
return 0;
break;
}

default:{
printf("\nPERDONE LA OPCION NO ES VALIDA\n");
break;
}

}//fin del case

}while(opcion!=3);//fin del ciclo do while()
}//FIN DELA FUNCION TIPO DE PAGO


void Reportes(){
int total;

printf("\n***BIENVENIDO***\n");
printf("\n***REPORTES****\n");
printf("\n*************");

total=monto_efec+monto_tarj;

printf("\nLa cantidad de dinero recaudado por dia es: %i\n",total);

}//Fin del reporte


2 comentarios:

Excelente aporte

muy bueno seria mucho pedir si dejaras el proyecto para descargar

Publicar un comentario

Acerca de este Blog

Con la tecnología de Blogger.

Posts Populares

Datos personales

Mi foto
San Felipe, Yaracuy, Venezuela
Estudiante de Ing. Informátic@ en el Instituto Universitario de Tecnología de Yaracuy (IUTY)

Seguidores

Acerca

Nuevos Bloggers

Roll del Blog

Ser un compendio recopilatorio y una herramienta útil en cuanto a lenguaje C se refiere.

Blogger templates