This commit is contained in:
lukew3
2020-10-21 14:34:42 -04:00
parent 55fb0a18f6
commit d647e9710f
31 changed files with 117 additions and 76 deletions

View File

@@ -4,10 +4,12 @@ from .__init__ import *
def celsiustofahrenheitFunc(maxTemp=100):
celsius = random.randint(-50, maxTemp)
fahrenheit = (celsius * (9 / 5)) + 32
problem = "Convert " + str(celsius) + " degrees Celsius to degrees Fahrenheit ="
problem = "Convert " + str(
celsius) + " degrees Celsius to degrees Fahrenheit ="
solution = str(fahrenheit)
return problem, solution
celsius_to_fahrenheit = Generator("Celsius To Fahrenheit", 81,
"(C +(9/5))+32=", "F", celsiustofahrenheitFunc)
"(C +(9/5))+32=", "F",
celsiustofahrenheitFunc)