CS 1120 - Spring 2009

Lecture Notes


04/06/2009
Lecture Slides Searching and Sorting
Excercise  None
Reading Assignment Chapter 25

03/30/2009
Lecture Slides Generics
Excercise  Write a generic method to find the maximal value in an array
Reading Assignment Chapter 27

03/23/2009
Lecture Slides Data Structures --II
Excercise  None
Reading Assignment Sections 26.5-26.7

03/16/2009
Lecture Slides Data Structures
Excercise  Mimic class List to develop DoublyLinkedList
Reading Assignment Sections 26.1-26.4

03/09/2009
Review for Exam 2 to be held on 03/11/2009.

02/25/2009
Lecture Slides Data Structures
Excercise  None
Reading Assignment Sections 26.1-26.4

02/23/2009
Lecture Slides Regular Expresions Rule Summary Reference Sheet
Files and Streams
Excercise  1. Create a word file MyFile.doc in  your home directory with anything you would like to write
2. Write a C# program to read the contents and display them on console
3. After reading it, use C# program to delete the file
Reading Assignment Chapter 19

02/17/2009
Lecture Slides Strings, Characters and Regular Expressions
Excercise  Find Canadian zip code in an article
Reading Assignment Sections 18.1-9, 18.14, 18.16

02/15/2009
Lecture Slides Exception Handling - II
Excercise  Given two user inputs A and B, write a program to compute A%B (you need to consider A, B may not be integers, and B can be 0)
Reading Assignment Textbook Chapter 13

02/11/2009
Lecture Slides Polymorphism, Interface & Operator Overloading
Exception Handling - I (updated)
Excercise  1. Consider class Money with two attributes: dollars and cents. Overload + and ==
Reading Assignment Textbook Chapter 12

02/09/2009

In order to prepare you for the assignments, Stephany will give a lecture on Windows Form Applications, with In-class activity for Windows Forms.

02/02/2009

The first in-class exam will be held on 2/4 (10:30-11:45AM, C-224). The exam will cover all the topics upto Chapter 12, but NOT including operator overloading and interface. Stephany, the instructor of another CS1120 section, will give a review class today. Her course website is http://www.cs.wmich.edu/~scoffman/cs1120/index.html. She holds extra office hours this week at B-259: M 3:30 - 4:30pm,  T 1:30-2:30 p.m. and W 2:30-4:30 p.m.

01/27/2009
Lecture Slides Polymorphism, Interface & Operator Overloading
Excercise  None
Reading Assignment Textbook Chapter 12


01/21/2009 and 01/26/2009
Lecture Slides Inheritance
Excercise  Create a base class "WMU_Member" with attributes SSN and name, and two derived classes "Faculty" and "Student"
Reading Assignment Textbook Chapter 11

01/14/2009
Lecture Slides Recursion
Excercise  Write a program to take user input N, and compute 1+2+3+....+N. You cannot use loop.
Reading Assignment Textbook 7.13

01/12/2009
Lecture Slides Review of CS 1110 notes 
            Classes I

Classes II

Strings and Characters (slides courtesy of Dr. Donald Nelson)

Basic File Processing(slides courtesy of Dr. Donald Nelson)

Excercise  1. Create a text file Circle.txt with three lines such that each line contains an integer value.
2. Read Circle.txt, create an circle object with X-coordiate, Y-coordiate and radius read from the 3 lines in Circle.txt
Reading Assignment Chapter 4, 10.1-10.410.7, 10.8, 10.10, 19.1-19.6

01/07/2009
Lecture Slides Review of CS 1110 notes (slides courtesy of Dr. Donald Nelson)
            Control Structures

Types and Passing Argumen

Arrays

Sorting and Multi-subscripted Arrays

Excercise  Create a 5x10 two-dimensioanl int array with random values between 1 and 6, and then display the values of this array on the console
Reading Assignment C# Refresher Notes (courtesy of Ms. Adawia Al-Alawneh) —  best viewed with Mozilla Firefox browser

General Course Information

Course Syllabus   (contains information on . . .)
            [Your lecture instructor may have additional
              specific policies for his/her section].
Lab Schedule
catalog description,  prerequisites/corequisites, learning outcomes,
course activities (assignments, exams, attendance, lecture-participation),
final grade calculation, policies for late/missed assignments,
academic honesty, classroom etiquette
Plagiarism detector system used on assignments ! ! !
     Academic dishonesty will not be tolerated.
     Read the syllabus for further details.
