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

Answers

Answer 1

Explanation:

Here's my solution:

import java.util.Scanner; // We start by importing the Scanner, which enables us to put in values

public class Main // our class. Name doesn't really matter here.

{ // Open the brackets of the class.

   

public static void main(String[] args) { // This is our main method. It will run when we run the class.

    System.out.println("Starting Taffy Timer..."); // When we start the timer, we will print out that we do so

 Scanner re = new Scanner(System.in); // Import the scanner into the main method

 int temp; // Define the integer called temperature that the user will put in

 do { /* This is a do while loop -- it will go through the loop, and then it will check the value.

      I decided to use this because we can define temperature without checking the value first.

     What this loop is doing is taking in the temperature, and then checking if it's right. If

     it's a high enough temperature, it will tell the user that it's ready, but if not, it won't. */

     temp = re.nextInt(); // Allow the user to enter in the temperature

     if(temp >= 270) { // if it's high enough, say that it's ready

         System.out.println("Your taffy is ready for the next step!");

         

     }

     else { // if not, don't

          System.out.println("The mixture isn't ready yet.");

         

     }

 }

 while(temp < 270); // This makes sure that if it's ready for the next step, we don't have to continue

}

}

Answer 2

The program is an illustration of loops.

Loops are used for repetitive operations;

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main{

public static void main(String[] args) {

 //This creates a Scanner object

 Scanner input = new Scanner(System.in);

 //This declares temperature as integer

 int temp;

 //This prompts the user for input

 System.out.print("Starting Taffy Timer...\nEnter the temperature: ");

 //This gets the input from the user

 temp = input.nextInt();

 //The following iteration is repeated until the user enters at least 270

 while(temp<270){

     //This prompts the user for another input

     System.out.print("The mixture isn't ready yet.\nEnter the temperature: ");

     //This gets another input from the user

     temp = input.nextInt();

 }

 //This is printed, when the user enters at least 270

 System.out.print("Your taffy is ready for the next step!");

}

}

The above program is implemented using a while loop

Read more about similar programs at:

https://brainly.com/question/14168935


Related Questions

write c program to check character is alphabate or not?​

Answers

Lookup the isalpha() function in the C standard library, this function will check and return non-zero for alphabetic characters.

What is an avenue in a Karel world?

Answers

Answer:

Karel's World  contains horizontal streets (running east-west) and vertical avenues (running north-south). can contain interior wall sections that are positioned between adjacent street corners and prevent Karel from moving directly between these street corners.

A ______ system is one in which you duplicate functions in order to improve the reliability and availability of a system.

Answers

Answer:

Redundant

Explanation:

A redundant system is one in which you duplicate functions in order to improve the reliability and availability of a system. The system acts as a backup in case of a failure reducing downtime.This can be seen implemented in a network infrastructure where alternative network paths are available in case the primary route fails An example is the Fibre Distributed Data Interface (FDDI) that has a dual ring configuration, with one of the rings being redundant and used as an alternative connection when the primary ring fails.

how to write assembly code for flow chart

Answers

Why in assembly???

Don't get me wrong assembly is a very powerful low level programming language but it is difficult and the programs written in it are long and require deep understanding of embedded programming. It also fluctuates (it's syntax changes) on different processor architectures so the program compatibility with OS or computer itself is hard to reach. Don't try to write assembly code unless you really know what you are doing, instead choose higher level programming language like C or C++ that supports low level functionally which I'm assuming you need since you talk about assembly.

1) Using the density equation d=m/V: What is the density of a piece of metal with a mass o
87.6g and a volume of 11.2cm??​

Answers

Answer:

density= 7.8214 g/cm^3

Explanation:

Mass = m = 87.6 g

Volume = V = 11.2 cm^3

density = m/v

            = 87.6 g/ 11.2cm^3

            = 7.8214 g/cm^3

Need help asapppp!

10pts pic attached



A cloud service provider offers web mail services to its subscribers. Which cloud service model does this depict ?


A. CaaS
B. MaaS
C. PaaS
D. SaaS

Answers

Answer:

D. SaaS

Explanation:

What is the name of the nearest major galaxy to Milky-Way ?

Answers

The Andromeda Galaxy would be my answer.

The Receiver recognizes the sounds the Sender is making and transforms them into words and ideas in his own mind. What is this
process called?
Brainstorming
Encoding
Decoding
Transforming

Answers

Answer:

Decoding is the technique used to convert an electrical signal into an understandable message. This process is used in receiver side.

Explanation:

