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.

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question

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.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Matrix Factorization
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, advanced-math and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,