Question: Assignment: The software for a weather station is being updated to include automated logs being saved using a better data storage system. Assuming the following

Assignment: The software for a weather station is being updated to include automated logs being saved using a better data storage system.
Assuming the following structure has already been defined:
struct WeatherObservation
{
string stationName;
float temperature;
float humidity;
};
Write a function that accepts three parameters:
A string containing the station name
A float representing the temperature
A float representing the humidity
The function should print a log message to the console with the following structure : "Station Name: [STATION_NAME] Temperature: [TEMPERATURE]C, Humidity: [HUMIDITY]", substituting the elements between brackets with the correct values, and then returning a WeatherObservation structure, containing all the necessary 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!