Here's your first assignment.
Here's your second assignment (due June 16th, 2009).
Here's your third assignment.
Here's your fourth assignment. (Due July 7th, 2009).
Monday, January 19, 2009
Wednesday, January 14, 2009
NumberGuesser
Ask the user for a number. If the user's number is yours (you picked it earlier!) thank the user for playing. Otherwise tell the user if the number they guessed is higher or lower than the number you have picked!
Create a Java program to give you acceptable age ranges
Take your age divide by two and add seven...this is the upper and lower bound of the ages you can date.
http://www.xkcd.com/314/
Here's one solution:
int myAge = 20;
double acceptableRange = (myAge/2)+7;
// System.out.println(acceptableRange);
double difference = myAge - acceptableRange;
// System.out.println(difference + " is the difference");
System.out.println("You are " + myAge + " years old");
System.out.println("The oldest you can date is "+ (myAge + difference));
System.out.println("The youngest you can date is " + acceptableRange);
http://www.xkcd.com/314/
Here's one solution:
int myAge = 20;
double acceptableRange = (myAge/2)+7;
// System.out.println(acceptableRange);
double difference = myAge - acceptableRange;
// System.out.println(difference + " is the difference");
System.out.println("You are " + myAge + " years old");
System.out.println("The oldest you can date is "+ (myAge + difference));
System.out.println("The youngest you can date is " + acceptableRange);
Lemonade Stand!
What classes will you need for a Java program representing a Lemonade Stand?
What attributes will each class need?
What methods will each class need?
Please write it on your blog as follows:
Class A
Attributes
Methods
Class B
Attributes
Methods
So on...
What attributes will each class need?
What methods will each class need?
Please write it on your blog as follows:
Class A
Attributes
Methods
Class B
Attributes
Methods
So on...
Monday, January 12, 2009
Once you get everything installed...
Try to create a program that will calculate the area of a rectangle given the length and width. Not for a grade, just to try it.
First post!!!
- Describe the difference between a class and object in Java.
- What is a method?
- What is a variable?
When you are finished, add your information here:
Wednesday, January 7, 2009
Welcome to class!
Notice the links to the right of this post. There will find the syllabus, class notes, a great review about classes and objects, an installation guide, a reference guide and many other great links.
Also check out previous posts from other semesters. It may help you get an idea for what we'll do in this class. Of course, each class is different.
I am very excited about this course.
Things to do:
Also check out previous posts from other semesters. It may help you get an idea for what we'll do in this class. Of course, each class is different.
I am very excited about this course.
Things to do:
Subscribe to:
Posts (Atom)
