Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

AIM: A text file called HKCCPI2022 .txt contains the data of Hong Kong Composite Consumer Price Indices in 2022 where the index value is 100

image text in transcribedimage text in transcribed

AIM: A text file called HKCCPI2022 .txt contains the data of Hong Kong Composite Consumer Price Indices in 2022 where the index value is 100 for the period from October 2019 to September 2020 (Source: Consumer Price Index Section, Census and Statistics Department, HKSAR) which are delimited by tab as follows: [Hong Kong Composite Consumer Price Indices in 2022] [ (October 2019 - September 2020 = 100)] Month All items Food Housing Electricity, gas and water ... Jan 102.3103.4101.0 Feb 103.1105.9101.0 Dec 104.2106.9100.9 Write a Python program that reads the data from this file, find the average value, minimum value, and maximum value of the indices for each type of goods or services in 2022, and finally print a table of the results with the following format on the screen: [Hong Kong Composite Consumer Price Indices in 2022] [(October 2019 - September 2020 = 100)] |[Hong Kong Composite Consumer Price Indices in 2022] [(0ctober 2019 - September 2020=100)] Month All items Food Housing Electricity, gas and water Alcoholic drinks and tobacco Clothing and footwear Durable goods Miscellaneous goods Transport Miscellaneous services JanFeb102.3103.1103.4105.9101.0101.0116.5116.7100.8100.7102.8102.6101.3101.297.398.3104.4105.0101.8101.6 MarApr103.3103.1106.7105.8101.0100.4118.0120.4100.6102.2105.5107.9101.7102.298.398.6103.2104.1101.2102.0 May102.9105.6100.4116.5101.4107.5102.698.3104.2101.7 JunJul103.2103.3105.7106.0100.3100.3124.5126.2101.9101.9107.6105.6102.5102.197.998.1105.1105.2101.8102.5 SepOctNovDec103.5103.8104.0104.2106.2106.3106.4106.9100.3101.0100.9100.9129.6131.1133.5133.7102.0102.1102.0102.1107.7109.9113.3111.0100.3100.299.799.697.998.398.098.0105.7105.3104.8104.9102.7102.6102.6103.3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions

Question

2 What are the implications for logistics strategy?

Answered: 1 week ago