Final answer:
To write a program called temperatures01 that reads a sequence of maximum daily temperatures, you can use a programming language like Python.
Step-by-step explanation:
To write a program called temperatures01 that reads a sequence of maximum daily temperatures, you can use a programming language like Python. Here is a possible solution:
Here is an example implementation in Python:
temperatures = []
while True:
temperature = input('Enter the maximum daily temperature (-999 to stop): ')
if temperature == '-999':
break
temperatures.append(int(temperature))
print('List of temperatures:', temperatures)
Here is a possible solution: Create an empty list to store the temperatures. Use a loop to ask the user for the maximum daily temperature and add it to the list until they decide to stop entering temperatures. Print the list of temperatures.