CS 1160 C/C++ Programming 12 MWF - Spring 2016

February 29th, March 2nd, March 4th - Week #8


Monday 02/29/2016


  1. Test One ... today ... on Feb 29th, a leap year day.


Wednesday 3/02/2016


  1. Page 129 of textbook: Random numbers in C++. See pages 129-130.

  2. rand.cpp - the C++ code from the textbook, without the comments.

  3. Round midnight: January 1st, 1970. How time(0) flies.

    C++ code - understanding time(0) and seed: rand2.cpp C++ code. Try it out.

  4. dice.cpp - rolling one die and counting the number of 1s, 2s, 3s, 4s, 5s, and 6s obtained by using an array. Why did the array have 7 locations instead of 6?

  5. dice2.cpp - rolling a pair of dice. Counting the distribution of 2, 3, 4, 5, 6, 7, 8, 9, 10, 11 and 12's rolled.

Friday 3/04/2016


  1. Random numbers: birthday() function and grid location where the grid has 41 rows and 41 columns. We need a randomX between -20 and 20 and a randomY between -20 and 20.

  2. Assignment: Page 445 #8 PAYROLL

  3. HOMEWORK SUBMISSION IS READY for programming assignment #4.
    Login with your UNI CatID and passphrase.
    Choose CS 1160, C++, Jacobson and then click the Continue button.

    HOMEWORK SUBMIT system: C++ Homework SUBMISSION for C++ Assignments for Jacobson

      arrays.cpp
    

  4. Stat consulting appointment at 1:30 pm (Wright 338A)