Methods in java - terminology,
- method headers - return types - formal and actual parameters - pass by value - method calls from one method to another - programs - triangle, square programs using methods. Test next week - up through methods. Random numbers in java
Using static math class method random Using non static method from Random class. Instantiation of Random class object Using a cast to round random numbers Assignment - guessing game - random numbers using both the Random and Math classes More practice with loops.
Math functions in java - java Math class. basic functions - sqrt, min, max, floor, ceil, pow, abs . Terminology. Exception error - divide by zero, NAN message Practice with loops - using loops to find factors of a number -
Assignment - finding number of prime numbers between two numbers Test on Friday - Basic Java syntax and usage through if and else statements - no loops on test 1. Good luck! |