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. 11
      src/customerMenu.c
  3. 7
      src/employeesCredentialsList.txt
  4. 14
      src/employeesData.txt

4
src/CustomerData.txt

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

11
src/customerMenu.c

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