From 8cc4179c79bcb8baf60856f962e0f7253563b856 Mon Sep 17 00:00:00 2001 From: nstine77 Date: Fri, 19 Jan 2024 18:19:40 -0800 Subject: [PATCH] HelloXwing edited, README edited --- .idea/misc.xml | 2 +- README.md | 12 ++++++++++++ src/HelloXwing.java | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7464918..172df7b 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 5c6885c..aa05b1c 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,15 @@ * 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. + +# Questions and answers +* Q1 - In computer jargon, what’s the difference between a statement and a + comment? +* A1 - A statement is code for the electronic device or software. A comment is code for a person to read about the statement. +* Q2 - What does it mean to say that a program is portable? +* A2 - The program can run on more than one environment. +* Q3 - In common English, what does the word compile mean? +* A3 - To translate a program in a high-level language into a low-level + language, all at once, in preparation for later execution. +* Q4 - What is an executable? Why is that word used as a noun? +* A4 - Executables are also known as Executable Programs; these are things. Nouns are persons, places, or things. Ergo, an executable is a noun. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..da4d0a4 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,6 +1,6 @@ public class HelloXwing { /** - * Returns a String containing a X-Wing ASCII-Art + * Returns a String containing an X-Wing ASCII-Art * * @return Ascii-Art String of an X-Wing */ @@ -29,5 +29,6 @@ static String xwing() { public static void main(String[] args) { // Comment + System.out.println(xwing()); } }