bugsm(Credit goes to http://9gag.com/gag/a0LYA5X

For my sixth asssigment, I had to write a program that picked a random number in the range of 1 to 100. I had a lot of trouble doing this though!!!

At first I was so lost. I mean, I had the previous knowledge from the others WSQs, but it wasn’t enough. Hence, I decided to look for help in the web (http://www.cplusplus.com/reference/cstdlib/rand/) and read the book of the class, but I was still confused. I’m going to admit I didn’t exactly get what the website I found was explaining, so I went with a friend who had already done the assigment and asked for help.

Cygwin finally stopped telling me I had errors in my code, so I was glad. However, the program didn’t exactly run like I expected to. As you can see in the next image:

bugrandom

I checked my code for errors, and at the end everything was all right.

randomjpg

The final result:

randomcompile

Link for my code:

https://github.com/anagloriaac/WSQ/blob/master/WSQ06%20-%20Pick%20a%20Number

CC BY 4.0 WSQ06 – PICK A NUMBER by Ana Gloria Angulo is licensed under a Creative Commons Attribution 4.0 International License.