-
Notifications
You must be signed in to change notification settings - Fork 0
/
account.h
48 lines (35 loc) · 1022 Bytes
/
account.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
==================================================
Assignment #2 Milestone #4
==================================================
Name : Danish Sharma
ID : 148201205
Email : dsharma115@myseneca.ca
Section: BTP100NBB
*/
#ifndef ACCOUNT_H_
#define ACCOUNT_H_
struct Demographic {
int dateOfBirth;
double income;
char country[31];
};
struct UserLogin {
char name[31];
char loginName[11];
char password[9];
};
struct Account {
int accountNumber;
char accountType;
struct UserLogin userLogin;
struct Demographic demographic;
};
void getAccount(struct Account* account, const struct Account accountArr[], int ACCOUNT_MAX_SIZE);
void getUserLogin(struct Account* userLogin);
void getDemographic(struct Account* demographic);
void updateAccount(struct Account* account);
void updateUserLogin(struct Account* userLogin);
void updateDemographic(struct Account* demographic);
void passwordSecurity(struct Account* userLogin);
#endif // !ACCOUNT_H_