1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Dovator [93]
3 years ago
6

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 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!
Computers and Technology
1 answer:
hichkok12 [17]3 years ago
3 0

Answer:

The solution code is written in Python 3.

  1. temp = int(input("Enter current temperature (Fahrenheit): "))
  2. while(temp < 270):
  3.    temp = int(input("Enter current temperature (Fahrenheit): "))
  4.    
  5. if(temp > 330):
  6.    print("You burned the taffy!")
  7. else:
  8.    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).

You might be interested in
Write an application for Cody’s Car Care Shop that shows a user a list of available services: oil change, tire rotation, battery
Firdavs [7]

An application for Cody’s Car Care:

#include <iostream>

#include <string>

#include <vector>

using namespace std;

int main()

{

vector<string>stroptions(4);

stroptions[0] = "Oil Change";

stroptions[1] = "Tire Rotation";

stroptions[2] = "Battery Check";

stroptions[3] = "Brake Inspection";

 

vector<int> intprices(4);

intprices[0] = 45;

intprices[1] = 22;

intprices[2] = 15;

intprices[3] = 10;

 

int option;

cout<< "Welcome to Joe's Car Care Shop!" <<endl;

cout<< "Choose a service from our menu:" <<endl;

for(int i = 1; i<= 4; i++)

{

  cout<< "#" <<i<< ": " <<stroptions[i-1] <<endl;

}

cout<< "Choice: ";

bool loop = true;

while(loop)

{

  loop = false;

  cin>> option;

 switch(option)

  {

   case 1:

     cout<< "\nA " <<stroptions[option-1] << " will be: $" <<intprices[option -1] <<endl;

     break;

   case 2:  

     cout<< "\nA " <<stroptions[option -1] << " will be: $" <<intprices[option -1] <<endl;

     break;

   case 3:

     cout<< "\nA " <<stroptions[option -1] << " will be: $" <<intprices[option -1] <<endl;

     break;

   case 4:

     cout<< "\nA " <<stroptions[option -1] <<" will be: $" << intprices[option -1] <<endl;

      break;

    default:

     cout<< "\nYou entered an invalid item! Try again!" <<endl;

     loop = true;

     break;

 }

}

}

3 0
3 years ago
Which is the largest unit of measurement for computer data?
Vikki [24]

Answer:

A Yottabyte

Explanation:

The units of measurement for data are as follows

  • Byte, B, 8 bits
  • Kilobyte, KB, 1024 bytes
  • Megabyte, MB, 1024 kilobytes
  • Gigabyte GB, 1024 megabytes
  • Terabyte TB, 1024 gigabytes
  • Petabyte PB, 1024 terabytes
  • Exabyte, EB, 1024 petabytes
  • Zettabyte, ZB, 1024 exabytes
  • Yottabyte, YB, 1024 zettabytes
4 0
3 years ago
A database is an organized collection of systems files.
Alecsey [184]
True? are you asking true or false?
3 0
3 years ago
Read 2 more answers
.Match the following
vampirchik [111]

The Match up are:

  • Malware - Antivirus
  • misconfiguration - No authentication
  • Spoofing - Fake identity
  • Infected files -Trojan horse​
<h3>What is spoofing?</h3>

Email spoofing is known to be a form of attack where an attacker is said to makes the 'from address' in an email to look a lot  like legitimate.

Hence, The Match up are:

  • Malware - Antivirus
  • misconfiguration - No authentication
  • Spoofing - Fake identity
  • Infected files -Trojan horse​

Learn more about Spoofing from

brainly.com/question/11831402

#SPJ1

5 0
2 years ago
_____________ are things people want in order to be happy and feel good.
bogdanovich [222]
I think it would be B! Desires!
7 0
3 years ago
Read 2 more answers
Other questions:
  • When troubleshooting a desktop motherboard, you discover the network port no longer works. What is the best and least expensive
    10·1 answer
  • Customers access the internet through what usually for a monthly fee
    14·1 answer
  • When you write a C# program that stores a value in a variable, you are using temporary storage; the value you store is lost when
    12·1 answer
  • Which term refers to actions that you would typically perform on a computer to revive it even if it functions in an unexpected m
    15·1 answer
  • What will you see on the next line?
    6·2 answers
  • Document templates are available online.<br> True<br> False
    8·2 answers
  • Please answer it’s timed
    11·1 answer
  • HELP FAST PLEASE
    6·1 answer
  • I do not understand what the are asking in csys 1.3.6
    12·1 answer
  • Need help with this, will give brainliest
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!