Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Fred R. McFadden, Jeffrey Slater, Mary B. Prescott

5th Edition

0805360549, 978-0805360547

More Books

Students also viewed these Databases questions

Question

Question What are the requirements for a safe harbor 401(k) plan?30

Answered: 1 week ago