Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consumer Price Index: The consumer price index (CPI) indicates the average price of a fixed basket of goods and services. It is customarily taken as

image text in transcribed
Consumer Price Index: The consumer price index (CPI) indicates the average price of a fixed basket of goods and services. It is customarily taken as a measure of inflation and is frequently used to adjust pensions The CPI was 99 in July 1913, was 100 in July 1983, and was 238.25 in July 2014. This means that $9.90 in July 1913 had the same purchasing power as $100.00 in July 1983, and the same purchasing power as $238.25 in July 2014 In 2009, the CPI fell for the first time since 1955. However, for most of the preceding 15 years it had grown ut an average rate of 2.5% per year. Assuming that the CPI will rise at 2.5% per year in the future, how many years will it take for the CPt to double? Write a program that will ask the user for a starting year and the CPI for that year. Your program should print a table showing subsequent years and their CPIs. Note: Each year, the CPI will be 1.025 times the CPI for the previous year. Your table should include a heading at the top and tabs to separate columns. Each cer should be displayed using 2 decimal places. The table should continue printing rows until the CPI has doubled the starting CPA This program must use a while loop, The beginning of your table should look like this (the underlined items are just sample inputs What in the year 1983 What was the cor that year? 238.25 Year 1980 1984 185 CPI 23825 20.21 250.31 1) Write a flowchart to model the solution to the problem. Save it as a PDF document, 2) Implement the solution to your problem as a Python program. Make sure your program user man variable names. Be sure your program has at least 4 lines of comments at the top

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

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions