Question: Language is Python 4, for loops (50%) a. The consumer price index (CPI) indicates the average price of a fixed basket of goods and services.

Language is Python

Language is Python 4, for loops (50%) a. The consumer price index

4, for loops (50%) a. 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 9.9 in July 1913 and 238.25 in July 2014. This means that $9.90 in July 1913 had the same purchasing power as $238.25 in July 2014 . Assuming that the CPI will rise at 2.5% per year in the future, in how many years will the CPI at least double from its July 2014 level? What year will it be? Create a program named: Lab6Set4. and use nested while loops to solve the problem; an outer loop to count the times (2-5) and an inner loop to calculate the increase in value and years. Once you figure it out, show how many years it will take to double it, triple it, quadruple it, and quintuple it, .e. the outer loop. This is the sample run of the program: Consumer prices will be 2 times 2014 prices in 29 years (2043) Consumer prices will be 3 times 2014 prices in 45 years (2059) Consumer prices will be 4 times 2014 prices in 57 years (2071) Consumer prices will be 5 times 2014 prices in 66 years (2080)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!