Northern Virginia Community College

Summer 2011

Syllabus **

ITP 120 Java Programming I

4 credits

**Any part of this syllabus may be changed at anytime during the course by decision of the instructor.

Instructor Information

 

Instructor:   Barbara Holt

 

Email:        bholt@nvcc.edu

 

Mailbox::    Room AA-362 Bisdorf

 

Phone:       (703) 845-6311 – See Blackboard for course for more numbers to call

 

Fax:            (703) 845-6009

 

Website:     www.nvcc.edu/home/bholt

 

Office Hours:  30 minutes before each class in the classroom as well as well as by appointment at a location convenient to the instructor AND the student.   Please email or CALL for an appointment using the phone number found on the Blackboard page for this course. 

 

Course Description

 

Provides instruction in fundamentals of object-oriented programming using Java. Emphasis is on program construction, algorithm development, coding, debugging, and documentation of console and graphical user interface applications.

 

Overall Course Objective

To provide the student with a general working knowledge of program development using the Java programming language, including the development of Java classes and application.

Specific Objectives: Upon completion of this course, the student should be able to:

    • Code stand-alone applications
    • Create and use basic graphical user interface components, and process keyboard and mouse inputs
    • Use Java control structures and recursive methods
    • Create, use, and process Java String objects and arrays
    • Design and implement basic class hierarchies, using inheritance and polymorphism
    • Design and implement Java classes to implement data structures

 

 

Course Dates for ITP 120  61A

Start Date: 

 

Last Date to Add without permission

 

Last Date to Add with permission

 

Last Date to Withdraw with refund or change to AUDIT:

 

Last Date to Withdraw without grade penalty

 

Test Date 

 

Last Day of Class

 

 

May 17

 

May 16-18

 

May 19-23

 

May 24

 

June 18

 

July 5

 

July 7

Textbook

 

Java: How to Program 8th  Edition  by  Harvey M. Deitel, Paul J. Deitel, 2007,

Prentice Hall Publishers

 

ISBN-10: 0136053068

ISBN-13: 978-0136053064

 

For an ebook  go to Ebook for ITP 120  and  type "Deitel Java" to search for the text title.

 

 

Prerequisites

 

Successful completion of ITP 100 or equivalent experience with object oriented concepts and programming structures. It is assumed that students possess college level reading, writing, and computational skills and are familiar with Microsoft Windows (XP, Vista or Windows 7) operating system.

 

Course Grades

 

Student grades are determined based upon exams, and a combination of projects(also called assignment or homework). All projects will have due dates and will only be accepted up to 1 week after the due date.  A grace period of 2 days may be granted by instructor permission.  After that they will be accepted up until 1 week late, but  will automatically lose 10%.  Assignment 6  NO GRACE OR LATE submission accepted.  Students are required to contact the instructor BEFORE the due date with any issues that might arise and may be asked to present proof of the circumstances.

 

Projects 48 %  ( 6 assignments at 8% each)

Exam(s) 52%

 

Letter grades:  A 90-100 ;   B 80-89 ;   C 70-79 ;   D 60-69 ;   F < 60 

 

Exams will be proctored but will be open book, open notes, and open returned projects.  A missed exam cannot be made up. 

 

The .java files that apply to each project are to be attached to an email addressed  to the instructor.  The sent date on the email is the submission date.  Some projects WILL have more than one file, others will have ONLY 1 file to submit.

 

Incompletes

 

Student who cannot complete all of the assigned course work in a timely fashion may request an incomplete if the following preconditions are met. 

1) the student has completed over 50% of the course work with the grade of "C" or better,

 

2) the failure to complete the assigned work is not due to the fault of the student (as determined by the instructor and the dean of the department). Be aware that the instructor must be  thoroughly satisfied himself as well as the assistant dean of the department that the student has/had no other course of action. (Please note that planning a trip that conflicts with the date of the exam is not an acceptable excuse! nor is, for that matter, someone else planning or dictating the dates of the trip for you!)

 

Incompletes must be completed at the end of the college session whether it be Fall, Winter, or Summer that follows.  Student who have not completed the required work will be assigned grades of F for the course or the grade earned at the end of the course.

 

 

Attendance Policy

 

All students must attend at least one class during the first week.  If there is an issue, you MUST contact the instructor PRIOR to the end of the first week in order not to be removed from the course for non-attendance.  STUDENTS WHO WISH TO WORK ON THE COURSE ON THEIR OWN MUST ALSO CONTACT THE INSTRUCTOR AS WELL.  Be sure you know the important dates for the 8 week summer session.  They are found on this webpage above.  Because this is an 8 week session, it is not found in the general course schedule.

 

Attendance is taken at every class meeting.  Students who wish to work on their own MUST make prior arrangements with the instructor. Any student who has not turned in two consecutive assignments within the given dates and grace period will be withdrawn without refund. The only exceptions are with prior authorization from the instructor.

 

Cell phones, audible pagers, MP3 players and other electronic devices cannot be used during class.  These electronic devices will be taken from the student and returned at the end of the class.  Students who persist in using these devices will be asked to leave the classroom!

 

Academic Policies

 

Students are responsible for withdrawing from the course by the deadlines established by the college if they feel they can not complete the course normally.  During the first 60% of the course duration the student may withdraw himself from a class with a grade of "W". The system will grant a grade of "F" if this action is initiated after the withdraw deadline(after the 60% of the course duration.)  See important dates above.

 

Honor code violations such as cheating, plagiarism, and actions contrary to the academic environment will be addressed in accordance with established NVCC policies and procedures.

 

Students are not permitted to turn in all work from the course during the last two weeks and will receive a grade of F or whatever grade has been earned before late work was received.

 

Emergencies

 

