IS 451: Introduction to Java

The Islamic Foundation of Greater St. Louis, Saint Louis, Missouri



Best viewed through Internet Explorer because of Word and Powerpoint content.


Index

Lecture Notes
Meeting times, dates, and place
Frequently asked questions
Miscellaneous Information
Useful links

Lecture Notes

Lecture 1


Assignments


Assignment 5:

Programming: Write an interative and recursive method implementation of the fibonacci sequence (described on page 69). The method should take "n" as input and return the nth fibonacci number. Make sure to test you implementations by using an appropriate driver program.
Reading: Chapter 6


Assignment 4:

Programming: 3.13, 3.14, 3.15, 3.16, and 3.17.
Reading: Chapter 4 and 5


Assignment 3:

Programming: 2.7 and 2.8.
Reading: Chapter 3


Assignment 2:

Programming: 1.7 and 1.8.
Reading: Chapter 2


Assignment 1:

Programming: A simple program that prints out your name, phone number, and social security number.


Solutions and code examples

Homeworks

Fibonacci: A program that produces fibonacci numbers (both iteratively and recursively).

3.13: A program that checks if the random integer generated was even or odd.

3.14: A program that determines the maximum of two random integers.
An alternate solution.
Another alternate solution.

3.15: A program that determines the maximum of four random integers.

3.16: A program that determines the decile of a random double.

3.17: A program that input the name of a month, and outputs a month number and the number of days in that month.

2.7: A program that converts from [First Middle Last] to [Last, First M.].

2.8: A program that converts from a two word input to have the correct capitalization.

1.7: A program that converts from celsius to fahrenheit.

1.8: A program that converts from chirps per minute to temperature in fahrenheit.

A simple program that prints out your name, phone number, and social security number.

Quizzes

Quiz 4 : Solution for question 1 and question 2.

Quiz 3 : Solution.

Quiz 2 : Solution.

Quiz 1 : Solution.

Examples


Meeting times, dates, and place

Timing: 10:00am to 12:00pm on Saturday mornings

Dates: May 9 through June 13, 1999

Place: Islamic Foundation of Greater St. Louis


Frequently asked questions


Miscellaneous Information

Instructor: Irfan Pyarali
Office Phone: (314) 935-7492
Home Phone: (314) 993-7114
E-Mail:
irfan@cs.wustl.edu
WWW: http://www.cs.wustl.edu/~irfan

Text Book: Programming with Java
Author: John R. Hubbard
Publisher: McGraw Hill (Schaum's Outlines)
ISBN: 0-07134210-9
Cost: ~$17

Compiler: Java 2 SDK v1.2.1
We'll be using the compiler from Sun which is freely available from: http://www.javasoft.com/products/jdk/1.2/download-windows.html


Useful links

Java Development Kit from Sun

Java Development Kit from Microsoft

Documentation for standard Java packages

The Java Language Specification


Errata