Gallery
Debug 5 .1. Freezing Point with starter code
Share
Explore
Debug 5 .1. Freezing Point with starter code

icon picker
The Task

Activity: Debug 5.1 Freezing Point 🐞 🧊

Start Here

A bug report has been has been submitted on this program. This program should check if a temperature entered means that it is freezing (0 degrees celsius or below) but it isn’t quite working right. Can you help fix it?
Run and explore the program to identify errors.
Refer to the code clips below to help you fix the errors.
Right click on your code and add a comment explaining what was wrong and how you fixed it.
Good luck! 🍀

sample output

Please enter temperature (degrees celsius): 0

The temperature is freezing
Please enter temperature (degrees celsius): -3

The temperature is freezing
Please enter temperature (degrees celsius): 1

The temperature is above freezing
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.