Question: /* This function implements the Menu functionality It keeps track of the game modes RandPositions, stationary, and Random Fox movement which are then passed to
/* This function implements the Menu functionality It keeps track of the game modes RandPositions, stationary, and Random Fox movement which are then passed to other methods to alter functionality. Besides printing the menu, it sets the game modes(boolean variables passed as parameters) so make sure that they are set before exiting the function. */ void Menu(bool &RandPositions, bool &stationary, bool &randMove) { //FILL THIS FUNCTION }

Main Menu (1) Launch Import Positions from file (2) Random Positions (3) Stationary Rabbits (4) Moving Rabbits Random Fox Movement (6) Chase Fox Movement (7) (5) --------- ------ Stationary Rabbits : 1 Random Fox Movement : 1 Random Positions :1 Enter Action: Main Menu (1) Launch Import Positions from file (2) Random Positions (3) Stationary Rabbits (4) Moving Rabbits Random Fox Movement (6) Chase Fox Movement (7) (5) --------- ------ Stationary Rabbits : 1 Random Fox Movement : 1 Random Positions :1 Enter Action
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
