Information for 20 customers of a bank is stored in a random Access file named musteri.dat using the struct given below. struct customer{ int account; char surname[25]; char name[20]; double deposit; }; 1- Write a function having prototype given below that returns how many customers stored in the file whose deposit is less than zero. Call your function from main function within a menu. Function prototype: int listIndebtedAccounts(FILE *); 2- Write a function having prototype given below that returns the customer information as a struct that has maximum amount of money in his account.how many customers stored in the file whose deposit is less than zero. Call your function from main function within a menu. Function prototype: struct customer findMaxDeposit(FILE *); 3- Write a function having prototype given below that transfers all information of customers into a sequential access file named “list.txt” whose deposit is greater than or equal to 300 . Call your function from main function within a menu. Function prototype: void transferRecords(FILE *);
Information for 20 customers of a bank is stored in a random Access file named musteri.dat using the struct given below.
struct customer{ int account;
char surname[25]; char name[20]; double deposit;
};
1- Write a function having prototype given below that returns how many customers stored in the file whose deposit is less than zero. Call your function from main function within a menu.
Function prototype: int listIndebtedAccounts(FILE *);
2- Write a function having prototype given below that returns the customer information as a struct that has maximum amount of money in his account.how many customers stored in the file whose deposit is less than zero. Call your function from main function within a menu.
Function prototype: struct customer findMaxDeposit(FILE *);
3- Write a function having prototype given below that transfers all information of customers into a sequential access file named “list.txt” whose deposit is greater than or equal to 300 . Call your function from main function within a menu.
Function prototype: void transferRecords(FILE *);
Step by step
Solved in 3 steps