Difference between revisions of "IB Computer Science I"

From WLCS
(Redirected page to IB Computer Science 1)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Monday (5/3/10) ==
+
#REDIRECT [[IB Computer Science 1]]
'''Warmup:'''
 
# Create a new file named Warmup_5_3_10.java
 
# Prompt the user for an integer and store it in a variable n
 
# Create a boolean variable named isPrime that starts with true
 
# Write a for loop that starts at 2 and goes up to n
 
## Check if n can be evenly divided by the counter variable (Hint: n % x == 0)
 
##* If n divides the counter variable, then change isPrime to false
 
# Outside after the loop, check if isPrime is true
 
#* Print out a message that says that "the number n is prime"
 
# ...otherwise, print out a message that says it is not
 
 
 
'''Agenda:'''
 
* Introduction to classes
 
* Look at [[Media:Circle.java]]
 
* Create your own Rectangle class and put it into a file named Rectangle.java
 
* Test out your Rectangle class by creating another filed named RectangleMain.java
 
** Inside RectangleMain.java will be your main() method
 
** Use [[Media:CircleMain.java]] as a guide
 
* [[Creature Combat Game]]
 
 
 
'''Be sure you have demoed or can demo the following:'''
 
* [[Quadratic Formula Assignment]]
 
* [[MPAA calculator assignment]]
 
* [[Guessing Game Assignment]] (HINT: Look up online how to do random numbers in Java)
 
* [[Print Shapes Exercises]]
 
* [[Printing Initials Assignment]]
 
* [[Looping Exercises]]
 
 
 
== Archives ==
 
* [[IBCS1 - May]]
 
* [[IBCS1 - April]]
 
* [[IBCS1 - March]]
 
* [[IBCS1 - February]]
 
* [[IBCS1 - January]]
 
* [[IBCS1 - December]]
 
* [[IBCS1 - November]]
 
* [[IBCS1 - October]]
 
* [[IBCS1 - September]]
 

Latest revision as of 11:19, 24 August 2010