Question: This has to be written in Python and run in Python 3. The second and third picture are what I have so far please let
happens if you divide by zero. We'll handle that condition later. Make sure that something like 0 10/5 is 2 and not 0.5. 6.11. Square roots write the 5th case so that it does square roots. Do a bit of research using your book interwebs to determine how to do square roots in Python. This case does not need to input from the user. does the square root on the value already in the accumulator. T the program, but make sure you start with a positive number in the accumulator. Then add an ifelse statement inside this part of the program that checks to see if the accumulator is negative. If it is not negative, do the square root normally. If it is negativ the message "Not taking square root of negative number and leave the accumulator the way it is. It will be written sort of like this: if opt 1: stuff elif opt 2: stuff elif opt 5: check if the accumulator is negative if something: do something e use do something etse else stuff 6.12. Clear the accumulator For case 6 just store the value o o into the accumulator variable. This works just like the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
