Enter List Positive Numbers Terminate 0 Array Without Using Sort Find Largest Number Array Q23194885
enter a list of positive numbers (terminate by 0) intoan array. Without using a sort find the largestnumber in the array, and output the result. Create and use:
a function to input the numbers and make sure they areintegers,
a function to find the largest number (write your own function,don’t use the python max or sort functions), and
a function to output the result.
example Interaction (the red text is not part of theoutput):
Please input a list of integers.To finish entering the integers, input a “0” for the value.Please input an integer < 0 to finish >: 4Please input an integer < 0 to finish >: 6Please input an integer < 0 to finish >: 54Please input an integer < 0 to finish >: 87Please input an integer < 0 to finish >: 12Please input an integer < 0 to finish >: 1.5 (NOTE: not a valid input)I was expecting an integer number, please try again…Please input an integer < 0 to finish >: 8Please input an integer < 0 to finish >: asdf (NOTE: not a valid input)I was expecting an integer number, please try again…Please input an integer < 0 to finish >: 98Please input an integer < 0 to finish >: 0The maximum value is: 98