CS 1110:

Computer Science I

Spring 2014

Department of Computer Science

Western Michigan University

 

 

 

Dates

Lecture Topics

Programs and Instructions

.java Files 

-1-

01/09/14

JDK 7 (Java Development Kit)
NetBeans IDE 7.0.1 (Integrated Development Environment)

link to download and install both
instructions to download, compile and run a Java project HelloWorld.zip
Read Chapter 1 (Slides_Ch_01)

HelloWorld

Payroll

-2-

01/14/14

Print

Println

Comments

Variables and Literals

Data types and their conversion

Operators

Constants

Strings

Read Chapter 2(Slides_Ch_02)

An Overview of Chapter 2

Literals

Tabs

Wages

IntegerVariables

Payroll

Scope

StringLength

StringMethods

AverageScore

-3-

01/16/14

Scanner

JOptionPane

boolean Variables

char Variables

Task to do: BigCaesarsPizzaBill.zip

ReadFromConsole

PayrollDialog

-4-

01/21/14

if / if-else / nested if-else

logical and conditional operators

Read Chapter 3.1 – 3.5 (Slides Ch 03)

In Class Activity: eLearning Dropbox Lecture_04 (download, complete & submit)

Task to do: LeapYearCalculator.zip (download & complete this app)

An Overview of Boolean Expressions

AverageScore

Division

LoanQualifier

LogicalAnd

-5-

01/23/14

String’s Methods, printf

Methods

Read Chapter 4 (Slides Ch_04)

An Overview of StringMethods

An Overview of Methods

PrintDemo

CompareStrings

-6-

01/28/14

Format Class

Switch

while loop

Quiz-1

Read Chapter 3 3.9 Switch statement

Read Chapter 5 5.1 – 5.2 (Slides Ch_05) while loop

Format1

Switch Demo

Increment-Decrement

While Loop

-7-

01/30/14

Do while loop

For loop

Quiz-2

Read Chapter 5.3 – 5.9

Clock

SoccerPoints

Squares

TestAverage2

-8-

02/04/14

Review

RunningTotalNotes

In Class Activity: eLearning Dropbox Lecture_08

DataValidation

DataValidationWin

RunningTotal

-9-

02/06/14

First Exam

 

 

-10-

02/11/14

Random Generator

Methods

Random Number

Coin example (in class)

ValueReturn

SimpleMethod

ReturnString

PassByValue

PassAve

LoopCall

DeepAndDeeper

-11-

02/13/14

For loop, if, else if, switch, nested loops

Task to do:  Banner Application (Description, Letters) (complete & submit)

 

 

-12-

02/18/2014

Overloaded Methods, RETURN, final Variables

Task to do: Paint Job Estimator  (complete & submit) eLearning Lecture_12

Overloaded Methods

Return does 2 things

In class example (Find Area)

 

-13-

02/20/2014

Arrays

Read Chapter 8 (Slides Ch_08)

Quiz-3

ArrayDemo2

InvalidSubscript

ArrayInitialization

SameArray

CopyArray

-14-

02/25/2014

Arrays algorithms

Special for loop

Arrays and Methods

Fill array using calculations

Compare 2 Arrays

Find Maximum

Task to do: Letter Count (ASCII Table) (complete & submit) eLearning

 

-15-

02/27/2014

Arrays,

Swap  elements of Arrays

Reverse an Array 

Shift Array to the Left

Two-Dimensional Array

Quiz-4

Read An Overview of Arrays

Task to do: ArrayEtudes (complete & submit) eLearning

 

-16-

03/11/2014

ArrayList Class

Search an Array to find a specified target

-          Linear Search (can do any array)

-          Binary Search (needs an ORDERED array)

Searching Arrays

 

-17-

03/13/2014

Sorting Arrays, Big Oh

Read BigPictureSorts, Sorting & BigOh

Bubble Sort (link animation)

Insertion Sort (link animation)

Selection Sort (link animation)

 

-18-

03/18/2014

Review Exam II, Questions

 

 

-19-

03/20/2014

Second Exam

 

 

-20-

03-25-2014

File Input & Output

Read 5.10

Files to use with ReadTilEoF and ReportFromFiles ( Salaries.txt  Names.txt  MyCourses.txt)

WriteToAFile

FilePath

AppendToAFile

RepotFromFiles 

ReadTilEoF

-21-

03-27-2014

File Input & Output

Read: File IO Summary

 

 

-22-

04-1-2014

Classes

Quiz-5

Read: Chapter 6 (Slides Ch_6)

To Do: ContactsProgram.zip

TabletProgram

-23-

04-3-2014

