Basic HW Format
- Filename format:
Assignment_YourName.java
- Begin with a comment including your name (just in case).
- Separate function for each chapter or project. Run them all from
your
main method.
- Number each question in a comment or print statement.
- Copy the text of each question in a comment (unless super-long).
- Write the code for the question after that.
- Non-code answers should be written as comments or print statements.
Example
// Doc Mo assignment 1.
public class C01_DocMo {
public static void lesson02() {
System.out.println("""
Lesson 02
1. String, int, double
2. String to store my name
3. double to store sqrt(2)
4. int to store my age
""");
// 7.
String my_name = "Doc Mo";
// 8.
int count;
}
public static void lesson03() {
System.out.println("FINISH LESSON 03");
}
public static void main (String[] args) {
lesson02();
lesson03();
}
}