diff --git a/README.md b/README.md index 5c6885c..11d7733 100644 --- a/README.md +++ b/README.md @@ -4,3 +4,13 @@ * 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. + +# Exercise 1.1 Questions +**1. In computer jargon, what’s the difference between a statement and a comment?** +

A statement specifies one step of an algorithm, thus it effects the way the program runs. Conversely, a comment has no effect on the way a program runs, but simply contains helpful information about the program.

+**2. What does it mean to say that a program is portable?** +

A portable program needs few or no modifications to run on different computer types.

+**3. In common English, what does the word compile mean?** +

To compile a program means to translate the entire program from a high-level language to a low-level language. This converts a program into an executable format.

+**4. What is an executable? Why is that word used as a noun?** +

An executable is a program that has been translated by a compiler and is ready to be repeatedly executed without need of further translation. It is a noun because it refers to a specific segment of code that is ready to be executed. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..9bb9667 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,11 @@ +/** + * + * @author Trevor Hartman + * @author Miranda Arnett + * + * @since Version 1.0 + * + */ public class HelloXwing { /** * Returns a String containing a X-Wing ASCII-Art @@ -28,6 +36,7 @@ static String xwing() { } public static void main(String[] args) { + System.out.println(HelloXwing.xwing()); // Comment } }