In telecommunication, Decoder is used to to interpret the message sent by transmitter in to an understandable message. This process is called decoding

please make a list of six machines. Three of the machines should be electric and three of the machines should be non-electric or manual. For each machine, list where its energy comes from and what its purpose is. Then make a guess about whether or not you think it has a computer in it.


help please ;;

Answers

Final answer:

The list includes six machines with different sources of energy and varying purposes. Electricity-powered machines often have computers, while manual machines do not. Machines use energy to perform diverse functions.

Explanation:

Here is a list of six machines, including both electric and non-electric:

Electric refrigerator: Energy comes from electricity; purpose is to preserve food at low temperatures. Likely has a computer for temperature regulation.Electric kettle: Energy comes from electricity; purpose is to boil water. May have a simple computer for temperature control.Washing machine: Energy comes from electricity; purpose is to clean clothes. Usually has a computer to manage washing cycles.Manual can opener: Energy comes from human muscle power; purpose is to open cans. Does not have a computer.Bicycle: Energy comes from human muscle power; purpose is to provide transportation. Traditional bicycles do not have a computer, but newer models might include one for various functions.Hand-cranked flashlight: Energy comes from human muscle power; purpose is to provide light. Does not have a computer.

In summary, machines use energy in various forms to perform their functions. The energy comes from different sources, such as electricity or human effort, and some machines may have built in computers to assist with their operation.

Which option keeps two paragraphs together for the purpose of comparing or contrasting?

Answers

Answer:

keep lines together option

Explanation:

In Ms word keep lines together option keeps paragraph together.To enable this option do the following steps

Right-click the heading.

From the context menu, choose Paragraph option.

Click the Line and Page Break tab.

In the Pagination section of Line and page Break tab , check the Keep Lines Together option.

Click Ok.

Answer: CCC

Explanation:

I need help answering answers for my work

Answers

Answer:

The answer to the first question is exactly what you have mentioned. Details are:

    1. "C" Get more sleep.

     2. "A" Keep the payoff in mind.

     3. "A" and definitely, as no parent is going to think against the bright future of a child.

And they do so much for the child, and without ever thinking about any profit. Also, they are doing the purest job, and they come even ahead than a Postman and a teacher. Hence, I am not bothered even a little and confirmed that the fourth part which is not shown is definitely not an answer.

Explanation:

The answer to the first question is exactly what you have mentioned. Details are:

    1. "C" Get more sleep.

     2. "A" Keep the payoff in mind.

     3. "A" and definitely, as no parent is going to think against the bright future of a child.

And they do so much for the child, and without ever thinking about any profit. Also, they are doing the purest job, and they come even ahead than a Postman and a teacher. Hence, I am not bothered even a little and confirmed that the fourth part which is not shown is definitely not an answer.

What shows the web address of the page that is currently displayed in the workspace?

Answers

Answer:

In a web browser, the address bar (also location bar or URL bar) is a GUI widget that shows the current URL. The user can type a URL into the bar to navigate to a chosen website.

In the following situations, determine a valid identifier following standard naming conventions. For example, the total amount of a grocery bill could use the identifier groceryBill.

a variable representing the force applied to a crankshaft
a variable representing the number of images
a class representing delivery trucks
a constant representing the golden ratio
a method reporting annual earnings

Answers

A variable representing the force applied to a crankshaft could use the identifier "crankshaftForce" or "appliedForce".

What represents images?

A variable representing the number of images could use the identifier "numImages" or "imageCount".

A class representing delivery trucks could use the identifier "DeliveryTruck" or "TruckDelivery".

A constant representing the golden ratio could use the identifier "GOLDEN_RATIO" or "goldenRatio".

A method reporting annual earnings could use the identifier "reportAnnualEarnings" or "annualEarningsReport".

When choosing identifiers, it's important to follow standard naming conventions to ensure that your code is easy to read and understand by other developers.

Some general naming conventions include using camel case for variable and method names (e.g. myVariableName), and using uppercase for constants (e.g. MY_CONSTANT).

Read more about naming conventions here:

https://brainly.com/question/29638342

#SPJ1

15
Select the correct answer.
What is the phenomenon called when a camera itself accurately controls the exposure in the image?
A.
aperture priority mode
B.
shutter priority mode
C.
automatic shutter bracketing
• D. automatic exposure bracketing
E. aperture secondary mode

Answers

Answer:

D

Explanation:

"Itself accurately controls the exposure in the image"

Automatic Exposure Bracketing

Final answer:

