Monthly
Schedule
(Introduction
to Programming Languages, Period F)
W 2/1/012 |
HW due: Review your class notes, the lists of terms
at the ends of Chapter 1 and Chapter 2 in the text, and the list
of Java keywords (§3.9 only). A quiz is likely. |
|
Th
2/2/012 |
Test (100
pts.) on all material covered so far. ·
Chapters 1 and
2, especially the lists of terms at the end of each chapter ·
“Bits, Bytes,
Hex, and Hertz” as covered in class ·
2’s complement
addition and subtraction ·
Moore’s Law ·
Logic gates
(AND, OR, NOT, NAND, NOR, XOR) ·
All other bits
and snippets of knowledge discussed in class (e.g., Alan Turing, father of
computer science). |
|
F 2/3/012 |
HW due: Sleep! Sleep! Sleep! |
|
M 2/6/012 |
HW due: |
|
T 2/7/012 |
No class. |
|
W 2/8/012 |
HW due: Write Exercises 2.2, 3.3, and 3.4. Make
printouts (or neat hand transcriptions) of your source code. Mr. Hansen will
be available Tuesday afternoon from 12:30 to 1:25 if you need extra help. |
|
Th
2/9/012 |
HW due: Read Chapter 4 (pp. 39-47). Reading notes
are required, as always. If you have not finished the previously assigned
exercises, make sure they are also clean and complete, including the method
calls and passed parameter values. |
|
F 2/10/012 |
HW due: |
|
M 2/13/012 |
HW due: Finish your flowchart for the
day-of-the-week app (DOTWAPP). The description of
the algorithm tells you, in a straightforward text format, exactly what
you need to do. However, you will need to translate the steps into flowchart
style, using rectangles to denote ordinary statements, parallelograms for
input/output, and diamonds for decision points (“if” statements). See
xkcd.com for a humorous example of flowcharting
as applied to the software development process in general. |
|
T 2/14/012 |
No class. |
|
W 2/15/012 |
HW due: Start writing your DOTWAPP (Day-Of-The-Week App)
Java code, using your flowchart as a guide. Don’t worry,
we will review all the code in class before we consider this exercise to be
finalized. Requirements are listed below. If you can’t meet all of these
requirements in the first version, then treat them as goals to work toward in
the second version. |
|
Th
2/16/012 |
HW due: Bring a revised (new and improved!) hard
copy of your DOTWAPP code to class for code review. |
|
F 2/17/012 |
No school. |
|
M 2/20/012 |
No school. |
|
T 2/21/012 |
No class. |
|
W 2/22/012 |
HW due: |
|
Th
2/23/012 |
HW due: Same as yesterday. Try to make your raiseToPow method accept 2 “int”
arguments and return an “int.” For example, we would like raiseToPow(2,3) to return
8, much as Math.pow(2,3) returns 8.0. |
|
F 2/24/012 |
HW due: Read Chapter 7 (pp. 75-87). Take some
reading notes, as always. |
|
M 2/27/012 |
HW due: Write Exercises 7.1 and 7.4 on pp. 87-88.
Your next test will be on Thursday, March 1, and we will spend all day in
class on Wednesday reviewing for the test. |
|
T 2/28/012 |
No class. Mr. Hansen will be available for
one-on-one consultation in MH-102. |
|
W 2/29/012 |
HW due: Complete your DOTWAPP programming, to the
best of your ability. Call the day-of-the-week calculation as a method (named
dotwapp) from a main routine (shown below) that includes
at least the 4 test dates given, plus 2 or 3 additional dates of your own
choice. Note that the input is to be passed as an “int”
in YYYYMMDD format. Since an “int” in Java is a dword (32 bits) and can therefore accommodate integers up
to more than 2 billion, you will have plenty of capacity to deal with an
8-digit YYYYMMDD integer. System.out.print("Day of the week for 19680131 equals "); System.out.println(dotwapp(19680131)); System.out.print("Day of the week for 19000229 equals "); System.out.println(dotwapp(19000229)); // should
give error message System.out.print("Day of the week for 20010911 equals "); System.out.println(dotwapp(20010911)); System.out.print("Day of the week for 18841225 equals "); System.out.println(dotwapp(18841225)); // should
give error message } |
|
Return to Mr. Hansen’s home page
Return to Mathematics Department home page
Return to St. Albans home page
Last updated: 20 Apr 2012