AP CS Assignments
Assignments by week:
Fall Term:
Winter Term:
Spring Term:
Monday, September 10
Description
Transistors, Gates, and Logic
Homework
Tuesday, September 11
Description
Programmable Computers
Homework
  • Download Think Java 6.1.3 (hereafter abbreviated as Think Java).
  • Read all of chapters 1 and 2 (pages 1-29) in Think Java. Chapter 1 should be mostly review, so feel free to skim. Chapter 2 should also be familiar, but has some more technical details that you need to know, so make note of any questions on those topics so we can review them in class.
Thursday, September 13
Description
A (Re-)Introduction to Java
Homework
  • Tonight, your job is to write and compile "Hello World" for Java, without using an Itegrated Development Environment (IDE). Examples of IDEs include Eclipse, Netbeans, and IntelliJ.

    1. Begin by selecting a text editor (sometimes called a programmer's editor). These edit the plain text files that form the source code to your programs. They should not be word processors (like Microsoft Word or Apple Pages). They frequently have other features to make programming easier (like syntax highlighting).

      If you're not totally sure of which one to use, pick one and try it out for tonight's assignment. You can always change your mind later, since the source code files will work with any editor.

      Here are some no-cost suggestions for macOS text editors:

      • VisualStudio is a Microsoft product that is now freely available on multiple platforms.
      • Atom is a recent entry that's gained a lot of popularity. I may ask you to turn off the auto-complete function so it's just a plain editor.
      • Emacs is an editor that's been around a long time, and runs both on the terminal and as a full application. A little trickier to learn, but very customizable.
      • MacVim is another long-lived editor with a command-line version. Steep learning curve, but very fast once you get used to it.
      • Textadept is a small but highly customizable editor.
      • jEdit is written in Java, has been around for a while, and runs on multiple platforms. Can be a little slow and a resource hog, so try it out before you settle on it.
      • Brackets is similar to Atom. It will edit Java files without an issue, but the overall focus for the editor seems to be for web development so it might not have as many features for other languages.
      • List of Text Editors on Wikipedia (in case you need more options)
    2. Follow my Hello World Tutorial to write, compile, and run a Java application using just an editor and the command line. If you have questions, bring them with you to next class!
Friday, September 14
Description
Building and Running Java Programs
Homework
  • Read all of chapter 3 (pages 33-45) in Think Java.
  • Attempt exercise 3.4 (pages 46-47) in Think Java. If you have difficulties running the program, code your best solution possible and bring it with you to class. We'll discuss it during the next class.
  • Hint: if you have a program running on the terminal, you can force it to quit by pressing control-C. If you are entering input into a program, you can tell it you're "done" (no more input) by entering control-D on a line by itself.