A paper products manufacturer needs a program to forecast its sales over a six-month period. To do so requires knowing the value of the sales growth rate and how the sales grow over that period. Write a program that asks the user to enter the minimum assumed growth rate (as a percent) and the sales for the current month. Assume a linear growth, that is, the sales for a month equals a fixed percent (the growth rate) over the previous month. The program should display, in a table, the projected sales for the minimum growth rate and for growth rates up to 4% greater than the minimum. The table should look like the following, if the user enters 7 for the minimum growth rate and 30000 for the current month's sales.
OK, now I understand what they're getting at.
However, I get the impression you are looking for a single complex formula that can be used to calculate everything in that table. Since I'm no math major, I'm not sure I can help you there without spending a lot of time pondering over it.
I know the way *I* would do it which might be the "long way" around:
month1projection = ((currentsales)rate1 + currentsales)
month2projection = ((month1projection)rate1 + month1projection)
...
month6projection = ((month5projection)rate1 + month5projection)
then for the next tier down:
month1projectiontier2 = ((currentsales)rate2 + currentsales)
etc
and that's assuming:
currentsales = Current month's sales
rate1...rate5 = minimum growth rate...minimum growth rate+.04
It would be fairly simple for me to write a program to do what the question asks using the simple formulas here but that seems like it's got to be too easy. Plus the program would be fairly bloated. I might be able to figure it out if I spent a lot of time on it, but math is not one of my strengths, sadly. That's why you'll never find me without a calculator within arm's reach.