C++ code - understanding time(0) and seed: rand2.cpp C++ code. Try it out.
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?
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
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.
Assignment: Page 445 #8 PAYROLL
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.