From ed36396b4682e93e061dd879e2751363ba07fcf1 Mon Sep 17 00:00:00 2001 From: Daniel Faulkner Date: Thu, 24 Aug 2023 13:04:43 -0700 Subject: [PATCH] finished lab 001 --- .idea/misc.xml | 1 - README.md | 10 ++++++++++ src/HelloXwing.java | 2 ++ 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 07115cd..ef89d98 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,3 @@ - diff --git a/README.md b/README.md index 5c6885c..9280acb 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. + +# As described in chapter 1, computer scientist often employ common English as domain specific terms. Let's explore that idea in the following questions from Exercise 1.1 +1. In computer jargon, what’s the difference between a statement and a comment? +* A statement is part of a program that specifies one step of an algorithm, while the comment contains information about the program but does not affect how the program runs +2. What does it mean to say that a program is portable? +* A portable program means that the program can run on more than one kind of computer +3. In common English, what does the word compile mean? +* Compiling means to take a high level language and turn it into a low level language all at one time, to run later +4. What is an executable? Why is that word used as a noun? +* An executable is a name for object code that is ready to run on specific hardware. It is used as a noun because it is class of object code. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 16dfd8e..e8f9a87 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -28,5 +28,7 @@ static String xwing() { } public static void main(String[] args) { + HelloXwing.xwing(); + System.out.println(HelloXwing.xwing()); } }