The common field cricket chirps in direct proportion to the current tem­perature. Adding 40 to the number of times a cricket chirps in a minute, then dividing by 4, gives us the temperature (in Fahrenheit degrees). Write a program that accepts as input the number of cricket chirps in fifteen seconds, then outputs the current temperature.

Respuesta :

Answer:

chirps = int(input("Enter the number of cricket chirps in fifteen seconds: "))

temperature = chirps + 40

print("The temperature is: " + str(temperature))

Explanation:

*The code is in Python.

Ask the user to enter the number of cricket chirps in fifteen seconds

Use the given formula to calculate the temperature (Note that since the user enters the number of cricket chirps in fifteen seconds, I did not divide the sum by 4)

Print the temperature