Write a program that constructs a list of floats and then applies a RECURSIVE function to find and print the largest num
Posted: Sun May 15, 2022 8:44 am
Write a program that constructs a list of floats and then
applies a RECURSIVE function to find and print the largest number
in the list. Specifically, first design and write a RECURSIVE
function find_largest that takes a list of floats as its argument
and returns the largest in the list
def find_largest (num_list):
Then, write a main function that takes a set of floating-point
numbers from the user (from keyboard), constructs a list for the
numbers and then applies the find_largest function to find and
print the largest one on screen.
(15 points) Write a program that constructs a list of floats and then applies a RECURSIVE function to find and print the largest number in the list. Specifically, first design and write a RECURSIVE function find_largest that takes a list of floats as its argument and returns the largest in the list. def find_largest (num_list): Then, write a main function that takes a set of floating-point numbers from the user (from keyboard), constructs a list for the numbers and then applies the find_largest function to find and print the largest one on screen. Save the program as lab13.py.
applies a RECURSIVE function to find and print the largest number
in the list. Specifically, first design and write a RECURSIVE
function find_largest that takes a list of floats as its argument
and returns the largest in the list
def find_largest (num_list):
Then, write a main function that takes a set of floating-point
numbers from the user (from keyboard), constructs a list for the
numbers and then applies the find_largest function to find and
print the largest one on screen.
(15 points) Write a program that constructs a list of floats and then applies a RECURSIVE function to find and print the largest number in the list. Specifically, first design and write a RECURSIVE function find_largest that takes a list of floats as its argument and returns the largest in the list. def find_largest (num_list): Then, write a main function that takes a set of floating-point numbers from the user (from keyboard), constructs a list for the numbers and then applies the find_largest function to find and print the largest one on screen. Save the program as lab13.py.