CSE 15: Introduction to Computer Science
Assignment #3 (Chapters 3 and 11)

This week, you will be reading chapters 3 in The Universal Computer (Programming languages and their translators) and chapter 11 in A Multimedia Introduction to C++ (A Taste of C++). You will also go through the multimedia corrsponding to these two chapters, in lab and/or on your own. While going through the multimedia for chapter 11 (A Taste of C++), you will start creating simple C++ programs, using LOOKOUT (accessible via the C++ button on interface of The Universal Machine or by entering LOOKOUT in the Windows Run box or from a DOS cmd box on any PC connected to a Lehigh LAN).

Laboratory work:
Your objectives this week are:
1) Complete the multimedia for Programming Languages and Their Translators in The Universal Computer (which you may start up with Start>Run uc). Before you leave, your TA may ask you a few questions about what you learned from this multimedia.
2) Start the multimedia for A Taste of C++ in The Universal Machine (which you may start up with Start>Run umcpp).While going through the multimedia, you will be asked to create a program, using LOOKOUT, that says "Hello (your name)", another which displays your name over several lines, and another that converts from kilograms to pounds. You should try to implement these programs during lab. Before you leave, show your work on these programs to a teaching assistant.
You may then use the lab time to begin your next homework assignment, given below. You may also continue working on the C++ programming exercises in lab next week. Notes: Start LOOKOUT on campus with Start>Run lookout (it should load hellont.cc by default the first time). Press F5 (or from the menu, Lookout>gcc compile+Run) to compile and run the program. (F4 runs a preprocessor which you don't really need and doesn't always work, while F5 just runs the gcc C++ compiler directly.) If you get an error message, press F6 to see the location of the error, and if you don't understand the error message, press F7 to get a detailed explanation of most common error messages. Use F1 to switch from one buffer window to another within LOOKOUT.

Homework exercises: 3.1(b,c,d), 3.8, 3.67, 3.70, 3.71, 3.83, 3.90, 3.94, 11.2, 11.6, 11.7, 11.17(b,d,f), 11.22, 11.37, 11.43, 11.54.

Extra credit: 3.61, 3.64, 3.87, 11.44 and/or 11.47.

Due: Friday, 9/19, anytime before midnight.

Hand in: When you're ready to submit your assignment, combine the answers to all the exercises (including source code for the programming exercises) into one text file, using notepad or LOOKOUT (not Word). Then, attach your file to assignment #3 (where you got this assignment) in Blackboard.

Prof. Blank