Question: Provide a user interface to look up the CPI values for any year. The program should read a year number from the keyboard and print
Provide a user interface to look up the CPI values for any year. The program should read a year number from the keyboard and print out the list of CPI values for that year. After that, it should print out the average CPI for that year by computing the average of the reported list
Enter query:
Enter query:
Enter query:
Enhance the program by allowing the user to specify the list of months they want to see. A valid query may in addition to the year number contain a list of month numbers separated by spaces.
For example, requests the data for January, March, May, and July of If the months are not specified, report full year. The average should be computed only for the reported months.
Enter query:
Enter query:
Enter query:
Enter query:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
