Question: 1. Implement a Fahrenheit function that returns the Fahrenheit equivalent of a Celsius temperature. Use the following formula: F = (9/5) * C + 32

1. Implement a Fahrenheit function that returns the Fahrenheit equivalent of a Celsius temperature. Use the following formula:

F = (9/5) * C + 32

Use this function to print a chart showing the Fahrenheit equivalents of the Celsius temperatures in the range from 1-100. Print the results in a neat tabular form with one digit of precision.

2. Create a number that plays a guess the number game. Use a random number generator that chooses a number between 1 and 1000. It should not be revealed to the user until they guess the number correctly. It should prompt the user to input a number between 1 and 1000. If the guess is wrong, it should either let them know if the guess was too high or too low along with try again. It should congratulate them once they guess correctly, how many guesses it took, and ask them to play again.

3. Create a script that helps a student learn multiplication. Create a function that randomly generates two single digit integers. Use the functions result in your script to prompt the user a question such as How much is 6 times 7?. If the answer is correct, it should say Very good! and ask another multiplication question if the user wishes to do another question. If it is incorrect, it should ask the user to try again and continue to do so until it is correct. Please demonstrate that both operations work correctly.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!