-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patha1_data_structures.h
More file actions
40 lines (32 loc) · 904 Bytes
/
a1_data_structures.h
File metadata and controls
40 lines (32 loc) · 904 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
/********* a1_data_structures.h ********
Student Name = Marwan Alakhras
Student Number = 101296201
*/
#ifndef A1_DATA_STRUCTURES_H
#define A1_DATA_STRUCTURES_H
#include <stdbool.h>
#define NUM_ACTIVITIES 3
/********** DON'T MODIFY FROM HERE **********/
typedef struct activity {
unsigned short int id;
char name[100];
float planned_cost, actual_cost;
unsigned short int planned_duration, actual_duration;
_Bool completed;
}activity_t;
typedef struct milestone {
unsigned short int id;
char name[100];
activity_t activity_list[NUM_ACTIVITIES];
_Bool completed;
float actual_cost;
short int actual_duration;
}milestone_t;
typedef struct project {
char name[100];
float planned_cost, actual_cost;
unsigned short int planned_duration, actual_duration;
_Bool completed;
}project_t;
/********** DON'T MODIFY UNTIL HERE **********/
#endif