![]() |
CS 111 - Introduction to Computer Science
Homework #2 |
NOTE: Please carefully read the direction for submitting homework. Homework that does not compile or is not submitted according to instructions will receive no credit. (See exception below.)
1. Write three versions of the Hello.java program that have different syntax errors. Call these Hello1.java, Hello2.java, and Hello3.java. (These will be the only non-compiling programs you will submit.) For each version, describe and explain the error message the javac compiler returns. Finally, write a version Hello4.java with a logic error and describe the logic error.
2. Write a program Intro.java that prints four lines with your (1) name, (2) year, (3) home town, and (4) reason for taking CS 111.
3. Write a program MyName.java that prints your name
___ ___ _ _ _ / __| / __| / | / | / | | (__ \__ \ | | | | | | \___| |___/ |_| |_| |_|The easiest way to approach this is to copy the output of the Figlet server to your program, escape the characters that need to be escaped, and surround each line with System.out.println(" ... ");
4. Exercise 2.13. Call your program SimpleMath.java.
5. Exercise 2.28. Call your program CircleMath.java.
6. From the built-in emacs tutorial (accessible by C-h t), learn and list three basic skills that are not covered in our brief emacs/JDE tutorial.