Goals: Review the design recipes, work with inexact numbers, review the design of loops using the accumulator style.
You will email this assignment to the professor by the deadline. You will attach to the email one .rkt file and one .txt file. The file names will be pairxx.rkt and pairxx.txt where you replace xx with your pair number.
On top of both files you will have the names of both partners, and the pair number.
The .txt file will be the log of your work on this assignment. Each log entry will have data and time, who was present (one or both of the partners) and a short comment decribing what you were working on.
Due Date: Thursday, September 13th, 11:59 pm.
Finish the problem with the mazes from the lab.
Design the following additional methods:
Design the method longest-path that produces a list of questions and the final reward for the longest path in the maze.
Design the method flip that produces a new maze where all answers are reversed. So, if before, the answer yes led you to question X, now it will be the answer no that leads you there.
Design the following methods (continuing the problem that dealt with distances traveled through a list of Posns):
Design the method total-distance-acc that computes the total distance by accumulating the total distance traveled so far as it traverses over the list of Posns. (This is the method you have started in the lab.)
Design the method has-loop that produces true if the path traverses through some point more than once (including the final destination).
Design the method all-visited that produces the list of all Posns along this route, but lists every point only once, even if it is visited more than once.