Topical Information

This set of labs should help you firm up your knowledge of programming basics and some basic background information any programmer should know.

Problems

  1. Do Programming Exercise P1.1.

  2. Do Programming Exercise P1.2.

  3. Do Programming Exercise P1.3.

  4. Do either Programming Exercise P1.5 or P1.6. Make your printlns as re-usable as possible so that you can take advantage of Copy-Paste. (Later we'll use this type of skill to re-use functions we've written.)

  5. Do Programming Exercise P1.7.

  6. Do Programming Exercises P1.8. In addition, write a program Sum10Reciprocals that computes the sum of the reciprocals 1/1 + 1/2 + ... + 1/10. This is harder than it sounds. Try writing the program and check the result. The program's result isn't likely to be correct. Then write the denominators as floating-point numbers, 1.0, 2.0, ... 10.0, and run the program again. Can you explain the difference in the results? We will explore this phenomenon in Chapter 4.

  7. Do Programming Exercises P1.9 & P1.10 as well as Programming Project 1.1. (Do you notice any similarities?)

  8. This space reserved to add more labs...maybe...

This lab set is worth (Level 3.5).

Boosters