Solved:

Checkmark

Answered by AI, Verified by Human Experts

When you make taffy (a pliable candy), you must heat the candy mixture to 270 degrees Fahrenheit.

When you make taffy (a pliable candy), you must heat the candy mixture to 270 degrees Fahrenheit.Write a program that will help a cook make taffy. The cook should be able to enter the temperature reading from his/her 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!.

Here is a sample run of what it should look like:

Starting Taffy Timer...
Enter the temperature: 40

The mixture isn't ready yet.
Enter the temperature: 100

The mixture isn't ready yet.
Enter the temperature: 200

The mixture isn't ready yet.
Enter the temperature: 300
Your taffy is ready for the next step!
Make sure that your output matches this sample run!

How I do dis in java

Theprogramis an illustration ofloops.Loopsare used forrepetitive operations;TheprograminJava, wherecommentsare used to explain each line is as follows:import java.util.*;public class Main{public static void main(String[] args) {//ThiscreatesaScannerobjectScanner input = new Scanner(System.in);//Thisdeclarestemperature asintegerint temp;//Thispromptsthe user forinputSystem.out.print("Starting Taffy Timer...\nEnter the temperature: ");//This gets theinputfrom the usertemp = input.nextInt();//The followingiterationisrepeateduntil the user entersat least 270while(temp<270){//Thispromptsthe user foranother inputSystem.out.print("The mixture isn't ready yet.\nEnter the temperature: ");//This getsanother inputfrom the usertemp = input.nextInt();}//This isprinted, when the user entersat least 270System.out.print("Your taffy is ready for the next step!");}}The aboveprogramis implemented using awhile loopRead more aboutsimilar programsat:brainly.com/question/14168935...

Unlock full access for 72 hours, watch your grades skyrocket.
For just $0.99 cents, get access to the powerful quizwhiz chrome extension that automatically solves your homework using AI. Subscription renews at $5.99/week.