Write an algorithm and draw a flowchart to check for temperature.If its below 25 degree print Cold else print HOT
Question
Write an algorithm and draw a flowchart to check for temperature.If its below 25 degree print Cold else print HOT
Solution
Algorithm:
- Start
- Declare a variable, say
temperature. - Input the value of
temperature. - If
temperatureis less than 25, then go to step 5. If not, go to step 6. - Print "Cold" and go to step 7.
- Print "HOT".
- Stop
Flowchart:
Start
|
V
Input temperature
|
V
temperature < 25 ?
| |
Yes No
| |
V V
Print Print
"Cold" "HOT"
| |
V V
End End
Similar Questions
Write code that allow the user to enter the temperature in degrees Celsius. The program should convert it and print it in Fahrenheit degrees using the following formula: Fahrenheit = (Celsius * 9/5) + 32 For example, if the user enters 0, then the program will print "Temperature in Fahrenheit: 32.0"
Draw and label a graph of water at 100°C beingallowed to cool to −5°C
The list below includes the temperature for 13 days. Let the user to input one number and add it in the beginning of the list. write code to print any value in the list that is greater than 40.Use the following list[35, 33, 37, 40, 41, 44, 40, 39, 45, 38, 40, 42, 47]
Create an array to store temperatures. Read N temperatures recorded in a day. Create another array to represent the updated temperatures. Copy the elements of the temperature array into the updated temperature array and increment the elements of the temperature array by a value of 10 if the temperature is >30.Print the updated temperature.Print the temperature.
Use the chart to put the temperatures in order from coldest to warmest.
Upgrade your grade with Knowee
Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.