Convert a list of whole numbers representing distances in miles to a list of the corresponding distances in kilometres, rounded to 1 decimal place. You should use a conversion factor of 1.61 from miles to kilometres. I need to provide the following: a) A high-level decomposition b) A description of what the inputs and outputs of the problem are. c) I need help to present two tests for the problem. Present the tests in a table, with a column for each input and output, and an extra column with a brief explanation of why you selected each test. d) I need help in presenting an algorithm for the problem by instantiating the pattern that has been chosen. e) To provide and implement this algorithm as a Python code. This must match the steps of your algorithm and you should use comments in the code to make it clear how the two correspond. 2: Given a list of whole numbers, if there is a value or values that exceed 100 the result should be the last such value found in the list. If there is no value that exceeds 100 the result should be the special Python value None.
Convert a list of whole numbers representing distances in miles to a list of the corresponding distances in kilometres, rounded to 1 decimal place. You should use a conversion factor of 1.61 from miles to kilometres. I need to provide the following:
a) A high-level decomposition
b) A description of what the inputs and outputs of the problem are.
c) I need help to present two tests for the problem. Present the tests in a table, with a column for each input and output, and an extra column with a brief explanation of why you selected each test.
d) I need help in presenting an algorithm for the problem by instantiating the pattern that has been chosen.
e) To provide and implement this algorithm as a Python code. This must match the steps of your algorithm and you should use comments in the code to make it clear how the two correspond.
2: Given a list of whole numbers, if there is a value or values that exceed 100 the result should be the last such value found in the list. If there is no value that exceeds 100 the result should be the special Python value None.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images