The phenomenon where a camera controls the exposure is called Programme Auto, where it selects the ISO, shutter speed, and aperture. Aperture Priority and Shutter Speed Priority are semi-automated modes where the photographer has more control over certain settings.

Explanation:

The phenomenon when a camera itself accurately controls the exposure in the image is known as Programme Auto. This mode is fully automated, where the camera selects the ISO setting, the shutter speed, and the aperture to achieve the correct exposure.

Unlike Aperture Priority and Shutter Speed Priority, which semi-automate the exposure settings, Programme Auto makes all decisions for the photographer, ensuring an optimal exposure for the given conditions.

In Aperture Priority mode, you select the ISO and the aperture, and the camera selects the correct shutter speed. In Shutter Speed Priority, you select the ISO and shutter speed, while the camera selects the aperture.

suppose that f(x)=4x-1 and g(x)=-2x+5. For which values of x is f(x)>0?​

Answers

Answer:

f(x) = 4x -1

Consider the scenario when f(x) =0,

4x-1=0

x=1/4

Hence when x is more than 1/4, f(x) will be more than 0. This can be observed too by drawing a linear graph.

Explanation:

A binary operation is defined by a*b=ab if a*2=2-a find a​

Answers

Answer:

Value of a is [tex]2/3[/tex]

Explanation:

A binary operator is an operator that is applied to two or more operand like Subtract(-),Add(+),Multiply(x),Divide([tex]/[/tex]).

To find possible values of a

replace * with 'x' multiply operator in the provided operation.

so now the expressions in [tex]axb=ab\\2a=2-a[/tex]

[tex]2a + a = 2\\3a =2\\a=2/3[/tex]

So the possible value for a is [tex]2/3[/tex]

This type of memory improves processing by acting as a temporary high-speed holding area between the memory and CPU is what?

Answers

Answer:

Cache memory

Explanation:

Cache memory stores data temporarily before it went to the hard disk. During times where the user is doing something in the computer but has not clicked the save button yet, it will not be transferred to any storage devices. But the work is still there. You can see the document or images on your screen. The memory that saves it is called cache. But cache memory is not permanent. Meaning to say, the moment of a sudden power off, all data in the cache will be wiped out. Why cache memory? Since data stored in there are not permanent, it is faster (or highspeed). Once that it is transferred to a permanent storage like the hard disk, data retrieval will be a bit slower as data needs to be stored in allocated space and arrangement.

what is the largest size an image should be for use on the web​

Answers

Answer:

Largest size for image for web is between 1500px and 2400px width.

Explanation:

The best image size for web is between 1500px and 2400px in width.An image lower than 1500px will appear blurry and less color accurate with more noise.An Image higher than 2400px will be very good in quality and appearance but will negatively effect page load time of website which will result in overall bad experience.

Answer:

20k

Explanation:

Answers are

1 C

2 false

3 B

4 D

5 True

6 7 and 8 I don't know

9 is false

10 A

In what three scenarios would you want to use a slide presentation

Answers

Maybe if you're doing a report on a certain topic, or if you're doing some sort of Business Presentation, or... I don't know man, there's probably lots of answers. If you've got Answer choices, let me know.

On eBay, I found a 500 in 1 cartridge for Nintendo DSI and ds. Is it illegal to buy it? or would it be the supplier that's doing the illegal part?

Answers

Answer:

supplier

Explanation:

Answer:

supplier

Explanation:

Program on automorphic number

Answers

Answer:

The program to this question can be given as:

Program:

#include<iostream>//header file.

using namespace std; //using name namespace

void number(int n) //define function

{

int temp,s,c=1; //define variable.

temp=n; //holding value in temp variable.

s=n*n; // calculate square.

while (n!=0) //loop

{

//calculating value.

c=c*10;  

n=n/10;

}

if(s%c==temp) //if block

{

cout<<"Automorphic Number"; //print message.

}

else //else block

{

cout<<"Not Automorphic Number"; //print message.

}

}

int main() //main method

{

int n; //define variable n.

cout<<"Enter a number :"; //message

cin>> n; //input value.

number(n); //calling function.

return 0;

}

Output:

Enter a number :5

Automorphic Number

Explanation:

An Automorphic number is a value in which the square end has the same numbers as a number itself. The explanation of the above program as follows:

In the above automorphic number program, we define a function that is "number()" in the function, we pass variable n that is integer. Inside a function, we define a variable that is "temp, s, and c". The temp variable is used to for copy the number, s, and c variable is used for calculating the automorphic number. In the function, we define a loop that is "while loop" it entry control loop, in loop we define a conditional statement that checks that the calculated value which holds variable s and temp value is equal or not if condition is true, it will print "Automorphic Number" else it will print "Not Automorphic Number". Then we define the main method in the method we define a variable n and take value-form user and pass value to function then we call the function.

