Question: Create a New C + + Project: [ 1 0 points ] Open your C + + IDE and create a new project named loTSensorDataProcessor.
Create a New C Project: points
Open your C IDE and create a new project named "loTSensorDataProcessor".
Add the required headers for math, strings, and random number generation.
Task : Sensor Data Simulation Random Numbers points
Use the function to generate random temperature and humidity readings for three
sensors
Each temperature should be a random floatingpoint value between and
Each humidity reading should be a random integer between and
Display the simulated sensor data.
Task : Data Comparison and Alerts Comparison Operations points
Define temperature and humidity thresholds eg for temperature and for
humidity
Compare each sensors data to the thresholds.
If the temperature exceeds the threshold, display an alert that the room is too hot.
If the humidity is below the threshold, display an alert for low humidity.
Output the result of the comparison for each sensor
Task : Data Processing Math Operations points
Calculate the average temperature across the sensors
Convert the average temperature from Celsius to Fahrenheit using the formula:
Fahrenheit Celsius Fahrenheit Celsius
Print the average temperature in both Celsius and Fahrenheit.
Task : Sensor Status Encoding Bitwise Operations points
For each sensor encode a status using bitwise operations:
Use bit to represent if the temperature is above the threshold for true, for false
Use bit to represent if the humidity is below the threshold for true, for false
Display the binary status for each sensor eg means temperature is fine but humidity is
low
Task : Logging Sensor Data String Manipulation points
Use string manipulation to log the sensor names eg "Living Room", "Bedroom", "Kitchen"
Concatenate each sensors name with its temperature and humidity readings and formatted
status.
Format the output using and to display aligned sensor logs
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
