Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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!
WeatherData is a structure
and WeatherStation is a class
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 hereStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started