If Cecilia frequently send a presentation via email to her colleagues, she could add this command to the _____ to save time.

Answers

Final answer:

Cecilia could add the email command to the Quick Access Toolbar to expedite sending presentations to her colleagues. This tool is customizable and crucial for efficient workflow and professional email etiquette, including previewing presentations before sharing.

Explanation:

If Cecilia frequently sends a presentation via email to her colleagues, she could add this command to the Quick Access Toolbar to save time. The Quick Access Toolbar in programs like Microsoft PowerPoint allows users to add their most used commands for easy access. Adding a command to send an email directly from the presentation software could streamline Cecilia's workflow, ensuring that she can distribute her presentations more efficiently without navigating through multiple menus.

In professional settings, it's essential to maintain effective communication when working with colleagues. Copying the entire team on relevant correspondence by using the CC function ensures everyone is informed. However, one should use the 'Reply All' function selectively to avoid cluttering inboxes with unnecessary responses. Techniques like adding a clear and concise subject line, and proofreading emails before sending contribute to enhanced email etiquette and should be practiced diligently.

Moreover, it is recommended to add frequently used commands like Print Preview to the Quick Access Toolbar. This allows for reviewing the presentation's accuracy and organization before sending it to colleagues or clients, which is a crucial step to ensure the information is conveyed as intended.

Ryan is applying a sort to the data in a table that you have inserted in Word. Which option is important for most tables that have column headings?

A). Sort in descending order

B). Sort in ascending order

C). Select the option “My List has Header Row”.

D). Choose the correct sort field

Answers

Answer:

D). Choose the correct sort field

Explanation:

You can arrange in descending, or you can arrange in ascending. And C, has nothing to do with this requirement. You don't have this option available with you. Select the option, "My list has header row" is not available to us. And clearly, you need to choose the best sort field first. And then you can arrange or sort accordingly.

Answer:

d

Explanation:

Given the following code,
a = ['m', 'r', 'y']
b = ['e', 'r', '!']
ab = zip (a, b)

Which of the following statements will assign list a to x and list b to y?

Answers

Answer:

x = a

y = b

Explanation:

list a is  ['m', 'r', 'y']x = a

to assign list to another variable , need to initialise new variable and assign that variable to list a

where a = ['m', 'r', 'y']

now  x = ['m', 'r', 'y']

Similarly,

b = ['e', 'r', '!']

y = b

y = ['e', 'r', '!']

You want to connect an external hard drive for backups. Which is the fastest connection used by current external hard drives? What is the speed?

Answers

Answer:

Usb Type-C gen 2.It's speed is 10Gb/s.

Explanation:

Fastest connection available for an backup hard drive is usb Tape-C gen 2.It provides data transfer speed of 10Gbits/sec at full duplex.They can be identified as a super speed plus logo.The speed of backup drive also depends upon storage type.An SSD based backup drive will be faster than a legacy HDD based storage device.

Answer:

The fastest connection used is Thunderbolt 3

Explanation:

most recent computer have inbuilt varieties of  ports and connection types. a typical desktop or laptop have all or some these connections :

USB 2.0USB 3.0, USB 3.1eSATAFirewareEthernetGigabit EthernetThunderbolt

Thunderbolt can transfer at the speed of up to 40 Gbps making it the connection with the fastest transfer speed. it is been incorporated into the Mac series of computers produced by the Apple inc. this technology was deployed by Intel and it can be found in recent Mac books

Text can be inserted into a presentation by

Answers

Answer:

In order to insert text into a presentation, you add a text box from the insert menu. However, this could differ based on the software you are using. Hope this helps!

Answer:

yes indeed it is yes

Explanation:

rendering is a combination of the technical and the artistic. Explain this statement.

Answers

Rendering is a combination of the technical and the artistic.

Basically artistic is images which contains media image or video in the digital format when we do the analysis through computers or desktop.

Further on the images or video we need a set of computer program to do the more analysis for our specific outcome this is term is called rendering.

It is combination of both artistic and technical.

Mostly these methods are used for medical report for patient to do further analysis to care out for future treatment.

Even bio metric images are used on this methods.

One or more messages about the same topic is a ?

Answers

Answer:

This is the case of redundancy or the repeated data. It means that the same data is being repeated again and again. And its the wastage of time and memory both. The redundancy must be removed in all circumstances. However, we cannot as without it proper normalization of data is not possible.

