Question: Use the rand ( ) function to generate random temperature and humidity readings for three sensors . Each temperature should be a random floating -

Use the rand() function to generate random temperature and humidity readings for three sensors.
Each temperature should be a random floating-point value between 15.0\deg C and 30.0\deg C.
Each humidity reading should be a random integer between 30% and 60%.
Display the simulated sensor data.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!