Lecture 001 |
Deb Deppeler |
---|---|
Faculty Associate | Email: deppeler@cs.wisc.edu |
Office: 5376 Computer Sciences, (608) 265-9452 | |
Office Hours: TR 2:45-4:45 PM, and by appointment |
Click on the week number to view announcements and links for that week of semester
CS302 Final Exam
Date: Wednesday, Dec 23rd
Time: 7:45 AM - 9:45 AMBring your UW ID and #2 Pencils
See: Exam Information, Topics List and see the "Content" section of the course Learn@UW page for exam rooms and sample questions.
Thursday: Final Exam Review, Course Evaluations, Program 4 Due
- There are no office hours or consulting hours scheduled during finals week.
- Code:, Song.java, TestSong.java, TestDriveSongApp.java
- Final Exam Review
Tuesday: Ch 13, Catch UP and Review; and Course Evals
- Code:RussianTeaDoll.java
- Hour of Code: code.org
- Course Evaluations
- Program 4 is due (see Programming Assignments link).
Thursday: Ch 12, Ch 13, Program 4 Teams Due 12pm on Friday
- Lecture: Lecture Slides
- Code Samples: Top40.java
- Previous Code Samples: Date7Driver.java, Date7.java, InvalidDateException.java
Tuesday: Finish Ch 12, Program 4
- Program 3 has been graded and your grade reports can be viewed by using the 302 Forms Page. Regrades requests must be made to your grader before Tuesday.
You must contact Grader TA by next Tuesday if you'd like to request a regrade. The Grader TA is listed in your grade report. (see Policies for Programming Assignments for more information).- Program 4 is available, teams are due this Friday and code is due next Friday.
- Handout: Remote Computing
- Code Sample: Gutenberg (code and book files)
- Robocode: download and install robocode-1.9.2.4-setup.jar if you want to inherit from class Robot and make your very own Robots to battle with.
- Recursive Exception Code Sample: Player.java, Ball.java
- Prev Code Sample: FinnishFemaleNames.txt, FinnishName.java, SortStuff.java, exceptions2.txt
Thursday:
Files, File System, File naming, Checked Exceptions, FileNotFoundException, reading from a file using a Scanner object, running another Java program from within a Java program.
- Handout: Remote Computing
- Code Samples:
xkcd Comic Strip: http://xkcd.com/1188/
Java visualizer: xkcd_1188
Remote connection to linux workstation at cs.wisc.edu: TestArgs
- Past Semester Examples:
- Fall 2014 file_configs.txt, ReadTest.java, ReadFromFile.java
- Previous Semester Code Samples: TestArgs.txt, exceptions.txt, Date5Driver.java, Date5.java, Date6Driver.java, Date6.java, InvalidDateException.java
- Exceptions.java
- CopyFile.java, ProcessFile1.java, temps.txt
Tuesday: Exception Handling, Ch 12
P4, Exception Handling
- Why do YouTube views freeze at 301?
- Registering? Consider Computer Sciences: CS Major FAQ
- Code Samples: GradeQuiz.java q1 (data folder)
- Program 4 has been assigned (see Programming Assignments link). In this last assignment, you'll need to come up with your own minimally object-oriented design.
Thursday: Ch. 12.1 - 12.3, Program 3 Due
- Code Sample: CopyWithLineNumber.java
- What is a command-line argument?
Tuesday: Ch. 7.4, Exams Returned
- Handout: File Output.pdf
- HDD vs SSD:3min YouTube video
- Code Sample: List.java
- Exam 2 returned in lecture and scores will be posted on Learn@UW by Wednesday.
Exam 2: Thursday, 11/19, 5-7 PM.
- See Exams page for Topics list and other information.
- Bring your UW ID and #2 Pencils
Links: Exam Information, Topics List, and see the "Content" section of the course Learn@UW page for sample questions and a previous semester's exam.- Object Diagram: Question 8 on Exam 2 Sample Question Set
Thursday: Exam Review
- Handout: ArrayList and Array of Objects.pdf (bring printout to class if possible)
- Bring a copy of sample exams if you wish to follow along with questions on those papers.
Tuesday: Arrays of Objects Review
- Handout: Shadowed.pdf
- Previous Object Diagram: p3_CantStop_object_diagram.pdf
- Previous Code Samples: partial implementation of Game.java, Ship.java, Player.java, Position.java, DaysInMonthCalculator4.java
- Exam 2: Thursday, November 19th, 5-7pm. See Exams page for details.
Thursday: Finish Ch. 9&10, Program 3 demo and Diagrams
- Handout: Die_DiceGame_2.pdf (new and improved version)
Version used in Lec 001: Die_DiceGame.pdf (38 pages--just print the first two pages if you're interested)- Visibility Challenge: CombinationLock
- Previous Code Samples:Play2048 OO, Cup3Driver.java, Cup3.java, Cup4.java, Date3.java
- PlayingCardDriver.java, PlayingCard.java
Tuesday: Continue Ch. 9&10
- A "main" class to be used as a driver or test class was not really created - but our initial code fragment uses the classes as created.)
- Previous Code Samples: Candidate.java, VotingApp.java (main class), Referendum.java , ElectedOffice.java, Ballot.java
- Previous Code Samples: Cup2Driver.java, Cup2.java
- Exercise Try the Break the Bank Challenge!
BreakTheBank.java (← instructions in this file), BankVault.jar, BankVault.html
Code Samples: TicTacToeOOP.java, Board.java
Thursday: Finish Ch. 9.13 - 9.14, Start Ch 10
- Code Samples: ExamStatsMain.java, StatCalculator.java, and Score.java
- Previous Semester's Code Samples: CircleTester.java, Circle.java, Course.java, Date2Driver.java, Date2.java, Cup1Driver.java, Cup1.java
Tuesday: Start Ch. 9.4 - 9.11
- Understanding Instance and Class Members
- Javadoc for EnigmaDemoOO
- Previous Semester's Code Samples: Student.java, Date1Driver.java, Date1.java
Thursday: Start Chapter 9, Ch 9.1-9.3
- Visualize: Player.java
- Code Sample: P2 Demo
- Code Sample: A longer more detailed ArrayListDemo.java
Tuesday: Read Ch. 6.8
- Previous Code Sample: TestPlay2048.java, Play2048.java sample
- Visualize: test_countIf
Exam 1 Grade Reports returned in lecture on Tuesday and scores posted on Learn@UW. If you did not pick up your exam on Tuesday, please come to office hours to pick up your exam. Be sure to check your score is correct on Learn@UW.
Thursday:
- Code Samples: SudokuConstants.java, SudokuMain.java (blank file), Sudoku_001.java, Sudoku_002.java
- Previous Semester Code Samples: CopyExamples.java, CityMap.java, MapMethods.java
Tuesday: Chapter 8 (2D arrays): returning arrays from methods, Program 2 Overview, Return Exam 1
- Visualize: TestRandom.java , RandomFillArray , Fill2DArray
- Prev Semester Code Samples: TestRandom.java
TicTacToe1.java, ArrayPractice.java, SecretMessage.java
Exam 1: Thursday 10/8, 5-7 PM
- Lecture 001: Room: TBA
- Lecture 002: Room: TBA
- Bring your UW ID and #2 Pencils
- See Exam Links: Exam Information, Topics List, and
- See the "Content" section of the course Learn@UW
page for sample questions and example exam.Thursday: Catch Up and Review for Exam: Bring Questions
- Handout: Parameter Passing 101
- Visualize: TraceThis.java or RandomFillArray, Fill2DArray
- Previous semester examples:
Sample Exercise 1: Methods.txt
Sample Exercise 2: CallStackTracing.txtTuesday: Read Ch. 6.6-6.11
- Visualize: arrays in methods
- Exercise: Convert this java program so that is uses methods: RectangleArea2.java
Solution: RectangleArea3.java- Code Fragment Sample: TestGetIntInRange.txt
TestGetIntInRange.txt, Methods.txt
- Program 1 is being graded.
- Program 2 has been released.
Thursday: Read Ch. 7.7, 7.12
- more on one dimensional arrays
- Visualize: LEFT SHIFT of an array
- Visualize: RIGHT SHIFT of an array
Tuesday: Read Ch. 7.1 to 7.6 and start Ch. 6.1 to 6.5
Code: P1_refactored.java
- One dimensional arrays (Ch 7)
- Visualize the
ClosestToValue
example- static void methods - methods that do not return values
- Visualize method calls
- Shapes.java - Displays a diamond shape based on value in n.
- Visualize: Partially filled array example
- Visualize: array reference example
- OneDArrayExample.java
- I will be available TR 2:45-4:45pm, and 8:30-10:30am on Wednesday and Friday. Please see consultants outside of those times. See the Consulting tab and schedule for hours.
- Be sure to work on CodeLab exercises and complete before their due dates.
Thursday: Finish Ch. 4 and start Ch. 5
- Discuss differences between loops and several forms of incrementing variables:
count = count + 1;
count += 1;
count++;
++count;
TRY VARIATIONS OF THE ABOVE and learn
DO NOT MIX AND MATCH THOSE FORMS:
For example, do not use something like this:count += count++Exercise: Modify HiLo3.java (linked below) to play multiple times.
Code Solution:
NestedLoopExamples.java
NestedDoLoopExample.java
HappyValentinesDay.javaCode Output: HappyValentinesDay.output.txt
Tuesday: Ch 4 (for loops) and nesting code
Exercise: Write a Java code fragment that determines if a date is in the past, present, or future. You are given integer variables year (>0) and month (1-12), which you may assume will have valid values. You are also given constants YEAR and MONTH that represent the current date. First, solve the problem for the year only, then modify it to work for both the year and month.
Challenge: Assume you also have an integer variable day (1-31) and a constant DAY. Write the code fragment to work for a complete date.
- First set of CodeLab exercises are due before 11:59pm on Monday of Week 3.
- Your lab scores can be viewed on Learn@UW. They are updated weekly (by Friday).
- Complete registration for CS 302 Forms if you have not yet completed this process (in last week's lab)
- Report Exam conflicts via the Forms tool (login using your cs login account name and password) and enter any Exam conflicts or accommodation requests for the entire semester before NOON on Friday, Feb 6th. Students MUST report Exam Conflicts and any other (Religious,Sports Travel, and McBurney) accomodation requests for the ENTIRE SEMESTER via Forms tool by 12pm (NOON) this Friday 2/6:
- Do you have a programming assignment question? Use Piazza. For more information about using Piazza.
- Need Help with CS 302? See the information about Lab Consultants with a link to the lab consulting hours.
Thursday: Finish Ch. 3, Start Ch. 4
- Exercise: Should a student walk, bike, or ride the bus? If it's raining or they live more than 4 miles from campus, they will ride the bus. If its not raining and they live less than 1 mile, they walk, otherwise, they will bike. Hint: create two control variables, one for if it is raining or not and the other for the distance a student lives from school.
Code Solution: Java Visualize: WalkBikeBus- Exercise: Complete a code fragment that determines how many days are in a month (e.g., February has 28). Assume month is an integer variable that has some value between 1 and 12 (i.e., January to December).
Code Solutions: DaysInMonthCalculator1.java, DaysInMonthCalculator2.javaTuesday: Ch. 3 Decisions
- Exercise: Check out this Java Visualizer link and edit the HelloWorld.java code to try other things.
- Flow Chart to Code Fragment: flow_chart_code_fragment.png
- Handouts
- Code Samples
- Previous Semester Code Samples:
- Labs begin this week: Complete Lab 1: Eclipse Tutorial
- Activate your CS account before your lab session if possible.
- Last day to drop without notation on transcripts is this Wed (I think).
- Register and get started on the CodeLab exercises.
- See Consultants for extra help during their posted hours
- Enroll in Piazza.
- Set up Java/Eclipse your own computer. See the Software Downloads page for instructions.
Code Samples
- Arithmetic Operators and Expressions.java
- DemoScanner.java
- TODO: RandomValues.java , TempConverter.java , CylinderFormulas.java
Handouts
Code Samples
Announcements
- WES-CS Sections will be held starting this week, Tuesday 9/2, for those enrolled in WES-CS.
- Video recording of (Lec 002 presentations) may available via Lecture Captures.
- Add the Exam dates and times and to your calendar.
- Read the course website to ensure you know where to find information we post.
- Read the course policy handbook.
- Read the textbook chapters before lecture as well as familiarizing yourself with the course website.
- See the Work At HOME instructions for setting up home computer for program development.
- Printable Info Sheet for FALL 2015 (Caution: Information on the info_sheet may change, always check Course Web Site for most up-to-date information)
- Religious Observances: If you participate in any religious observances that fall within the current semester and may conflict with course requirements, notify me by 9/25 via email with dates and times of expected conflicts. Submit exam conflicts via Forms tool.
- McBurney Accomodations: Give a copy of your VISA to me by Friday 9/25, or as soon as its available.
- Note: Some CS 302 course pages are under construction, some links may not work. All links should be working by week 2, please let me know if there are any broken links after week 2.
Check your weekly schedule for both midterm exam weeks and your final exam week and report conflicts via Forms before 9/25.