Show solutionHide solution
Question 10
Audit a software interface that silently changes units
A sensor reports a measured liquid delivery rate of 2.40 mL/s. A logging program expects a numerical entry in L/min and treats whatever number it receives as having that unit. The number 2.40 is transmitted unchanged. Use exactly 1000 mL per L and 60 s per min.
Diagram shown in the original SVG worksheet.
Calculate the correct numerical entry for the program.
Find the ratio of the interpreted rate to the intended rate, using a common unit.
For a measured 5.00 min run, compare the volume predicted by the unchanged entry with the correct volume, and propose one interface check.
Question 10 - Solution
Audit a software interface that silently changes units
Diagram shown in the original SVG worksheet.
(a) Convert the full rate
The number to enter in the program's L/min field is 0.144.
(b) Compare like units
The unchanged entry is interpreted as 2.40 L/min. HenceThe software interprets a rate about 16.7 times too large.
(c) Check an accumulated consequence
Transmit the numerical value together with an explicit unit, and verify the conversion with a known test rate before accepting data. The unchanged number alone cannot specify the physical rate.
Check and interpretation
Rate and time units cancel to give volume. The same factor-of-16.7 discrepancy appears in both rates and accumulated volumes.