This lab has 2 parts:
Using Code::Blocks, complete the Chapter 3 Programming Challenges problem 1 on page 151 in the text.Pages 151 - 156 of your textbook are here:https://media.lanecc.edu/users/birdb/CS133G/Labs/Lab2/Gaddis%207E%20Chapter%203%20Programming%20Challenges.pdf. (For 8th edition, it is pages 149-154, but the problems are the same.)
Using Code::Blocks, complete Programming Challenges problem 16 on page 154 in the text.
Note: If you are using VisualStudio 2005, you should include time.h. The call to srand should use the time rather than a number entered by the user and looks like this: srand( static_cast(time( NULL )) ); Don't worry about what it all means ... just enter it as I've given it to you.
Upload your two source files (.cpp files) and a file showing the output under submissions below.