From 1475fe2cc8dcfd5169f04fd9d873a709ddea9f5a Mon Sep 17 00:00:00 2001 From: MJFracess Date: Wed, 13 Sep 2023 12:52:07 -0700 Subject: [PATCH 1/3] First Try --- .idea/misc.xml | 2 +- src/HelloXwing.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7464918..501ce09 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..10dc09d 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -29,5 +29,6 @@ static String xwing() { public static void main(String[] args) { // Comment + System.out.println(xwing()); } } From 6739a6b4454d9b8ce7d6204727da1a02f1e295a1 Mon Sep 17 00:00:00 2001 From: MJFracess Date: Wed, 13 Sep 2023 14:06:20 -0700 Subject: [PATCH 2/3] Second Try --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5c6885c..e86dada 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,7 @@ * Modify the HelloXwing.java file to print out to the **console** the xwing() method. * Run your program, verify an ascii-art X-Wing prints to the console, and save your changes. * Commit your changes back to your GitHub account and follow the video on doing a Pull request to the instructor account. +1. A statement is a specifies one step of an algorithm where a comment only contains information and has no effect when the program runs. +2. If a program is portable, it can be run on different types of computers with little to no modifications. +3. Compile means to translate a high-level language to a low level language all at once to be used for later execution. +4. Executable is another name for object code. It is a noun because it is a name. \ No newline at end of file From 8a0496ea75938f30b3834315bdacb369a992f2a1 Mon Sep 17 00:00:00 2001 From: MJFracess Date: Fri, 15 Sep 2023 18:17:42 -0700 Subject: [PATCH 3/3] Completed Java lab 001 --- .idea/misc.xml | 2 +- README.md | 2 +- src/HelloXwing.java | 12 ++++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 501ce09..cf9abe6 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,6 +1,6 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index e86dada..0474a04 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ * Modify the HelloXwing.java file to print out to the **console** the xwing() method. * Run your program, verify an ascii-art X-Wing prints to the console, and save your changes. * Commit your changes back to your GitHub account and follow the video on doing a Pull request to the instructor account. -1. A statement is a specifies one step of an algorithm where a comment only contains information and has no effect when the program runs. +1. A statement specifies one step of an algorithm whereas a comment only contains information and has no effect when the program runs. 2. If a program is portable, it can be run on different types of computers with little to no modifications. 3. Compile means to translate a high-level language to a low level language all at once to be used for later execution. 4. Executable is another name for object code. It is a noun because it is a name. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 10dc09d..8cd772b 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,11 @@ +/** + * + * @author Trevor Hartman + * @author MJ Fracess + * + * @since Version 1.0 + * + */ public class HelloXwing { /** * Returns a String containing a X-Wing ASCII-Art @@ -28,7 +36,7 @@ static String xwing() { } public static void main(String[] args) { - // Comment - System.out.println(xwing()); + // MJ's attempt at Lab 1 + System.out.println(HelloXwing.xwing()); } }