1. the program must limit the number of incorrect guesses to seven (7), at seven incorrect guesses the player losses 2. the program must keep track of computer and player wins/losses and display those totals when the program closes 3. the program must continue to run until told to stop by the player
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
The following instructions are below. Also below, is what I have so far. The rest I couldn't figure out.



Steps to do-
First make variable that continue the program 1
use while loop and in condition check whether it is 1
Now use nested while loop as while loop given in your program
Now in output comment make total guess 0
ask user to continue or exit program
if user choose to exit
then display total win, loss
Step by step
Solved in 2 steps with 2 images









