Browse Source

After merge combine parts of our program.

remotes/origin/Alpha
fdai7057 2 years ago
parent
commit
a0604e41fa
  1. 4
      src/CustomerData.txt
  2. 2
      src/_file_information.h
  3. 11
      src/customerMenu.c
  4. 7
      src/employeesCredentialsList.txt
  5. 14
      src/employeesData.txt

4
src/CustomerData.txt

@ -58,12 +58,12 @@ ID=6984947
Forename=Karl
Surname=Marx
Password=okdsjhasdjhksdj
Balance=600.0000€
balance=610
7765335=123
ID=7765335
Forename=Friedrich
Surname=Moller
Password=123
Balance=50.0000€
balance=858.2

2
src/_file_information.h

@ -1,2 +1,2 @@
#define MAX_LENGTH 200
#define CUSTOMER_DATA_FILE "src/CustomerData.txt"
#define CUSTOMER_DATA_FILE "src/CustomerData.txt"

11
src/customerMenu.c

@ -1,23 +1,28 @@
#include "customerMenu.h"
#include "sendMoney.h"
#include "withdrawMoney.h"
#include "depositMoney.h"
int customerChoiceForMenuItem(int numberOfMenuItem, unsigned int *ptr)
{
int returnStatus = 0;
int ID = *ptr;
switch(numberOfMenuItem){
case 1:
puts("You have chosen to send money.\n");
returnStatus = 1;
//call sendMoney();
sendMoney(ID);
break;
case 2:
puts("You have chosen to withdraw money.\n");
returnStatus = 2;
//call withDrawMoney();
withdraw(ID);
break;
case 3:
puts("You have chosen to deposit money.\n");
returnStatus = 3;
//call depositMoney();
depositMoney(ID);
break;
case 4:
puts("You have chosen to request a loan.\n");

7
src/employeesCredentialsList.txt

@ -29,6 +29,13 @@ Shivam Schivam007fdlt3781

14
src/employeesData.txt

@ -73,6 +73,20 @@ Phone number : +4918756871384

Loading…
Cancel
Save