Example should have been given in class 1. Don`t forget to declare a random number generator and to instantiate it (i.e. new it) 1. To get a random number between...
Methods: Arithmetic Quizzer Learning Objective(s) 1 Reinforce repetition 1 Reinforce methods Overview of the Program Write a program that will quiz the user...
Methods: Calendar Learning Objective(s) 1 Reinforce repetition 1 Learn to use methods 1 Learn to manipulate strings Overview of the Program Time for something...
Displaying a month Display the name of the month (it need not be centered) Print enough blanks for the days being skipped to get to the first day of the...
Help with proportional spacing Here are two nice resources: Console Input/Output in Java (Chapter 3 of Let Us Java) https://docs.oracle.com/javase/tutorial...
Program Design Standard stuff will be assumed for now on. 1. Declare variables 1. Prompt user for the first string 1. Get a valid response from the user and...
getValidResponse This is a loop using a priming read and isValid. More is done below (you might need to scroll) get a string from the user while it is...
Help on isValid Use a constant for the required length of a string if the string sent the method is not the right length, return false Assume the string...
Methods: Tools to help for the mastermind game Learning Objective(s) 1 Reinforce repetition 1 Learn to use methods 1 Learn to manipulate strings Overview...
Help on isValidColor A color is valid in the argument is (i.e. ) an `r`, a `b`, a `g`, or a `y`. In these cases you want to return true. Otherwise you want to...
Repetition, files, and Colors Learning Objective(s) 1 Reinforce repetition 1 Learn to use for statement 1 Learn to read from a file Overview of the Program...
Second help for knowing where to start: Carry out the process on a piece of paper. I will demonstrate: 1. get a number from the file (say 1) 1. get a number...
File problems 1. Don`t forget that the main needs to throw IOException 1. You need your imports 1. Check to make sure your code is very similar to a class...
Too many lines of output The obvious statement is that there are too many System.out.print or System.out.println commands or they are execute too many times. The most...
How to start and not be overwhelmed Build the program in stages and get it to `work` at each stage before moving on. Suggested stages: 1. Main components (including...
First Program Learning Objective(s) 1. Get the environment up and working 1. Enter your first program Overview of the Program This lab has two parts. Part...
Selection and Color Matching Learning Objective(s) 1 Learn to use the if statement 1 Learn to use constants 1 Write your first program on your own Overview...
How to debug your program 1. get it to compile 1. Comment out all code but your first loop that gets a valid input 1. Have it output the number when done...
Getting zeros for all my output 1. A percentage is a floating number, so you need to do floating point arithmetic. 1. Don`t make your counters floating point...
Hint for code getting too complex 1. `Write` down the four different output statements you would need to make. 1. Add a comment to each statement that explains...
Because all these are situations are mutually exclusive, you do not need to nest any statement. Neither do you need an else. However, you can use them if it makes...
Hint for Lab 2 on how to start with selection 1. Write a single statement to determine if all the colors are blue. 1. Use that as a pattern for the other colors...
Acceptable Online Resources for CSC 121 Overview This course primarily about developing skills not about finding the right answer. Knowledge will be gained...
Graphs and Coloring Coloring a graph is the idea of assigning each node a different color than any of its neighbors. It can be a very complex problem (see https:...
Your own project Objectives 1. Demonstrate all you have learned this semester 1. Have an opportunity to do things you want 1. Be creative Assignment...