Beruflich Dokumente
Kultur Dokumente
Base Syllabus
January 2012
Faculty Coordinator:
Dr. Narain Gehani, Junilda Spirollari
Overview
This course is a comprehensive introduction to the Java programming language
teaching writing, testing and debugging of programs. The course has three major
parts. The first part teaches fundamental programming techniques that use
primitive data types, variables, assignments expressions and operators, control
statements, arrays and files I/O. The second part covers testing and debugging and
teaches students how to write programs that work reliably. The third part
introduces object-oriented programming. The course guides students to the
development of comprehensive Java applications.
Prerequisites
Objective
The objective of this course is to teach students how to write, test and debug Java programs so as
to produce reliable applications that meet specified problem requirements.
Suggested Textbook(s)
Introduction to Java Programming 8/E, 2011 by Y. Daniel Liang, Publisher: Pearson, ISBN:
9780132130790
Evaluation
The evaluation will be based on the following course requirements:
Homework
Lab Assignments
Midterm Exams
Final Exam
Participation
Topic
Programming Languages
Compiled vs. interpreted languages
Getting Java and Eclipse
Compiling and running first program
Writing reliable programs
2
Primitive data
Declaration and use of variables
Expressions and operator precedence
Problem: Computing loan payments
Data conversion
Problem: Computing monetary units
String Class
4
5
Ch. 2
Ch. 3, 4
Boolean expressions
Conditional statements (if, if-else, nested if, switch)
Problem: Guessing Birthdays
Problem: Computing Taxes
Problem: Lottery
Loops (while, do-while)
Iterators
Interactive programs
Writing interactive programs
The Scanner class
Ch. 9
Single-dimensional arrays
Problem: Deck of Cards
Multidimensional arrays
Problem: Grading a multiple-choice test
Methods
10
11
11
12
13
Ch. 6, 7
Ch. 5
Ch. 8
Inheritance
Supplementary
material as provided
by instructor
Ch. 11
Exception Handling
Exception Handling overview
Ch. 13
creates a Stock object with the stock symbol JAVA, and the previous closing price of 4.5.
Set a new current price to 4.35 and display the price-change percentage.