Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?**
<br><br> 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.<br><br>
**2. What does it mean to say that a program is portable?**
<br><br> A portable program needs few or no modifications to run on different computer types. <br><br>
**3. In common English, what does the word compile mean?**
<br><br> 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. <br><br>
**4. What is an executable? Why is that word used as a noun?**
<br><br> 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.
9 changes: 9 additions & 0 deletions src/HelloXwing.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -28,6 +36,7 @@ static String xwing() {
}

public static void main(String[] args) {
System.out.println(HelloXwing.xwing());
// Comment
}
}