Question: C + + After each line is displayed, test for whether either animal has reached or passed the last block. If so , display the
C After each line is displayed, test for whether either animal has reached or passed the last block. If
so display the winner and terminate the simulation.
a If the tortoise wins, display
Yay!!! tortoise wins!
b If the hare wins, display
Yuck, hare wins.
c If both animal win on the same tick of the clock, you can print out
It is a tie.
Write comments, which include but not limit to the author's name, email, purpose, key ideas and
sample output.
You need to finish this project by yourself.
Task A
Hare hpp is provided.
Define Hare.cpp which implements constructors and methods in Hare.hpp Submit only Hare.cpp
no need to add main function to gradescope.Define Hare.cpp whic. implements constru no need to add main function to gradescope.
Test Hare.cpp in local computers
Comment private: in Hare.hpp for data members.
Edit the following main.cpp
Hinclude arr;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
