Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

It is difficult to make a budget that spans several years, because prices are not stable. If your company needs 200 pencils per year. you

It is difficult to make a budget that spans several years, because prices are not stable. If your company needs 200 pencils per year. you cannot simply use this

year's price as the cost of pencils two years from now. Because of inflation the cost is likely to be higher than it is today. Write a program to gauge the expected

cost of an item in a specified number of years. The program ask for the cost of the item , the number of years from now that the item will be purchased, and the

rate of inflation. The program then outputs the estimated cost of the item after the specified period. Have the user inter the inflation rate as a percentage, such

as 5.6 (percent). Your program should then convert the percentage to a decimal fraction, such as as 0.056, and should use a loop to estimate the price adjusted

for inflation, (Hint: Use a loop.)

Make the following changes to the program.

1.Ask the user the name of the item to be used in the calculations.

2. The output should look like this:

The (name of the item) costs (present cost) now.

The (name of the item) will cost (future cost) in (number of years) years.

Run the program with the following information.

The item is a car.

The present cost is $25,000.

The number of years is 10.

The inflation rate is 8%.

Write program in C++

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_2

Step: 3

blur-text-image_3

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

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

The amount of work I am asked to do is reasonable.

Answered: 1 week ago

Question

The company encourages a balance between work and personal life.

Answered: 1 week ago