Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PYTHON 3: There is an embedded system that has temperature and humidity sensors (simulated). When simulating the sensors, they write the data received in files.
PYTHON 3:
There is an embedded system that has temperature and humidity sensors (simulated). When simulating the sensors, they write the data received in files. Model the sensors in a Python program defining the following classes: a. Class "Sensor": receives the sensor number from the manufacturer. It has a read_file method that Lets you read a float value from a file and display. b. There is another method "assign_path", the same one that receives the path to the file. It has a method "give path showing the address of the file " c. Class "SensorTemperatura": Inherited from the class "Sensor". It has a method "give_value" that returns the temperature in a float truncating the negative part (if it is less than zero it returns 0) and saves it to a file. d. Class "SensorHumdad": Inherited from the class "Sensor". It has a method "give_value ()" that returns the moisture read and save it to a file. and. Make an application that simulates data collection from time to time, and displays the information provided by the sensors in graphs.
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