C++ Drunk Mouse Program

Анульовано Опубліковано %project.relative_time Оплачується при отриманні
Анульовано Оплачується при отриманні

This program simulates how many moves it would take a drunk mouse trapped in a box with a checkerboard floor to touch all of the squares on the floor. Additionally this program will track which square was touched the most times, and how many times the mouse walks into the wall. #include#include#include#includeusing namespace std; struct squareType { int row; int col; int frequency; //optional int order }; const int MYMAXROW = 10; const int MYMAXCOL = 10; int allcovered(squareType grid[][MYMAXCOL]); void printGrid(squareType grid[][MYMAXCOL], int MouseRow, int MouseCol); void value(squareType grid[][MYMAXCOL], int &minrow, int &mincol); int main() { //declaring variables //int mouseLoc; int mouseMove; int numMoves; int wallHits; int i; int j; int current_col; int current_row; int minrow; int mincol; int minvalue; int MouseRow; int MouseCol; //initalizing variables numMoves = 0; wallHits = 0; i= MYMAXROW/2; j=MYMAXCOL/2; current_row = i; current_col = j; //declaring & initializing grid array squareType grid[MYMAXROW][MYMAXCOL]; for(i=0;i

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Complete ownership and distribution copyrights to all work purchased.

## Platform

any OS DEV C++

Odd Jobs

ID Проекту: #2928049

Про проект

Дистанційний проект Остання активність Dec 11, 2008