Menu

Question 6 10 Points Given Current Price Loaf Bread Estimated Yearly Inflation Rate Year F Q43897299

in python please
Question 6 (10 points) Given the current price of a loaf of bread, an estimated yearly inflation rate, and a year (in the futQuestion 6 (10 points) Given the current price of a loaf of bread, an estimated yearly inflation rate, and a year (in the future), write a Python program to calculate the estimated future price of a loaf of bread. Assume the current year is a constant value. Also, assume the formula for the future price, FP, is given by FP = CP X (1 + R)(N-Y where CP is the current price, R is the yearly inflation rate, N is the future year, and Yis the current year. For example, assuming it is currently 2020 and a loaf of bread costs $5.00, if inflation is a yearly rate of 2.5%, then in the year 2030, a loaf of bread will likely cost $6.40. Sample input/output should be something like this: Enter current price: 5.00 Enter yearly inflation rate: 0.025 Enter future year: 2030 If inflation is .0250%, then bread will cost $6.40 in 2030. Show transcribed image text Question 6 (10 points) Given the current price of a loaf of bread, an estimated yearly inflation rate, and a year (in the future), write a Python program to calculate the estimated future price of a loaf of bread. Assume the current year is a constant value. Also, assume the formula for the future price, FP, is given by FP = CP X (1 + R)(N-Y where CP is the current price, R is the yearly inflation rate, N is the future year, and Yis the current year. For example, assuming it is currently 2020 and a loaf of bread costs $5.00, if inflation is a yearly rate of 2.5%, then in the year 2030, a loaf of bread will likely cost $6.40. Sample input/output should be something like this: Enter current price: 5.00 Enter yearly inflation rate: 0.025 Enter future year: 2030 If inflation is .0250%, then bread will cost $6.40 in 2030.

Expert Answer


Answer to Question 6 (10 points) Given the current price of a loaf of bread, an estimated yearly inflation rate, and a year (in th…

OR