-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
94 lines (71 loc) · 2.08 KB
/
readme.txt
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
This work has been done as a team.
Members:
Millan Uka 17981567
Naveed Mirdadi 17976962
Task1
- concatenatefile.sh - The executable file for the task 1(Shell Script).
- file1.txt - A test text file to use as an input for the concatenatefile program
- file2.txt - A test text file to use as an input for the concatenatefile program
To run task 1. You need to use a Linux environment, you can run it on a Linux Machine, Virtual Machine, PuTTy or through Git Bash. You may need to change the permission of the
file by doing "chmod 755 concatenatefile.sh". You can then run the script by entering "/concatenatefile.sh file1.txt file2.txt". You can use your own files or the test files
provided. It should create an output.txt file after running the script
Task2 Directory
- Build
- nbproject
- src
- task2
- Banker.java (Java file)
- Request.java (Java file)
Run the code-> - Task2.java (Java file)
- build.xml (XML Document)
- manifest.mf (MF File)
To run task 2. You need Netbeans. You then open the Task2 Project folder. You can then run the Task2.java driver class. This should then continously display the available resources.
Task3 Directory
- nbproject
- src
- task3
Run the code-> - Task3.java (Java file)
- TrafficLight.java (Java file)
- TrafficLightProblem (Java file)
- build.xml (XML Document)
- manifest.mf (MF File)
To run task 2. You need Netbeans. You then open the Task3 Project folder. You can then run the Task2.java driver class. This should then show a visual representation of the
traffic light. And request input from the user on the traffic light that they want to turn on.
Test Run Results (For Task 2)
R1 R2 R3
17 17 17
R1 R2 R3
17 17 18
R1 R2 R3
17 15 17
R1 R2 R3
17 14 18
R1 R2 R3
18 14 16
R1 R2 R3
19 14 16
R1 R2 R3
19 15 16
R1 R2 R3
19 15 15
R1 R2 R3
19 15 16
R1 R2 R3
19 15 16
R1 R2 R3
18 15 16
R1 R2 R3
18 15 16
R1 R2 R3
18 14 17
R1 R2 R3
18 14 18
R1 R2 R3
18 14 19
Customer 5 cannot make this request. The max allowed is 1 for resource 0. There is 18 available of this resource
R1 R2 R3
17 15 19
R1 R2 R3
18 13 19
R1 R2 R3
18 14 19