Classes, UML Diagram, Methods, Arrays

Activity in Class    (Robot)

 

 

-24-

04-08-2014

Classes as Argument, Methods and Arrays of Objects

 

 

 

-25-

04-10-2014

Handling Exceptions, Creating your own Exception Class

Read: Exceptions Slides: (Exceptions Slides)

ExceptioDate

-26-

04-15-2014

GUI

Read: Slides: (GUI Slides)

 

 

 

-27-

04-17-2014

GUI, Wrapper Classes  Review & Questions

Read Slides (Wrapper Slides)

 

 

 

4-21-2014

FINAL EXAM

 

 

 

 

Course Admin

Lecture instructors

   David Rodriguez-Velazquez (david.rodriguez-velazquez@wmich.edu)

    Lecture hours: Tues/Thurs  8:30-09:45 am

    Office hours:   Tues/Thurs  9:45-10:45am (in room C-210)

Other lectures

    Prof. Don Nelson

      Lecture hours: Mon/Wes  1:30-2:45 pm

 

                             Mon/Wes  4:30-5:45 pm

     Office hours:    Mon/Wes   3:00-3:45pm (in room B-246)

                             Tues         11:00-NOON  (in room B-246)

Lab instructors

Fola Olagbemi (omofolakunmiel.olagbemi@wmich.edu)

Office hours: Mon 9:15-11:15am @ C224

Mohammad Salahuddin (mohammad.salahuddin@wmich.edu)

Office hours:  Wed 10:20-11:20 @ C208

Madhuri Revalla (madhuri.revalla@wmich.edu)

Office hours:  Tue 4:30 – 6:30 pm @ C224

 

Vinay Gavirangaswamy (vinay.b.gavirangaswamy@wmich.edu)

Office hours: Fri 9:00-11:00 @ C-228

NOTE: Students are not restricted to seeing only the teaching assistant assigned to their lab.

Course  Syllabus  contains information on catalog description,  pre-/co-requisites, learning outcomes,    course activities (assignments, exams, attendance, participation),
    final grade calculation, policies for late/missed assignments,
    academic honesty, classroom etiquette 

 

Dates to note
01/10/14 (Friday)   - Drop/add ends
01/20/14 (Friday)   - Day recess (Dr. Martin Luther King Jr.)
02/06/14 (Thursday) - Exam 1
02/09/14 (Sunday)   - First work grades due
02/28/14 (Friday)     - Spirit Day
03/03-03/10              - Spring Break

03/10/14 (Monday)   - Midterm grades due
03/17/14 (Monday)   - Last day to withdraw

03/20/14 (Thursday) - Exam 2

04/21/14 (Monday)   - Final exam 10:15 am-12:15 pm

04/29/14 (Tuesday )  - Final grades due

 

help for Java/CS1110 (room C-208)
    [You need your "CS account" info to use a C-208 machine].
   Tutors: general updated schedule at   http://www.wmich.edu/step/tutor.php

Textbook
Starting Out with Java – From Control Structures through Objects **CS1110 TextBook**.
 by Tony Gaddis, Pearson Custom (2013)
ISBN 13: 978-1-269-04609-1   ISBN 10:1-269-04609-8

Zipping your project/app (folder of files/folders)
To zip a project folder using 7-zip (installed on lab machines)
      - right-click the folder & select 7-zip / Add to archive
           [free download of 7-zip www.7-zip.org, it you want it]
      - change file name extension to .zip (for asgn submission), click OK
          [E-Learning only accepts .zip files, not  .7z files]
OR zip using Windows
      - right-click the folder & select Send to / Compressed  (zipped) Folder
To unzip a project/app
    - right-click the zipped folder & select 7-zip / Extract here

Saving your project (& moving it to/from another computer)
1)  use a flash drive
2)  zip the project folder & email it (as an attachment) to yourself
3)  use the CEAS storage drive - your "K-drive"
      (formerly called your "I-drive") - see CEASstorageDrive.txt

Submitting assignments using E-Learning (in gowmu)
    see:  HowToSubmit.txt
    [Zipped file must have .zip extension, not .7z extension].

help for general CS/computer/software issues
    CS Student Computer Support (room C-208)
    CS Department SysAdmin (room C-218)
    WMU Computer Help Desk (main campus)

CS Undergraduate Advising
    Dr. Kerstetter & Dr. Kaminski
    Call (276-3270) or visit (E-102) CEAS Advising for appointment

WMU Computer-related clubs
     WMU Computer Club (main campus)
            (weekly meetings, bi-weekly presentations)
      WMU Red Button Games Club  (see facebook)