So i'm trying to do this project do in 45 minutes, that apparently i shouldn't have put off unless i really knew my stuff... which i apparently didn't. This is what i need to do (in the picture) and i'm completely blank on as how to do it. Any help at all would be greatly appreciated. Here's what i got so far, please don't laugh i really need to pass this class.
User enters amount and selects rate from buttons. When the Calculate button is clicked, display the balance at the end of 10 years. The 2% button should be pre-selected.
Use try-catch method to trap and report input errors.
Get initial investment amount from text box
Determine rate by checking buttons
Use a for loop to determine balance after 10 years. Each year the balance will increase by the (balance * return rate). The balance will be a running total that you increment each time you go through the loop.
Display the balance in currency format after you exit from the loop.
Welcome to the Ranch
Whether that is Java® or C# doesn't make much difference for the first stage, because you want to do that with your computer turned off. Write down what you are going to do and what sort of formula you need. Once you have got that written down, you should find it easy to convert to code. Get some paper a pencil and an eraser, so you are using carbon‑based technologies rather than silicon. The eraser has carbon in, too, and you will want a big one because you will doubtless have lots of evidence to destroy