From f81923a007f5badb63cfe83a88d56778350b9cec Mon Sep 17 00:00:00 2001 From: prodriguez988 Date: Sat, 20 Jan 2024 21:16:33 -0800 Subject: [PATCH] Completed CIS-12 Lab 001 --- .idea/misc.xml | 2 +- README.md | 6 +++++- src/HelloXwing.java | 10 +++++++++- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 7464918..47478b9 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..0c56d68 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # Java-Lab-001 - * The source code file you will edit is in the src folder and contains a Java class file named HelloXwing.java * 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. +## English Vs. Computer Science (Exercise 1.1 Questions) +1. A statement is a line of code that performs a specific action while a comment translates the words stated within the line of code into English text and is mostly used to explain the code. +2. A program is portable when it is able to move from different kinds of computers with few or no modifications needed for it to run. +3. Compile in English text means to create something by assembling different kinds of information. +4. An executable is used as a noun because it is a translated program that allows code to be run multiple times. \ No newline at end of file diff --git a/src/HelloXwing.java b/src/HelloXwing.java index 2b2f3bb..cd51c38 100644 --- a/src/HelloXwing.java +++ b/src/HelloXwing.java @@ -1,3 +1,11 @@ +/** + * + * @author Trevor Hartman + * @author Petrita Rodriguez + * + * @since version 1.0 + * + */ public class HelloXwing { /** * Returns a String containing a X-Wing ASCII-Art @@ -28,6 +36,6 @@ static String xwing() { } public static void main(String[] args) { - // Comment + System.out.println(HelloXwing.xwing()); } }