1 room_temperatures = 2 3 input line = input() 4 while input line != 'quit': 5 7 8 9 {} 10 room_number, temp = input_line.split() room_temperatures[int (room_number)] = float (temp) input line input() Your code goes here

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter8: Advanced Method Concepts
Section: Chapter Questions
Problem 8RQ
icon
Related questions
Question

Multiple key-value pairs, each representing a hotel room number and current temperature, are read from input and added to room_temperatures. In sorted order of the keys, output each key-value pair that has a value less than 70.0. Begin each output with the key followed by the value, separated by a space.

1 room_temperatures =
2
3 input line = input()
4 while input line != 'quit':
5
7
8
9
{}
10
room_number, temp = input_line.split()
room_temperatures[int (room_number)] = float (temp)
input line input()
Your code goes here
Transcribed Image Text:1 room_temperatures = 2 3 input line = input() 4 while input line != 'quit': 5 7 8 9 {} 10 room_number, temp = input_line.split() room_temperatures[int (room_number)] = float (temp) input line input() Your code goes here
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,