Question: Step 1: Write a program with two functions: InitArray() and PrintArray() . The program should create a 10 by 10 array of random integers (1

Step 1: Write a program with two functions: InitArray() and PrintArray(). The program should create a 10 by 10 array of random integers (1 - 100) in InitArray() and display the array in PrintArray(). (No global variables.)

Step 2: Create a bool function FindNumber() that accepts a number and returns its first location in the array.

Step 3: Add logic so that the user can guess a number and have the program return a message stating higher/lower for the x and y coordinates until they guess the number.

Bonus Step: Modify InitArray() so that no numbers are duplicated and change the logic so that the computer chooses the number and the user guesses the location.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!