Menu

Given Current Price Loaf Bread Estimated Yearly Inflation Rate Year Future Write Python Pr Q43889938

Given the current price of a loaf of bread, an estimated yearlyinflation rate, and a year (in the future), write a Python programto calculate the estimated future price of a loaf of bread. Assumethe current year is a constant value. Also, assume the formula forthe future price, FP, is given by

FP = CP X (1 + R)(N-Y)

where CP is the current price, R is the yearlyinflation rate, N is the future year, and Y isthe current year.

For example, assuming it is currently 2020 and a loaf of breadcosts $5.00, if inflation is a yearly rate of 2.5%, then in theyear 2030, a loaf of bread will likely cost $6.40.

Sample input/output should be something like this:

Enter current price: 5.00Enter yearly inflation rate: 0.025Enter future year: 2030If inflation is 0.0250%, then bread will cost $6.40 in 2030.FP = CP X (1 + R)(N-Y) Show transcribed image text FP = CP X (1 + R)(N-Y)

Expert Answer


Answer to Given the current price of a loaf of bread, an estimated yearly inflation rate, and a year (in the future), write a Pyth…

OR