PIM Caixa Eletronio
Pesquisas Acadêmicas: PIM Caixa Eletronio. Pesquise 862.000+ trabalhos acadêmicosPor: dnascimento • 19/11/2014 • 4.258 Palavras (18 Páginas) • 250 Visualizações
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <conio.h>
#include <stdlib.h>
int opccli()
{
int opc, i1;
for (i1=0; i1<3;i1++){
system("cls");
printf("_______________________________________________________________________________\n");
printf("\t \n");
printf("\t BANCO UNIP - ATM PIM: \n");
printf("_______________________________________________________________________________\n");
printf("\t \n");
printf("\t \n");
printf("\t \n 1 - SALDO");
printf("\t \n");
printf("\t \n 2 - SAQUE");
printf("\t \n");
printf("\t \n 9 - SAIR");
printf("\t \n");
printf("\t \n");
printf("\t \n Digite a opcao desejada: ");
fflush(stdin);
scanf("%d",&opc);
if (opc != 1 && opc != 2 && opc != 9){
printf("OPCAO INVALIDA! \n \n \n");
system ("pause");
}else{
break;
}
}
return(opc);
}
int opcrep()
{
int opc, i2;
for (i2=0; i2<3;i2++){
system("cls");
printf("_______________________________________________________________________________\n");
printf("\t \n");
printf("\t BANCO UNIP - ATM PIM: \n");
printf("_______________________________________________________________________________\n");
printf("\t \n");
printf("\t \n");
printf("\t \n 3 - REPOR");
printf("\t \n");
printf("\t \n 4 - CONSULTA DISPENSER");
printf("\t \n");
printf("\t \n 9 - SAIR");
printf("\t \n");
printf("\t \n");
printf("\t \n Digite a opcao desejada: ");
fflush(stdin);
scanf("%d",&opc);
if (opc != 3 && opc != 4 && opc != 9){
printf("OPCAO INVALIDA! \n \n \n");
system ("pause");
}else{
break;
}
}
return(opc);
}
void sair()
{
system("cls");
printf("_______________________________________________________________________________\n");
printf("\t \n");
printf("\t BANCO UNIP - ATM PIM: \n");
printf("_______________________________________________________________________________\n");
printf("\t Obrigado por usar o nosso banco!\n \n \t Volte sempre!!\n \n \n");
system("pause");
exit(0);
}
float saque(float saldo)
{
int valor[3], saque;
int opc, n100, n50, n20, n10;
valor[0] = 150,00;
valor[1] = 100,00;
valor[2] = 50,00;
do{
system("cls");
printf("_______________________________________________________________________________\n");
printf("\t \n");
printf("\t BANCO UNIP - ATM PIM: \n");
printf("_______________________________________________________________________________\n");
printf("\t
...