![damilysgonzalez2](/avatars/46724.jpg)
damilysgonzalez2
12.12.2019 •
Computers and Technology
When you make taffy (a pliable candy), you must heat the candy mixture to 270 degrees fahrenheit. write a program that will a cook make taffy. the cook should be able to enter the temperature reading from their thermometer into the program. the program should continue to let the cook enter temperatures until the temperature is at least 270 degrees. when the mixture reaches or exceeds 270 degrees, the program should stop asking for the temperature and print your taffy is ready for the next step! . however, if the temperature ever reaches above 330 degrees, print you burned the taffy!
Solved
Show answers
More tips
- H Health and Medicine Hangover: How to Get Rid of It Quickly?...
- A Auto and Moto How to Start a Diesel Engine in Cold Weather?...
- A Auto and Moto Which alarm system to choose?...
- P Photography and Videography What is lens calibration and why is it needed?...
- S Science and Technology How to Choose a Picture Frame: Tips and Recommendations...
- P Photography and Videography Understanding HDR: How It Works and Why You Need It...
- P Photography and Videography How to Choose the Perfect Photo Paper for Your Images?...
- C Computers and Internet How to Choose an Uninterruptible Power Supply (UPS) for Your Computer: Expert Tips...
- S Science and Technology How to choose a home theater system?...
- A Auto and Moto How to Choose a Car Wash? Tips and Recommendations...
Ответ:
The solution code is written in Python 3.
temp = int(input("Enter current temperature (Fahrenheit): ")) while(temp < 270): temp = int(input("Enter current temperature (Fahrenheit): ")) if(temp > 330): print("You burned the taffy!") else: print("Your taffy is ready for the next step")Explanation:
Firstly, we can try to get a first temperature reading (Line 1)
if the first reading is smaller than 270, keep prompting user for the next reading using while loop (Line 3 - 4)
if the input temperature is bigger or equal to 270, the program will exist the while loop and proceed to check if the final temperature reading is bigger than 330 to determine an appropriate message to display (Line 6 - 9).
Ответ:
The 5 major religions of the world all began in the Eastern Hemisphere. Each grew in its hearth before diffusing to other areas. The Abrahamic faiths, Judaism, Christianity, and Islam, all began around the same vicinity, in the Middle East, while Hinduism and Buddhism both began in India.
Explanation: