#include #include "frog.h" void main() { frog froggy; int distance; cout << "Enter distance from the origin --> "; cin >> distance; do { int blanks = 40 + froggy.move(); for (int j=0; j 0 && distance < froggy.getLocation()) || (froggy.getLocation() < 0 && distance > froggy.getLocation())); cout << "final position = " << froggy.getLocation() << endl; cout << "Number of moves = " << froggy.getMoves() << endl; }