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

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 2PE
icon
Related questions
Question

use jave and while loops

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!
Transcribed Image Text: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!
2.10.4: Making Taffy
public class Taffy extends ConsoleProgram
public void run()
{
System.out.println("Starting Taffy Timer...");
// Enter code here
}
Transcribed Image Text:2.10.4: Making Taffy public class Taffy extends ConsoleProgram public void run() { System.out.println("Starting Taffy Timer..."); // Enter code here }
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Matrix multiplication
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT