Question: Write a program that prompts a user to enter values for three lists, converts the three lists to a 3 - D array of type
Write a program that prompts a user to enter values for three lists, converts the three lists to a D array of type float, and then splits the array into three separate arrays. Use the instructions below to complete this program.
Write a function def fillList that gets the user input for a list we will reuse this function
you will need to create a new list inside the function,prompt the user for input, anduse a while loop to add the input to your listreturn the list
In the main function:
call the fillList function to fill three different listscreate a D array of type floatprint the arraysplit the array into three D arraysprint the three arrays
A sample program run:
Enter numbers for the list Q to quit: Q Enter numbers for the list Q to quit: Q Enter numbers for the list Q to quit: Q
Comparison tests will be used to test your code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
