Guess Number Problem

Have the computer generate a target value (1-6) using the Rnd function, scale the random numbers as integers using the Int function. Input an integer, check to see if it is the target number, display either “Correct” if guess  is right, or “Wrong” if incorrect.

 

Create a flowchart and VBA code to solve this problem. Create a command button on the spreadsheet named cmdGuessMe. Place the code under the Click event of a command button titled “GuessMe”.

 

Flowchart Solution

Sample Screen Shots

VBA Solution Code