Write a program to determine whether it is possible to exit


Problem

A maze is to be represented by a 10 10 array of an enumerated data type composed of three values: Path, Hedge, and Exit. There is one exit from the maze. Write a program to determine whether it is possible to exit the maze from a given starting point. You may move vertically or horizontally in any direction that contains Path; you may not move to a square that contains Hedge. If you move into a square that contains Exit, you have exited. The input data consists of two parts: the maze and a series of starting points. The maze is entered as 10 lines of 10 characters (P, H, and E). Each succeeding line contains a pair of integers that represents a starting point (that is, row and column numbers). Continue processing entry points until end of file.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to determine whether it is possible to exit
Reference No:- TGS02652519

Expected delivery within 24 Hours