Do not copy someone's assignment.
Do not allow someone to copy your assignment.
Do not "work together" on an assignment.
Dates to note
Jan 9 (Fri, 5pm) - last day of drops/adds
Jan 19  (Mon) -Martin Luthor King Day - no WMU classes
Feb 9-12 (week) approximately - Exam 1 in Lecture (see instructor for exact date)
Feb 16-Mar 8 - midterm grades available (see your instructor for exact date)
Feb 27 (Fri) - Spirit Day - no WMU classes
March 2-6 (Mon-Fri) - Spring Break - no WMU classes
March 16 (Mon, 5pm) - last day to withdraw from a class (to get a "W")
March 23-27 (week) approximately - Exam 2 in Lecture (see instructor for exact date)
April 14 (Tues) - CEAS Senior Design Day
April 20-24  (Mon-Fri) - Final Exam Week - no regular WMU classes or labs
Textbook


Visual C# 2008:  How To Program  (3rd ed.)
     
Deitel & Deitel,      Pearson Education (Prentice Hall) 2008
      ISBN:  0-13-605322-X    (also 978-0-13-605322-4)

Getting Help

CS1120 / C#  Open Lab Hours (for 1-on-1 help)
      with the regular cs1120 Lab Instructors
      [You may visit any of the 3 instructors, not just your own].
C# tutor: Corey McClain
room: C208
Monday's 12:30-4:30pm
Tuesday's 12:30-2:30pm

Visual Studio 2008 software
installed in the regular cs1120 lab (room C-224),  the CEAS computer lab,
    the CS computer lab (room C-208)
should be installed in the university computer labs at the UCC & Bernhard
Free C# software  to install on YOUR computer - either:
      1)  Microsoft Visual C# 2008 Express Edition




      2)  Microsoft Visual Studio 2008 (including C# 2008)




It's on the DVD the comes with the textbook
      OR download it from  www.microsoft.com/express
      [NOTE:  if you don't have much space on your hard drive,
            you don't have to install the MSDN part].
      [See page xliii in book for installation help, if needed].
Get it from the staff in room C-208 (CEAS/Parkview).
      - you must bring your "CS account" information
           (given out in lecture Mon/Tues January 12/13)
      - bring a blank DVD
Submitting your assignments using E-Learning (in gowmu)
submission instructions for CS1110 and CS1120:  HowToSubmit
      [Zipped file must have .zip extension, not .7z extension]
Zipping your application solution (folder of files/folders) Download 7-zip software (free) from   www.7-zip.org & install it.
      [It's already installed on the machines in the lab].
To zip a project folder:
      - right-click the folder & select 7-zip / Add to archive,
      - change file name extension to .zip (for asgn submission), click OK
Saving your work (to move it from 1 computer to another)

1)  use your "I-drive" (= CEAS web-based storage CAE server)
       [You'll need an internet connection for uploading & downloading].
     
- zip the project folder
      - in your browser's address bar type:
                   http://files.ceas.wmich.edu
                   [1st time, if "certificate" dialog box pops up, accept it . . .]
      - login using your wmich account
      - browse to find the zipped file & click Upload
      - log out
2)  zip the project folder and email it (as an attachment) to yourself
3)  use a flash drive
Help for general CS / computer / software issues
Student Computer Support (room C-208 CEAS/Parkview)
(WMU Computer Club)
Help via emails Please send e-mail to me or lab instructors if you have important and urgent matters. Email your lab instructors if you have questions about your assignments, and email me if you have course-related questions.
Each message must have a descriptive subject with the indicated prefix:
CS1120-S09--<your last name>: <descriptive subject here>

Course (Lecture) Instructors

Instructor
Dr. James Yang Dr. Leszek Lilien  Ms. Stephany Coffwan-Wolph
Lecture section 
MW 10:30 - 11:45 (C-224) TR  10 :00 – 11 :15 (C-224) MW 16:30 - 17:45 (C-227)
Email
zijiang.yang@wmich.edu llilien@cs.wmich.edu scoffman@cs.wmich.edu
Office (CEAS/Parkview)
B-257 B-249
B-259
Office Hours
MW 11:45 - 12:45 T 12:00-1:00pm and R 6:15-7:15pm T 1:30-2:30 p.m. and W 2:30-4:30 p.m
Instructor's class link
This page
http://www.cs.wmich.edu/~llilien/teaching/2009spr/cs1120/ http://www.cs.wmich.edu/~scoffman/cs1120/index.html


Lab Instructors

Lab Instructor
Mr. Jeremy Mange
Mr. Dianyang Hua
Mr. Dianyang Hua
Lab sections (in C-224)
CRN 12921 M 8:30-10:10
CRN 12923 W 12:30-14:10
CRN 12918 15:30-17:10
Email
jbmange@cs.wmich.edu
danyang.hua@wmich.edu
danyang.hua@wmich.edu
Open Lab Hours
      [visit ANY lab instructor]
C210
M/T/Th 10:30-12:30

C210
W 14:10-16:30
Th 13:30-15:30
C210
W 14:10-16:30
Th 13:30-15:30