-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadministrator.h
More file actions
42 lines (37 loc) · 966 Bytes
/
administrator.h
File metadata and controls
42 lines (37 loc) · 966 Bytes
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
/*
Names: Nicholas Paladino
James Sigler
Section: 502
Purpose: To declare function prototypes for admin
and to define Account struct
*/
//header file protection
#ifndef ADMIN_H
#define ADMIN_H
//define constants
#define ADMIN 1
#define CUSTOMER 2
#define MAX_LENGTH_LOGIN 5
#define MAX_CUSTOMERS 100
//define structure for account
typedef struct
{
int status;
char firstName[9], lastName[9];
char city[11];
char state[3];
char phoneNumber[9];
char accountID[6]; //MAX 5 digits
char password[7];
double balance;
} Account;
//function prototypes
void CreateCustomerAccount(Account data[], int pos, int* accNum);
void ChangePassword(Account* p);
void ViewCustomerInfo(Account data[], int numAccounts);
void ChangeCustomerInfo(Account data[], int numAccounts);
void DeleteCustomerAccount(Account data[], int numAccounts);
void ShowTopFive(Account data[]);
void ShowAccountsAlpha(Account data[], int numAccounts);
//end header protection
#endif