Sorry for the goof! The current homework assignment has now been updated with the correct diagram.
-
Zork II diagram corrected
-
Extension on Zork II (Stephen’s an idiot)
Because I screwed up the diagram on the Zork II assignment description, I’m pushing that assignment back two days until Friday Oct 11. I will post the correct, revised diagram later this afternoon — stay tuned.
-
Complete persistence/hydration example posted
Hot off the presses from today’s class:
- Our updated Car.java class
- Our updated Caravan.java class
- Our new (and super-unexciting) NoMoreCarsException.java class
-
If your Zork I was an epic fail
If your Zork I really didn’t come together, for whatever reason, I suggest you use my Zork I as a starting point for your Zork II. You can find it in the “Files” tab of Canvas. All you need to do is get that zorkI_stephen.git file into your home directory on cpsc, then: “git clone zorkI_stephen.git tryTryAgain“. (You can name the directory it will put my stuff into something different than tryTryAgain if you want to.)
-
All-virtual office hours this week
If you hadn’t already guessed, office hours will be on Zoom only this week. Just drop me an email if you’d like to hook up!
-
IMPORTANT: please read
The bevy of Covid cases sweeping through CPSC is scaring me enough that I want to take some evasive action. For this reason, class will be online this coming week (Sep 30, Oct 2, and Oct 4). The Zoom link is in the Canvas announcement I made before the beginning of the semester. If you have trouble finding it, please let me know ASAP.
Class online will be just as important as class in person, so please do attend all three sessions. Also, my Zoom practice is to mandate that your cameras must be on during the entirety of lecture. In all other respects, treat it as just a normal class, together with some possible breakout activities.
I’ll make a judgment call mid-week as to whether we will have our next Canvas quiz (#3) on Friday, or else just normal lecture. In either case, it will not be a SWYK check. Don’t forget what you learned from the first SWYK check! I know it’s turning into a long time between them.
See you online tomorrow at 11am!
-
Class tomorrow (Friday 9/27)
I’ve had seven students email me to tell me they have Covid and will have to miss class. So I’m going to go ahead and cancel tomorrow’s class. We will still have quiz #2 in Canvas which will open at exactly 10am. You should take it in a quiet place where you will be free from interruptions, distractions, and communications with other people. The quiz is open-book, open-notes, closed-Java, closed-other-Websites, and timed at 55 minutes.
See you Monday!
-
Solution to Simone Biles sequence diagram
Here’s my answer to Monday’s sequence diagram challenge:
-
Missing arrow on Zork class diag
A reminder of something I said in class quickly the other day: the Zork I UML class diagram is missing a “has-a” arrow from Dungeon to Room called “entryRoom“. I can recreate the diagram, but then my software will redraw and reposition everything, and I think that might be disorienting to you. So I’ll just announce that you should mentally include that arrow!
-
Mordor memory diagram posted
If you’d like to see a barely-legible version of the Mordor Zork dungeon example I showed on the whiteboard today, be my guest.
Also: a few students approached me who want to set up a rescue fund for Cole, who is trapped in the Mt. Doom lava pit. If you’d like to donate, let me know and I’ll connect you with them.
-
Grading SWYK check 1
As I indicated, this first (and only the first) SWYK check will be graded more leniently than the others, since you guys were getting used to the process and some people had a hard time getting the commands typed in correctly, etc. For this reason, I instituted a hard floor of 7 points out of 10 for the assignment. This means that even if your code didn’t compile, as long as you turned it in correctly you got no lower than a 7/10.
I cannot emphasize enough, however, that if you struggled at all with this SWYK check, you MUST take immediate action between now and the next one to correct what you did wrong. The next SWYK check (on Oct. 4) will not have any artificial grading floor to prop up your score. If your team passes no test cases — or doesn’t even have code that comples — you will get zero points.
For this reason, I stress in the strongest terms the need for you to visit one of the class’s lab aides, or myself between now and then to talk through what you found difficult and why. It simply will not get any easier than this one was.
Finally, as promised, I present my own solution to the SWYK check if you’d like to look at that. (This isn’t the only correct solution, but it is a correct solution.)
-
Office hours zooming
My Zoom is taking up more CPU cycles than I’d like, so I’m going to shut it off when not in use.
If you’d like to Zoom during office hours, please just send me an email, and I’ll be happy to open up!
-
Car class posted
For those of you who wanted to look at the Car example we did in class, here it is! (and Caravan too)
-
First SWYK check Friday!!
Your attention, please! The first of our six SWYK (Show What Y’all Know) checks will be this Friday, Sep. 20 at 10am! I’ll talk more about what it will entail on Wednesday, but in the meantime it wouldn’t hurt to attend Matt’s weekly “SWYK session” in lab aide hours tonight, during which he will walk you through a sample!
(If you aren’t able to attend Matt’s session, don’t despair — the first SWYK check is designed to be kind of an easy example so you can get used to the procedure.)
-
Zork I posted!
The first stage in your Zork journey this semester has been posted, and is due by the stroke of midnight on Saturday, Sept. 28th. This assignment is not for the faint of heart. It will require skill, ingenuity, consistency, dedication, and perseverance to complete.
The first thing you should do — right now, after brewing a cup of coffee or grabbing a Mountain Dew — is read through the entire assignment, calmly and attentively, beginning to end.
-
Massive office hours overhaul
For various reasons, I’m going to be radically switching my office hours around between now and Thanksgiving to be in the evening. The new office hours, starting this week, are in James Farmer Hall 044, or on Zoom, at the following times:
- Mondays 7-9pm
- Tuesdays 7-8pm
- Wednesdays 7-9pm
or by appointment.
As always I’m willing to try and accommodate those who need to meet at another time, subject to joint negotiation.
-
New homework! Due soon!
Please take some time between now and next Tuesday at midnight to complete this homework assignment. And have fun!
-
Instructions for today’s quiz!
Today is quiz #1, which will start promptly at 10am in the classroom. Please bring your laptop, fully charged and with charging cable, and be at a comfortable seat when class begins. (For those who need it, there is a distraction-free room adjacent to the classroom just down the little hall to my office. It has cool tables that go up and down when you press a button.)
The quiz will unlock at exactly 10am. You will have exactly 50 minutes to complete it. The quiz is open-book, open-notes, closed-other-humans, closed-Java, closed-other-websites.
For the last question, you will write and sign the Honor Pledge (yes, you are allowed to look up the Honor Pledge if you don’t remember it — that’s the one and only exception to the “no other websites” rule.) Do be sure to read those instructions carefully, which require that you (1) type the correct pledge, not an incorrect pledge, and (2) “sign it” by typing your full name (first and last) below it.
Good luck!
-
Office hours virtual today
Hit me up at the usual link.
-
Monday’s activity
Sorry for the last-minute notice, but class will be canceled on Monday, Sep 9th.
Instead of having lecture, you should print out this crazy 4-page Java program, and with zero-to-three fellow CPSC 240 students of your choice, work through it manually and figure out what the output of the program is. (By “the output of the program” I mean “what will the program print to the screen when it runs?”) You and your teammates will want to create a stack-and-heap diagram as you work through this.
(Needless to say, you are not allowed to use a Java compiler or any other way of getting a computer to give you the answer, since that would ruin the whole point of the exercise, which is to understand how memory works in a Java program.)
If you don’t know any of your fellow students’ contact info, that’s okay: just show up at the normal classroom at the normal time and pick some partners there! Or if you really want to do this activity by yourself, you can (but it’s hard).
You can earn one extra credit point by sending an email to me (stephen _AT_ umw _DOT_ edu) with subject line “CPSC 240 extra credit turnin” and your predicted program output as the body of the email. You only need to send me one email per team, but you should Cc: all the other members of the team. This extra credit endeavor is due to my inbox no later than midnight, Tuesday Sep 10.
Good luck!
-
Office hours virtual next Monday
FYI, Monday’s office hours will be virtual (over Zoom). You can find the link in the opening semester Canvas announcement.
-
Turn-in clarification
To get credit for the development environment setup, all you need to include in your email is your slang phrase. I trust that you did all the rest.
-
Igpay: helpful String functions
Here are some methods of the String class that you might find useful on your Igpay assignment.
-
Erm, I meant Wednesday
I said “see you Monday, everybody!” at the end of class today, but of course I meant Wednesday since Monday is Labor Day.
-
Program #1 posted!
Your first programming assignment of the semester has been posted, and is due on Tuesday, Sep. 12th at midnight. Don’t delay, start right away!
-
Lab aide hours posted
The drop-in hours for our CPSC student lab aides have been posted. All these hours will begin this coming week (Sep 3rd).
Take advantage of this resource this semester, especially if you find yourself struggling!
-
Welcome!
Greetings, and welcome to the fall 2024 edition of CPSC 240: Object-oriented Analysis & Design with Stephen!
This site is gonna be hip-hoppin’ with all kinds of great stuff real soon, so stay tuned!