Start
This commit is contained in:
commit
156548641d
9
.gitignore
vendored
Normal file
9
.gitignore
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
AssessmentItemCoverSheet.pdf
|
||||||
|
Assign2.pdf
|
||||||
|
Assign2Feedback2240.pdf
|
||||||
|
Assign2Feedback6240.pdf
|
||||||
|
CovidExtension.txt
|
||||||
|
P1-1in.txt
|
||||||
|
P1-1out.txt
|
||||||
|
P2-1in.txt
|
||||||
|
P2-1out.txt
|
||||||
26
Code/P1.java
Normal file
26
Code/P1.java
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
import java.util.*;
|
||||||
|
import java.io.*;
|
||||||
|
|
||||||
|
public class P1 {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* COMP2240 Assignment 2
|
||||||
|
* Date:
|
||||||
|
* Author: Zach S-B
|
||||||
|
* Student Number: c3262201
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Main. Runs the program
|
||||||
|
*/
|
||||||
|
public static void main(String[] args){
|
||||||
|
P1 system = new P1();
|
||||||
|
system.run();
|
||||||
|
}
|
||||||
|
|
||||||
|
public void run()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
19
Code/P1_War.java
Normal file
19
Code/P1_War.java
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
public class P1_War {
|
||||||
|
|
||||||
|
private int id; //ID number of the WAR
|
||||||
|
private boolean inIntersection; //Is the WAR in the intersuction? True if in intersection
|
||||||
|
private boolean atDock; //Is the WAR at the dock? True if at dock
|
||||||
|
private int trackNum; //Which track does the WAR operate in? 1 or 2?
|
||||||
|
|
||||||
|
//Constructors
|
||||||
|
public P1_War(){
|
||||||
|
}
|
||||||
|
|
||||||
|
public P1_War(int idInput, int trackNumInput, boolean atDockInput, boolean inIntersectionInput) {
|
||||||
|
id = idInput;
|
||||||
|
inIntersection = inIntersectionInput;
|
||||||
|
atDock = atDockInput;
|
||||||
|
trackNum = trackNumInput;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
0
Code/P2.java
Normal file
0
Code/P2.java
Normal file
0
Code/P3.java
Normal file
0
Code/P3.java
Normal file
0
readme.txt
Normal file
0
readme.txt
Normal file
Loading…
x
Reference in New Issue
Block a user