Homework 1

Physics 131/231: Simulations in C++

Winter 2000

Problem Set 2

Due 12:30 pm Tuesday, January 24

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. In other words, print out the program and a transcript of what happens on the computer when you compile and run the program.