Explanation:

The answer is self explanatory.

what is color resolution

Answers

Answer:Color resolution refers to the ability of each pixel to represent a number of color tones (also called color depth or bit depth). Color resolution is normally measured by the level of ability to express the intensity of the 3 primary colors (red, green, and blue).

Explanation:

Color depth or colour depth, also known as bit depth, is either the number of bits used to indicate the color of a single pixel, in a bitmapped image or video framebuffer, or the number of bits used for each color component of a single pixel.

What does a barcode reader emit to identify bar codes?
A.
electric pulse
B. magnetic pulse
sound
D.
E.
light
electromagnetic pulse

Answers

Answer:electromagnetic pulse

Explanation:

Answer: E light

Explanation:

Other Questions
The emotional center of the brain that is activated when a person with an addiction sees a person, place, or thing that reminds him of their addiction (e.g., needle, slot machine, white powder) is called the: You have a gift card for a coffee shop worth $90. Each day you use the card to get a coffee for $4.10. what is the value of the card after you buy your 8th coffee Jack keeps his music cd stuck in plastic boxes 3/8 inch thick.Use the method taught in this lesson to find the number of boxes in a stack 6 inches tall If the engine in a 1200 kg car could produce 10,000 N to accelerate from 0 to 27m/s, how much time would that take? Teresa is emotionally volatile, particularly with friends and boyfriends. She is extremely dramatic about even the smallest disappointments and is sexually and behaviorally very impulsive. Teresa would be considered to have ________ personality disorder. A mutation that has risen to high frequency through a selective sweep shows a characteristic pattern in which only one allele is found for other loci that occur nearest the selected mutation. Which of the following contribute(s) to this pattern? Wytes Pharmaceuticals wants to shift its list of inventory to a cloud so that its different branches can access it easily. The company needs a cloud computing option that would offer the highest cost savings and would require the least amount of involvement by IT managers. Which of the following cloud computing options would be the most suitable for Wytes Pharmaceuticals?a. A hybrid cloudb. A public cloudc. A private cloudd. A community cloud What type of figurative language is this two giant smokestacks stuck up from the middle of the ship one of them belching gray-black diesel engine smoke. n this example we will look at the periodic motion of an ultrasonic transducer, a kind of ultrasonic loudspeaker used for medical diagnosis. The transducer is oscillating at a frequency of 6.7 MHz (6.7106Hz). How much time does each oscillation take, and what is the angular frequency? From where the shoes spilled (48N, 161W) to where they were found on May 22nd 1996 (54N, 133W), how many kilometers did they travel? How many days did they take to travel that distance (use April 30 as the date found)? What was their rate of travel in kilometers per hour? Here is the question||||v 1 Evolution may be described as a change in the inherited characteristics of a populationover time through a process of natural selection. Suggest whether evolution always results in a new species, and a give a reason for your answer.No, because evolution can also produce new...... On January 1, 2018, Purdy Company enters into a contract to transfer Blue and Rain to Georgia Co. for $300,000. The contract specifies that payment for Blue will not occur until Rain is also delivered. In other words, payment will not occur until both Blue and Rain are transferred to Georgia. Purdy determines that standalone prices are $110,000 for Blue and $190,000 for Rain. Purdy delivers Blue to Georgia on February 10, 2018. On March 15, 2018, Purdy delivers Rain to Georgia. Purdy should record...(a)Accounts Receivable of $300,000 on January 1.(b)Accounts Receivable of $110,000 on February 10.(c)Contract Asset of $110,000 on February 10.(d)Contract Asset of $110,000 on January 1. please help! 9,000900=? What does the speaker mean when he says he "lordly had the trees and leaves"? a. He stayed outside as long as the sun was up. b. He felt powerful and important. c. He knew all the different plants growing near the farm. d. He was always hungry for apples. What was the result of NATO attacking Serbian forces Often crops are associated with regions other than the one in which they were developed. For example, the "Irish" or "Idaho" potato originated in the Andean Highlands. Corn of the American "Corn Belt" originated in _____a) West Africa.b) the Fertile Crescent.c) Central America.d) Southeast Asia. What is the difference between an authorization bill and an appropriations bill In skeletal muscle, a muscle fiber that generates a larger contractile force has a larger number of:a. mitochondria present. b. crossbridges formed. c. actin molecules present. d. nebulin and titin molecules present. e. thick and thin filaments present. Please help me with this!!!!!!!!!!!!!