Please consult the diagram posted in every classroom on campus and familiarize yourself with the shortest evacuation routes for the building. In the event of an emergency, leave the building quickly and calmly via the appropriate exit(s), and re-assemble in the far end of the parking lot in front of Bisdorf building. The instructors will do a head count to ensure that no one has been left in the building. Persons with disabilities will be taken to designated evacuation points where they will be assisted by trained personnel.

 

Accommodations for Students with Disabilities

 

In compliance with the Americans with Disabilities Act (ADA), all qualified students enrolled in this course are entitled to “reasonable accommodations.” Please notify the instructor during the first week of class of any accommodations needed for the course. The instructor for this section is a licensed learning disabilities teacher.  However, you may be advised to contact the Special Needs Team (703) 845-6477, Bisdorf room 148, to complete a Disability Data Sheet. Please ask the trained personnel there to specify in detail how your instructor may accommodate you properly regarding your disability. The general disability from supplied by the Special Needs Team will not be accepted anymore if the instructor is not informed how the student's needs may be addressed properly.

 

Course Information

 

The first two classes of the course will have more presentation of concepts and sample code as well as guided computer work in JAVA than the others.  Beginning the 2nd week of the course each class session will have approximately 1 hour and 50 minutes of lecture/presentation of OOPs and JAVA concepts and sample code and the remaining class time will be used for lab. The instructor will be available for individual instruction during that time as well.

 

The last class meeting

Class Schedule-subject to change by instructor

 

Date

Topic

Chapter

May 17

Object Oriented Concepts

Basic Java Concepts

Compiling and running programs

Math operators,

Lab Orientation Using TextPad

 

1 and 2

May 19

Classes and Objects-creating a new class and an application to test it

 

3

May 24

Control Structures Part I – use of If/Else and While

 

4

May 26

Control Structures-other looping structures (for)and decision structures (switch)

 

5

May 31

Methods

 

6

June 2

Arrays

 

7

June 9

Classes and objects

Introduction to API and usage examples

 

8

June 14

Object programming-Inheritance

 

9

June 16

Object programming- Polymorphism

 

10

June 21

GUI Components

 

14

June 23

More GUI Components

15

 

June 28

Exception handling/

11

 

June 30

 

Exception handling/Review

 

1-15 except 12, 13

July 5th

Class Test

1-15 except 12, 13

 

 

Assignments for Summer 2011  (All will be posted by the start of the course)

 

REMEMBER / REREAD  the submission rules above under Course Grades

 

Assignments in paragraph form on Website

 

Assignment 1 

a.  2.33 page 69

Use the data given to test the output

weightInPounds = 150

heightInInches = 68

 

 

b.  2.35 page 70

Use the data given to determine the cost of one user’s commute per day. 

Cost per gallon of gasoline  4.00

Total miles driven 40

Average miles per gallon  25

Parking fees per day  5.00

Tolls per day  3.00 each way or 6.00 round trip

Due Date:  May 26th 

 

Assignment 2 

a.      3.14 page 101 submit the class file and the application file

Use the following data to test your project

      First name Sam

      Last name Smith

      Monthly salary  1200

 

      First name Sarah

      Lastname Henderson

      Monthly salary 1500

 

b.      4.20 page 146 submit the application file only

Sample data:

Hours worked:  35

Hourly rate:  7.00

 

Hours worked  45

Hourly rate:  15.00

 

Hours worked 25

Hourly rate:  10.00

 

Hint:  Use a while loop in which there is an if/else statement to determine

         Whether the regular pay calculation or the overtime pay calculation should be

         Performed.

c.      Using the example on page 135, submit both the class file and the application file.  The project must have the following change:

      Rather than the X filling the entire screen, make it ˝ that size by dividing the
      appropriate dimensions by 2.

Due Date:  June 2

 

Assignment 3 

Due Date:  June 9

 

Assignment 3

a.      Create a program which displays a menu of book choices.  Have the user enter the number of the selection. Then print out the price of the book and the name of the book selected.  Continue to offer the user selections until the users chooses to stop.  Use the sample presented in class (food menu) as a guideline for your project.  This project uses the if, switch, and while structures as well as GUI using the API. 

The books should be:

 

Java How to Program 9th edition

128.00

Starting out with Alice

45.00

The Object Oriented Thought Process

92.00

 

b.  What does the following program segment do?  You will need to enter it into a program and submit the entire program to indicate what it does.

for(i=1;i<=5;i++)

{//being outer for loop

for (j=1;j<=3;j++)

{//begin inner for loop

System.out.print( ‘*’ );

System.out.println();

}//end inner loop

      System.out.println();

      }// end outer loop

 

c.  6.8 on page 234 with some changes.

A parking garage charges a $2.00 minimum fee to park for up to 3 hours.  The garage charges an adiitonal $.50 for each hour orpart therof in excess of the 3 hours.  That maximum charge for any given 24 hour period is $10.00.  Assume that no car parks for longer than 24 hours.  Wirte an application that calculates and displays the parking charges for each customer who parked in the garage yesterday.  Enter the hours parked and display the charge for the current customer and also calculate and display the accumulated (running) total of yesterdays receipts (for each customer add that amount to a ‘running total’).  It should use the method calculateCharges() to determine the charge for each customer and another method called accumulateTotal() to add the current amount to the running total.  (You will have 3 methods in the .java file…a main(), a calculateCharges(), and an accumulateTotal()).

 

 

 

 

Assignment 4  To be posted

Due Date:  June 16

 

Assignment 5  To be posted

Due Date:  June 23

 

Assignment 6  NO GRACE OR LATE submission accepted  To be posted

Due Date:  June 30

 

Course Resources

 

API website:  http://download.oracle.com/javase/6/docs/api/index.html

 

Deitel text website:  http://deitel.com/