Question: In Python - Write a menu driven program that analyzes a data file containing sensor information. The menu should provide following options: 1 - Read
In Python Write a menu driven program that analyzes a data file containing sensor information.
The menu should provide following options:
Read Sensor Data File
Analyze Data
Exit
Option will read the provided datafilelabtxt
Download datafilelabtxtPreview the document file into lists. It will validate each line of information aka record to make sure that the record is complete.
The format of the data file is as follows:
Field record number
Field date time
Field temperature reading in Fahrenheit
NOTE: A missing field is an invalid record. A temperature field that doesn't contain an integer is an invalid record.
Option will analyze the data and report:
the number of days where the temperature was freezing or below
the number of day where the temperature was degrees or above.
the coldest day if more than one day with same low temp then report the first occurrence
the hottest day if more than one day with same high temp then report the first occurrence
the number of invalid records
The program should end gracefully and thank the user with option
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
