Take out a piece of paper. We’ll be programming on paper.
For the following programming questions, I’d like you to follow the programming algorithm.
/** Program that ...
* @author Cam Moore
*/
public class <ProgramName> {
/** Does something.
* @param args the command line arguments.
*/
public static void main(String[] args) {
// pseudo code
}
}
Write a program that prints out “Java is great!”.
Write a program that prints out the following multiplication table:
1 | 2 | 3 | |
---|---|---|---|
1 | 1 | 2 | 3 |
2 | 2 | 4 | 6 |
3 | 3 | 6 | 9 |