Reference no: EM132354133
Question
You need help with this Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions. Both of these functions should be defined in a custom module named temps.
Custom function c_to_f should be a void function defined to take a Celsius temperature as a parameter. It should calculate and print the equivalent Fahrenheit temperature accurate to three decimal places.
Custom function f_to_c should be a value-returning function defined to take a Fahrenheit temperature as a parameter.
This function should calculate the equivalent Celsius temperature and return it. In the main function, your program should:
prompt the user to enter a temperature (as a float type).
indicate the temperature scale of the temperature just entered.
call the appropriate function from the temps module.
if the Celsius temperature is being determined, it should be displayed accurate to three decimal places.
EXAMPLE OUTPUT 1
Enter a temperature 32
Was that input Fahrenheit or Celsius c/f? f
32.0 Fahrenheit equals 0.000 Celsius
EXAMPLE OUTPUT 2
Enter a temperature 100
Was that input Fahrenheit or Celsius c/f? c
100.0 Celsius is 212.000 Fahrenheit
Define the custom function with three integer parameters
: Define the custom function with three integer parameters; one for how many numbers to generate, another for the low value of the range.
|
Do a real-time structured analysis
: ITECH 7410: Software Engineering Methodologies - Real-Time Structured Analysis for the RMT considering the aforementioned steps and the Special Remark
|
Find out what their vision and mission statements
: Please review one or two of your favorite companies and find out what their vision and mission statements are, discuss how they are related to what you learned
|
Hooking your audience
: "Hooking Your Audience", What story or data point are you using to hook and connect with the audience?
|
Convert a fahrenheit temperature to celsius
: Convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions.
|
Identify the alternate tools available to management
: How any potential borrower requesting the same type of credit may manage exposure to interest rate risk? Identify the alternate tools available to management?
|
Construct a function with the following signature
: That is, given two tuples, each containing a pair of floats representing the latitude and longitude of a point on Earth, calculate their Cartesian distance.
|
Patton uses the term preponderance of evidence
: Patton uses the term "preponderance of evidence" to describe "best fit" between the data a researcher gathers and the patterns and conclusions he or she draws
|
Simulate compute-client and compute-server interaction
: Simulate compute-client and compute-server interaction, you don't have to run them on two physical machines. Instead, they can be run on two JVMs
|