While statement

Hello everyone,


I am currently enrolled in Fundamentals of programming. We are using Introduction of Programming using C++ and we just got done with chapter 7. The problem the teacher wants us to work on is:

Effective Jan 1st of each year, Gab receives 5% raise on her previous years salary . She wants a program that calculates and displays the amount of her annual raises for the next three years. The program also should calculate and display her total salary for 3 years.

We haven't gotten into nested looping, or any linkers other than iomanip and iostream.

I am having problem coding when I try it out it ends up infinitely looping. Can anyone help?



Thanks
Post what you have, and what's your teacher's name?
My professor''s last name is Tucker.


And about the program, I got so frustrated I scrapped it and didn't save it. So I currently have nothing.
Topic archived. No new replies allowed.