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.
1) Read and understand the problem
2) Create the comment stating the problem.
3) Insert the Java boilerplate.
/** Program that ...
* @author Cam Moore
*/
public class ProgramName {
/** Does something.
* @param args the command line arguments.
*/
public static void main(String[] args) {
}
}
4) Write the steps in pseudo code.
5) Refine the pseudo code.
Write a program that asks for the user’s name and prints out “Hello “ <user’s name>.
Write a program that asks for a number between 1 and 100, then prints the number times 3.
Write a program that asks for two number between 1 and 10, then prints the first number divided by the second.