Question: Hello, I am currently taking a c++ course. We are currently learning about structs. But due to an emergency I was not able to make

Hello, I am currently taking a c++ course. We are currently learning about structs. But due to an emergency I was not able to make it to the first lecture for the topic. Can anyone help me with this Problem. Thank you!  Hello, I am currently taking a c++ course. We are currently
learning about structs. But due to an emergency I was not able

Assignment Goals: To learn to manipulate data using structs and to enforce the skills of functions and file input Assignment Write a program that defines a strect Weat herType to store the following weather data for a particular month: Month Name High Temperature Low Temperature Average Temperature The month name is a string. All other data are floating-point vallues. The program should have an array of struct of 12 elements to hold weather data for a year. When the propan runlt should read the rainfall, high temperature, and low temperature of 12 moeds from a text file "hw2data.txt and store the data in the array of struct. The average temperature of each month should be caculated from the high temperature and low temperature of that moeh Your program should perfiorm the following tasks: A. Display the month name, rainfall, high temperature, low temperanue, and average temperature of each month in a meat format on the screen. The program should also calculate and display the following information B. The total raintall of the year C. The average monthly rainfall for the year D. The highest temperature of the ycar and the corresponding moeth name E. The lowest temperature of the year and the corresponding month mame F. The average temperature of the yearLe, the average ofthe monthly average temperatures. You should write five functions to perform task A, B. D, E. and F. but mot task C (since the average monthly rainfall can be casily cakculated from the total rainall. You have freedom to decide what parameters to be passed mo the functions and what valuets) to be seated tum functades. saggested that the functions for B. D. E and F find and return requised valuels) to the main function and the results are priniod in the main function The input data file hw2data.txt can be dowmloaded separaily Submission: You should ONLY submit your C+ sounce file pp) via the Homework2 Submission link on Blackboard. Name your source fille h2main.cpp. Ichude the inbegrity statement 1 certify that this submission is my own original work and your mame and RAM D as comments in the source file. Sample output

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!