From 156548641d8a4e602fe6b649a9b0d8ab93373439 Mon Sep 17 00:00:00 2001 From: Zach Date: Tue, 28 Sep 2021 14:27:25 +1000 Subject: [PATCH] Start --- .gitignore | 9 +++++++++ Code/P1.java | 26 ++++++++++++++++++++++++++ Code/P1_War.java | 19 +++++++++++++++++++ Code/P2.java | 0 Code/P3.java | 0 Report.md | 0 readme.txt | 0 7 files changed, 54 insertions(+) create mode 100644 .gitignore create mode 100644 Code/P1.java create mode 100644 Code/P1_War.java create mode 100644 Code/P2.java create mode 100644 Code/P3.java create mode 100644 Report.md create mode 100644 readme.txt diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c3e24de --- /dev/null +++ b/.gitignore @@ -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 diff --git a/Code/P1.java b/Code/P1.java new file mode 100644 index 0000000..77dfb5e --- /dev/null +++ b/Code/P1.java @@ -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() + { + + } + +} \ No newline at end of file diff --git a/Code/P1_War.java b/Code/P1_War.java new file mode 100644 index 0000000..1a9f925 --- /dev/null +++ b/Code/P1_War.java @@ -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; + } + +} \ No newline at end of file diff --git a/Code/P2.java b/Code/P2.java new file mode 100644 index 0000000..e69de29 diff --git a/Code/P3.java b/Code/P3.java new file mode 100644 index 0000000..e69de29 diff --git a/Report.md b/Report.md new file mode 100644 index 0000000..e69de29 diff --git a/readme.txt b/readme.txt new file mode 100644 index 0000000..e69de29