CYB 130 Week 4 Functional Programming

0 items
CYB 130 Week 4 Functional Programming
CYB 130 Week 4 Functional Programming
$8.00
  • Description

CYB 130 Week 4 Functional Programming

Write a 2-part program as follows:

  • Part 1: Write a function to convert Celsius to Fahrenheit.
  • Part 2: Write a function to convert Fahrenheit to Celsius.

Both of the functions (Celsius to Fahrenheit and Fahrenheit to Celsius) are the exact inverses of one another.

Test the program by converting 32 degrees Fahrenheit to Celsius and then the product of that function back to Fahrenheit.

Zip your Python .py file and submit the.zip file so the code can be validated.

Additionally, write a 1/2-page response to the following:

  • When you converted 32 degrees Fahrenheit to Celsius and back to Fahrenheit, did you get 32 again?
  • Try different numbers, and state when it does work and when it does not work. Explain why.

Submit your assignment using the Assignment Files tab.