ACS-1903-001 Programming 1

 

TERM marks… here

Grades …here

 

 

 

 

Java    Tuesday/Thursday

Ron McFadyen,  3D21

ron.mcfadyen@gmail.com

 

 

Sept 3 Tuesday

Course Outline

Text  (pdf)

Sample programs (zip)

Sept 5 Thursday

3C13 lab, obtaining access

Available from 7am… Some exceptions Access cards… see this info

 

Ch 1 Introduction to BlueJ & Java

Ch 2 Basics Ch2A, Ch2B

Sept 6 Friday

Lab 1 (available Sept5 evening)

 

3 sample programs

Using Scanner

KelvinToFahrenheitUsingScanner.java

Using JOptionPane

DisplayInitialsUsingJOptionPane.java

CalculateAreaUsingJOptionPaneForInputOutput.java

 

Sept 13 Friday

Lab 2 due Sept 13 by midnight

Sept 17

Ch 3

Compound statements

If statement

While statement

Sept 20 Friday

Lab 3 due Sept 20 by midnight

Sept 24 Tuesday

Ch 3

Nested whiles

For statement

Assignment 1 Due by Friday Oct 4 at 11:59 pm

Sept 26 Thursday

Ch 3

For statement

switch (and condtional operator ch2)

Sept 27 Friday

Lab 4

 

Sample Test

Oct 3 Thursday

TEST

Oct 4 Friday

Lab 5

Oct 8 Tuesday

++

Oct 10

Return tests

·         average 22 out of 40

·         tests not picked up are with ACS secretary

do…while

·         Numbers0To9UsingDoWhile

Methods

·       2 types: void & value-returning

·       read chapter 3

·       examples

o   TimesTable

o   Ch3Q10

o   LetterGradeToNumericGrade

·       Example using Character.getNumericValue (assignment 1)

 

Chapter 5, As time permits:

Random

Character

Scanner

Integer

Math

Oct 11

Lab 6 Friday

Reading week

Oct 22

Character, Scanner, Integer, Math

 

 

Sample answers Oct 3 questions 2,3,4

·       TestA

·       TestB

3 questions from last year’s final

Oct 24

Array lists

Oct 25

Lab 7

Assignment 2 (due Friday Nov 8)

Oct 27

Sample answers selected exercises

 

Important note: Beginning Oct 29 the use of arrays, break, continue

are not permitted on 1903 labs or assignments (unless otherwise noted-see below)

 

You may use Arrays.asList to initialize an ArrayList

e.g.   import java.util.Arrays;

ArrayList<String> stopList =

new ArrayList(Arrays.asList( new String[] {"this","is"}));

 

Oct 29

Review Lab7

Array lists

Assignment 2

 

Oct 31

Sieve example

SieveOfEratosthenes.java

Nov 1

Lab 8

Nov 5

Review Lab 8

·         Sample code

Concept map (1903 topics)

Nov 7

Test

Nov 8

Lab 9

Sample solution

 

Nov 12

Return tests

Test papers are with ACS Secretary

Test Marks to date

Nov 12-28           2 sample questions previous exam

Last topic: designing Java classes

Part 1

o   Notes on Student class

Part 2

Nov 15    Lab 10    

Lab statement

Readme contents

Student class

Nov 19       Lab 10 sample solution

Part 2  Designing classes

Assignment 3

Note that all fields in Product and Category must be private

 

Nov 21     BlueJ’s shapes example

        Sample solutions for Nov 7 test

        Sample: A previous examination in 1903

Sample answer for Library/Member question

Friday Nov 22    Lab 11  last lab

Tues Nov 26        Review Lab 11,  previous examination

Thurs Nov 28      previous examination, last class

                     Assignment 2, part A

                     Sample answer Question 6, Box (Nov 12)

                                 UW’s SET notice

 

Assignment 5 Sample Solution

 

Dec 11 Examination:      6:00pm-9:00pm in Duckworth gym