<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt"><div class="" style="">Hello,</div><div class="" style=""><br class="" style=""></div><div class="" style="background-color: transparent">I am new to Python. I mean completely new and we're working on this problem set in class where they give us specs and we have to build something based off these specs. I have no idea what they're asking. Could someone help get me started on the path to figuring this out?</div><div class="" style="background-color: transparent"><br class="" style=""></div><div class="" style="background-color: transparent">Below is the question:</div><div class="" style="background-color: transparent"><br class="" style=""></div><div class="" style="background-color: transparent"><div class="" title="Page 57" style=""><div class="" style=""><div class="" style=""><div class=""
 style=""><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">1. Write a program module with at least two functions. Follow this specifi- cation exactly for these two functions:</span></div><ol class="" style="list-style-type: none"><li class="" style=""><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">(a)  One function, </span><span class="" style="font-size: 14pt; font-family: LMMono12">CalculateCentimeters</span><span class="" style="font-size: 13pt; font-family: Utopia">, receives a value in inches and returns the equivalent value in centimeters.</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">centimeters </span><span class="" style="font-size: 13pt; font-family: Fourier-Math-Symbols">=</span><span class="" style="font-size: 13pt; font-family: Utopia">2.54</span><span class="" style="font-size: 13pt;
 font-family: Fourier-Math-Symbols">×</span><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">inches</span></div></li><li class="" style=""><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">(b)  The other function, </span><span class="" style="font-size: 14pt; font-family: LMMono12">CalculateInches </span><span class="" style="font-size: 13pt; font-family: Utopia">receives a value in centime-</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">ters and returns the equivalent value in inches. </span><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">inches </span><span class="" style="font-size: 13pt; font-family: Fourier-Math-Symbols">=</span><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">centimeters</span><span class="" style="font-size: 13pt; font-family:
 Utopia">/2.54</span></div></li></ol><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">... but you don’t 2.54 in your code 2 times. It’s a good candidate to be a module-level constant.</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">Specified instructions about the internals of code, i.e., the names of your functions and how they behave, is called the</span><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">internal specification</span><span class="" style="font-size: 13pt; font-family: Utopia">. It tells you, the author of the function, as well as programmers who call your function, how to call it and what to expect when it is called. You must following them </span><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">exactly </span><span class="" style="font-size: 13pt; font-family: Utopia">or call a
 meeting of your programming team because your choices here affect the others.</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">For this exercise, you design the rest of the functions for your program, but be careful to keep all the code in functions.</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">Invent and arrange functions as you wish to ask the user for:</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">(a) a value<br class="" style="">(b) a unit of measure</span></div><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">and call the appropriate function to print out the value in the other unit of measure.</span></div></div></div></div><div class="" style=""><div class="" style=""><div class="" style=""><div class="" style=""><br></div></div></div></div></div><div class="" title="Page
 58" style=""><div class="" style=""><div class="" style=""><div class="" style=""><div class="" style=""><span class="" style="font-size: 13pt; font-family: Utopia">Specified instructions about the user’s view of your code (like just given) is called the </span><span class="" style="font-size: 13pt; font-family: Utopia; font-style: italic">external specification</span><span class="" style="font-size: 13pt; font-family: Utopia">. Often the paying customer gives these directions so you must follow them exactly, doing things in the order given; but in this case, the internal design is up to you. </span></div></div></div></div></div></div><div class="" style=""><br style=""></div></div></body></html>