1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
MatroZZZ [7]
2 years ago
15

I need a Python program that will read a data file, perform an analysis, and write the results to a separate file with a .txt ex

tension. The data is the September temperature anomalies from 1910 to 2020 in North America. I want the program to find the average temperature anomaly of each decade, find the decade with the lowest average anomaly, and the decade with the highest average anomaly. After that the program needs to write its results on a separate .txt file.
Here is the data:

1910,-0.21
1911,-0.08
1912,-0.86
1913,-0.94
1914,-0.19
1915,-0.51
1916,-0.37
1917,-0.07
1918,-0.90
1919,0.21
1920,0.00
1921,0.12
1922,0.32
1923,0.08
1924,-0.63
1925,0.27
1926,-0.65
1927,-0.01
1928,-0.59
1929,-0.42
1930,0.15
1931,1.07
1932,0.17
1933,0.52
1934,-0.78
1935,-0.20
1936,0.12
1937,0.47
1938,1.35
1939,0.30
1940,1.01
1941,-0.39
1942,-0.23
1943,-0.04
1944,0.39
1945,-0.34
1946,0.10
1947,0.11
1948,0.66
1949,0.01
1950,-0.05
1951,-0.07
1952,0.32
1953,0.38
1954,0.39
1955,0.02
1956,-0.48
1957,0.30
1958,0.23
1959,-0.03
1960,0.44
1961,-0.57
1962,-0.19
1963,0.45
1964,-0.62
1965,-1.44
1966,0.47
1967,0.38
1968,0.04
1969,-0.04
1970,-0.44
1971,-0.07
1972,-1.12
1973,0.12
1974,-1.08
1975,-0.50
1976,0.24
1977,0.46
1978,0.22
1979,0.41
1980,-0.16
1981,0.22
1982,-0.10
1983,0.06
1984,-0.94
1985,-0.61
1986,-0.43
1987,0.76
1988,0.01
1989,0.16
1990,0.79
1991,0.10
1992,-1.01
1993,-0.57
1994,0.58
1995,0.56
1996,-0.16
1997,1.24
1998,1.70
1999,0.37
2000,0.20
2001,1.11
2002,1.00
2003,0.60
2004,0.24
2005,1.15
2006,0.56
2007,0.57
2008,0.35
2009,1.49
2010,0.82
2011,1.41
2012,1.40
2013,1.39
2014,0.75
2015,1.51
2016,1.39
2017,1.41
2018,0.31
2019,1.72
2020,0.73
Computers and Technology
2 answers:
Over [174]2 years ago
8 0

Answer:

You can follow below approach to open file and read from it. myfile = open("/Users/David/Desktop/test. txt","r") #returns file handle myfile. read() # reading from the file myfile.

Explanation:

melamori03 [73]2 years ago
6 0

Answer:

Given the size and tremendous heat capacity of the global oceans, it takes a massive amount of heat energy to raise Earth’s average yearly surface temperature even a small amount. The 2-degree increase in global average surface temperature that has occurred since the pre-industrial era (1880-1900) might seem small, but it means a significant increase in accumulated heat. That extra heat is driving regional and seasonal temperature extremes, reducing snow cover and sea ice, intensifying heavy rainfall, and changing habitat ranges for plants and animals—expanding some and shrinking others.  

Explanation:

You might be interested in
What is the purpose of a format painter in Word?
Bond [772]

Answer:

The format painter lets you copy all of the formatting from one object and apply it to another one – think of it as copying and pasting for formatting. Select the text or graphic that has the formatting that you want to copy. Note: If you want to copy text formatting, select a portion of a paragraph

Explanation: pls mark my answer as brainlist

3 0
2 years ago
Read 2 more answers
Write a program to calculate and return total surface area of a box using FUNCTION _END FUNCTION.​
Andrei [34K]

Answer:

def funct1():

   h=int(input("Enter height of the box"))

   w=int(input("Enter the width of the box"))

   L=int(input("Enter the length of the box"))

   surface_area=2*(h*w + h*L + w*L)

   return surface_area

a=funct1()

print(a)

Explanation:

Please check the answer section.

6 0
2 years ago
what is a massive online storage that allows for Access by any internet-connected device running web browser. use for Less priva
Paladinen [302]
I recommend Google Drive, it allows up to 15gb of free storage. You can access it anywhere since it is fromGoogle. Another one you can try is Dropbox which only allows up to 2gb.
8 0
2 years ago
A system that provides monthly production figures for a manager at manufacturing facility is considered a(n) __________. a. ente
Stolb23 [73]

Answer:

Management information system (MIS)

Explanation:

Most manufacturing companies are organized into levels, with each level having different kinds of information systems. The four major types of systems placed on each organizational level include:

Transactional Processing System (TPS) – Business systems at this level serve at the lowest point of the operational level in an organization. It performs routine transactions like sales entry and payroll.

Management Information Systems – MIS transforms TPS inventory and production data into compressed formats and presented in detailed reports produced as per the agreed schedules to the managers. These reports can be served on a daily, hourly, or monthly basis.

Decision-Support Systems (DSS) – Managers at this level are majorly responsible for making unique and rapidly changing decisions

ESS – It is the strategic level in an organization. Top senior managers use this level to make non-routine decisions that require insight and a lot of judgment.

4 0
3 years ago
Your search google for recipe for tonight dinner is an.example of ?​
Rina8888 [55]

The example is, ethier you need cooking classes or you wish to try something new

Hope the little humor helps

3 0
3 years ago
Read 2 more answers
Other questions:
  • Ten 9600-bps lines are to be multiplexed using TDM. a. Ignoring overhead bits in the TDM frame, what is the total capacity requi
    6·1 answer
  • Can a Web developer guarantee that data presented is valid? Why or why not?
    9·1 answer
  • What types of automation device might require specialist installer training?
    5·1 answer
  • Computer programmers often use binary codes (strings of 1s and 0s) to write programs for computers. These codes are then changed
    6·1 answer
  • Which is most harmful computer virus define​
    15·1 answer
  • Which of these BEST describes an inference?
    11·2 answers
  • Which is not one of the four criteria for proving the correctness of a logical pretest loop construct of the form: while B do S
    14·1 answer
  • 1. Es un símbolo que indica que se ha de realizar cierta operación específica entre uno o varios
    6·1 answer
  • What role do play in medicine ​
    11·1 answer
  • When an EC2 instance is being modified to have more RAM, is this considered Scaling Up or Scaling Out?
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!