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.
Explanation:
On October 31, around twelve o'clock at night, the lights were dull. It was Siberian cold and I was walking painfully under the whitish lighting of a lamppost and the retro neon lights of a convenience store in a neighborhood that was buzzing when I went to buy meat. buildings, grayish in this half-light, crumbled under the weight of sleep, while the neighborhood was still open. Its decoration was particularly macabre in tone: synthetic but very sticky spider webs adorned the porches of the terraces, pumpkin ornaments are exhibited like works of art, ... Some pushed the macabre by hanging mannequins made up in corpses. At the entrance to the neighborhood, I found the body of its owner stabbed. Frozen in place, I wondered what else awaits me. My heart was pounding, feeling a shiver of anguish. When I was removing the phone from my pocket to call my police friends, my hands were clenched in fear. An investigation was carried out to find out the causes of death. Also, I went with them so they take my words. Hopefully the murderer will be arrested to put an end to this sybilinous crime.
This belief reflects an omnipotent view of management.
Answer:
The correct pseudocode to find the records of all citizens over the age of 50 is IF(age > 50).
OR EACH item IN citzlist
{
WHILE(not end of citzlist)
{
IF(age > 50)
{
DISPLAY(name)
}
}
}
If this is run, it will bring out all the names of the citizen who are over the age of 50 in the list.
Explanation: