#DATE TIME-TEMPERATURE UNIT HUMIDITY% 9/28/2010 15:45:14 22.248900 C 44.721968 9/28/2010 16:00:07 22.738900 C 50.539993 9/28/2010 16:15:07 23.388900 C 49.339338 9/28/2010 16:30:07 23.918900 C 47.539280 9/28/2010 16:45:08 23.668900 C 40.700378The first line is just a comment, and is there to help a human understand the data that they are seeing; it should be ignored (hint:  any line beginning with '#' ought to be skipped.)   Write a program to read the data from the file and produce the average temperature and average humidity for all the records in the file. This is a very large file - it is the actual temperature and humidity data from our server room.  You would spend hours trying to do this manually, with a calculator, and you likely would make mistakes along the way.  This is where computers are far superior to humans when dealing with boring, repetitive tasks. The output of the program will look like this: Average Temperature (C): NN.NNNNNNNNNNNNNN Average Humidity (%): NN.NNNNNNNNNNNNNN

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

#DATE TIME-TEMPERATURE UNIT HUMIDITY%
9/28/2010 15:45:14 22.248900 C 44.721968
9/28/2010 16:00:07 22.738900 C 50.539993
9/28/2010 16:15:07 23.388900 C 49.339338
9/28/2010 16:30:07 23.918900 C 47.539280
9/28/2010 16:45:08 23.668900 C 40.700378The first line is just a comment, and is there to help a human understand the data that they are seeing; it should be ignored (hint:  any line beginning with '#' ought to be skipped.)

 

Write a program to read the data from the file and produce the average temperature and average humidity for all the records in the file.

This is a very large file - it is the actual temperature and humidity data from our server room.  You would spend hours trying to do this manually, with a calculator, and you likely would make mistakes along the way.  This is where computers are far superior to humans when dealing with boring, repetitive tasks.

The output of the program will look like this:

Average Temperature (C): NN.NNNNNNNNNNNNNN

Average Humidity (%): NN.NNNNNNNNNNNNNN

Expert Solution
steps

Step by step

Solved in 3 steps with 3 images

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education