Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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