Homework 1

Physics 231C: Simulations in C++

Spring 1999

Problem Set 2

Due 2:00 pm Tuesday, April 20.

All problems from Textbook by Barton and Nackman:
  1. 2.7 If statements are not syntactically correct, explain what is wrong with them.
  2. 2.8
  3. 2.10
  4. 2.11
  5. 2.12
In problems 2.11 and 2.12 show what happens on the computer when you compile and run the program.