Help me with this C++ problem please!!

A well-regarded manufacturer of widgets has been losing 4% of its sales each year. The company's annual profit is 10% of sales. This year, the company had %10 million in sales and a profit of $1 million. Determine the expected sales and profits for the next 10 years. Your program should display in the following form:
Sales and Profit Projection
----------------------------------

year Expected sales Projected Profit
--------------------- --------------------------- ---------------------
1 $10000000.00 $1000000.00
2 $9600000.00 $960000.00
3
4
5
6
7
8
9
10

please help me he gave 3 homework problems and this is the only one I can not figure out how to do please help me thank and write the program so I will know how next time I have one like this thank you and god bless! Biggest thing I can't do is figure out how to make the table and do the manips please help thanks,
Last edited on
1
2
3
4
5
6
double expected(10000000);
for(int i = 0; i < 10; ++i) {
    double projected = expected / 10;
    //Output projected and expected here
    expected *= 0.96;
}
Topic archived. No new replies allowed.