subject

1temperature3.7 2 celsius = true 4 #you may modify the lines of code above, but don't move them ! 5 #when you submit your code, we'll change these lines to 6 #assign different values to the variables. 8 #above are given two variables. temperature is a float that 9#holds a temperature. celsius is a boolean that represents 10 #whether the temperature is in celsius; if it's false, then 11 #the given temperature is actually in fahrenheit. 12 # 13 #add some code below that prints "freezing" if the values 14 above represent a freezing temperature, and "not freezing" 15 #if they don't. 16 #in celsius, freezing is less than or equal to 0 degrees 17#. 18 #in fahrenheit, freezing is less than or equal to 32 degrees. 19 #add your code here! 20 if celsius: 21 if celsius< -0: print("freezing" ) 23 else: 2 4 25 if celsius: if temperature> 0:

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
The "instance" relationship shows that something is an object of a
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_cost should be removed since header files should not contain constants.c)the definition of book should be removed since header files should not contain class definitions.d)the body of the calculate_terms function should be added to the header file.
Answers: 1
question
Computers and Technology, 22.06.2019 22:30
Who needs to approve a change before it is initiated? (select two.) -change board -client or end user -ceo -personnel manager -project manager
Answers: 1
You know the right answer?
1temperature3.7 2 celsius = true 4 #you may modify the lines of code above, but don't move them ! 5...
Questions
question
World Languages, 03.11.2020 06:20
question
Mathematics, 03.11.2020 06:20
question
Physics, 03.11.2020 06:20
Questions on the website: 13722363