Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 Data File contains: Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::NaN
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
Apr ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::
May ::NaN
May ::
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started