Answer:
# input the number of temperatures required, which will be 10 here, but the user can print any number.
n=input("Enter the number of temperatures you want")
# create a list which can have n temperatures since it starts from 0, the maximum is n-1, and n needs to be converted to an integer.
temp= [0,int(n)-1]
#declared a variable of float type. As its 0.0 it will be a float, if 0 then integers, and so on
s=0.0
#running a for loop n times, and hence 0 to n-1.
for i in range(0, int(n)):
temp[i]=input("Enter the temperature in degree celsius in float")
s=s + float(temp[i])
i=i+1
print("The sum of the temperatures is:{0:0.1f}", +s)
Explanation:
The question from edhesive is: You need to write a program that calls for ten temperatures and then find the sum of temperatures. The temperature should be in float, which is expected. And the program is as being mentioned in the answer section.
A compiler is often used when you want to test your code; that would often be your second step.
Answer:
The correct answer to the following question will be "True".
Explanation:
The "kernel" as shown at the core of your OS would be the central machine program. The program facilitates the essential functions of a computer processor, including coordinating activities, executing programs, and managing devices. This allows users to define a series of directions to try to resolve the connections to running program files in an order of preference.
So, the given statement is true.
Answer:
The correct option is communication diagram
Explanation:
The communication diagram represents the change of values for an item by a system.
A communication diagram is an expansion of the diagram of objects showing the objects together with the texts traveling from one to another. Besides the connections between objects, the communication diagram demonstrates the messages that the objects send to one another.
The correct option is a) communication diagram