CS 1411, Fall 2017, Exam 1 Application, 15 PointsName 1. (5 Points) Suppose you
ID: 3585711 • Letter: C
Question
CS 1411, Fall 2017, Exam 1 Application, 15 PointsName 1. (5 Points) Suppose you have the variables num, maxnum, and minnum. Write the Python the value of maxnum if num is larger or the value of minnum if num is lower if-elif statement to change 2 (S Points) Write the Python code to input a filename from the user and open it for reading. Exception handiling should be used to inform the user if the file could not be opened. 3. (5 Points) Write the Python code for the user to enter 12 positive float numbers. Exception handling should be used so that if a non-number is entered, the user will be prompted to try again. If the user enters a negative number, the user also should be prompted to try again. The use of "break" or "continue" is not allowed.Explanation / Answer
If you post more than 1 question, as per chegg guidelines I have to answer only the fist one.
1.
if(num > maximum):
maximum = num
elif(num < minimum):
minimum = num