Question: Help me figure out Box 12 ! WeatherData is a structure and WeatherStation is a class Instruction BOX 11 Using the string stream sin, extract

Help me figure out Box 12!

Help me figure out Box 12! WeatherData is a structure and WeatherStation

WeatherData is a structure

is a class Instruction BOX 11 Using the string stream sin, extract

and WeatherStation is a class

the fields needed to fill the WeatherData structure. The file is in

Instruction BOX 11 Using the string stream sin, extract the fields needed to fill the WeatherData structure. The file is in the same order as the structure (i.e. day is first, month is second, and watch is the very last field) Note: watch may have multiple words, so you cannot simply use the extractors here >> Note: Use the variables day, month, year, etc that we declared for you, above Compile Code Test Code Save Work Correct-You have completed this portion of the problem. You earned 20 out of a possible 20 points See Answer Grade This Part results 1 sin >> day >> month >> year >> clouds >> temp >> wind; 2sin >> std: :ws; 3 getline(sin, watch); 4 6 9 10 Instruction BOX 12 Now, you should have good data to fill a WeatherData structure. Declare a new WeatherData structure called data and set its fields to what you just extracted above Compile Code Test Code Save Work A correct answer will earn 20 out of 20 points. A wrong attempt will cost 0 points See Answer Grade This Part results no results yet 1 Enter your code here

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 Databases Questions!