This was the assignment that I’ve struggled with the most. I had to read a lot, reasearch many terms and ask for help. After about three days working on this, I finally figured out a simple way to write the code.
The resources that I used were:
- https://www.tutorialspoint.com/cplusplus/cpp_do_while_loop.htm
- http://www.cplusplus.com/reference/cstdlib/
- https://stackoverflow.com/questions/14914595/what-is-a-seed-in-terms-of-generating-a-random-number
- http://www.cplusplus.com/reference/cstdlib/rand/
- http://www.cplusplus.com/reference/cstdlib/srand/
- http://www.cplusplus.com/reference/ctime/ctime/
- http://www.cplusplus.com/reference/ctime/time/
- http://en.cppreference.com/w/cpp/types/NULL
- How To Think Like a Computer Scientist
- I looked into Juan Pedro’s blog
The picture of my code running can be found on top.
-Valeria
Deja un comentario