Question
In C++ Language; In economics, the unemployment rate is one way to measure how well a country's economy is doing. Your program will read an
In C++ Language;
In economics, the unemployment rate is one way to measure how well a country's economy is doing. Your program will read an unemployment data file and produce that year's average unemployment rate. The unemployment data was obtained from the U.S. Bureau of Labor Statistics..
Steps to follow:
Prompt the user for the filename to open with the phrase "enter filename".. If the user does not enter. unemp.txt, display "error in file name, renter" and allow the user to enter the filename again until the user enters unemp.txt. The first line in the file containing column headings should be read but then ignored in your program. Each subsequent line in the file contains the year followed by 12 months of unemployment data for that year. The unemployment data is separated by the tab character. Your program will read the data in each line, total the unemployment values for the 12 months and display to the screen the year and the average employment for that year in a line formatted as follows: The average unemployment for year < year > is Make sure the average is in fixed point notation, rounded to two decimal places.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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