Last time, we saw that we can use a binary decision to specify a counting loop. We can expand that so that we can incorporate a decision within our counting loop. In the flow chart below, we will have two decisions: one to implement a counting loop and another to implement a binary decision, as we prepare to find a series of absolute values. Please keep in mind that an absolute value for a positive number is the number itself. However, the absolute value for a negative number requires that either remove the sign or change the negative sign to a positive sign. Our flow chart looks like this:
The decision on the right side of the chart controls our loop, while the decision on the left control which of two methods we use to print the absolute value.
Create a Python program that will allow the user to enter a value n. The program will repeat the following sequence of instructions n times.
You will submit a flowchart, pseudocode as well as the Python program