this has to be coded in c ++
• Write a program which generates a DIFFERENT random number between1 and 100 everytime you run the program. Please go online and seehow poeple are trying to
solve this. You can submit their code. Make sure you include acomment which shows
from where the code was taken. You do not need to understand thecode but if you
can, thats great. This program will be used in the upcoming labs soyou are strongly
encouraged to do it now so that you can use it later.
• Using the code from Part 1, play a game where you have to guessthe random number
generated. When the user makes an incorrect guess, print a messagewhich says that
you either guessed too low or too high. The user gets a total of 5chances to guess
the number. If the user manages to guess the number within 5chances, then print a
message saying that the user won the game and took %d chances