Class Lectures and Reading Assignments
CS 12300-001
Programming I: Java
Fall, 2023
This page documents what we do in class. It contains Java programs that we will discuss in class, reading assignments, simple homework exercises that you can work on for practice and exam preparation (not for credit), and links to other sources of information. It is a good idea for you to "play" with the example Java programs; compile them, run them, make simple changes to them and compile and run them again.
Remember that the final exam for this class will be on Monday, December 11, from 12:30 - 2:30. Below is a summary of the final exam topics and some review/practice problems along with the previous two midterm exam review problems.
According to the university's final examschedule, the final exam for this class will be on Monday, December 11. Below is a summary of the final exam topics and some review/practice problems along with the previous two midterm exam review problems.
Read Sections
6.4 (compare it with Section 4.10),
6.25,
6.26,
from the textbook. Do all the "Participation Activities" and "Challenge Activities" in each section.
For Wednesday, read Sections
4.11,
4.12,
4.13,
4.29,
from the textbook. Do all the "Participation Activities" and "Challenge Activities" in each section.
For next Monday, read Sections
4.5,
4.6,
4.10,
4.28,
from the textbook. Do all the "Participation Activities" and "Challenge Activities" in each section.
We don't have class on Monday because it is Fall Break.
For next Wednesday, read Sections
4.1,
4.3,
4.4,
4.23,
from the textbook. Do all the "Participation Activities" and "Challenge Activities" in each section.
Remember, the first midterm exam is this Wednesday, on October 4.
Here is the summary of the midterm exam topics and some review/practice problems.
For Wednesday, read Sections
3.18,
3.26,
3.27,
3.28,
3.29,
3.30
from the textbook. Do all the "Participation Activities" and "Challenge Activities" in each section.
For next Monday, read Sections
3.13,
3.15,
3.16,
3.17,
3.42
from the textbook. Do all the "Participation Activities" and "Challenge Activities" in each section.
Note: Today's lab exercises require access to the zyBooks textbook. If you do not yet have access to the textbook, then please see me.
For Wednesday, read all the sections from Section 3.1 through 3.6 from the zyBooks textbook. As you read each section, do all the "Participation Activities" and "Challenge Activities" in that section.
To get some practice with how zyLabs work in the zyBook, go to the homework assignment page and do Assignment 0.
Here is a list of String methods that we can use in class today.
Then modify your program so that it draws this picture.
Then modify your program so that it draws this picture.
Then modify your program so that it draws this picture.
Then modify your program so that it draws this picture. (Hint: When you create each Turtle, construct it to start at a convenient location. The origin of the World is the upper left-hand corner. So the center of the World has coordinates (300, 300).)
No class. Labor day.
For next Wednesday, read the following sections about objects, constructors, and methods.
Then, solve the following Scanner input problems. You need to be aware of the "Scanner bug". You should use the Scanner methods nextInt(), nextDouble(), next(), nextLine(). Show me your result when you finish each one.
Today we will talk about variables, data types, and operators. Since we do not yet have access to the textbook, here is a section about variables from a different textbook.
For today, read Sections 1.1 to 1.6 from the textbook on either Brightspace or zyBooks.
For Wednesday, read Section 1.7 from the textbook.
Here are the code examples that we used in class today. You do not need to understand the details of these examples. Just use the Java Visualizer's "Visualize Execution" button and then the "Forward" button to watch the code execute.
Lab Exercise: Open, in a new browser tab, this HelloWorld program at the Java Visualizer. Make each of the following changes in the program (one at a time). After you make a change, compile and run the program and read the error message (if there is one). Then undo the change in the code and try the next change.
Remove each of the opening curly braces (one at a time).