• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Need serious help with homework. Missing it completely . Simple Interest Application

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.


 
James Whitfield
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Requirements:

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.

Calculate button:

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.
 
author & internet detective
Posts: 41147
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The first step is to find the right forum. This isn't Java so it doesn't belong in the Beginning Java forum. I moved it to the C# forum. Is that right?

Next - do you know how to read from a text box?
 
James Whitfield
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes! thank you! i'm so sorry i'm just frantic
 
Marshal
Posts: 75867
361
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 shou‍ld 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
 
James Whitfield
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can anyone help me with where to start ? like i read over all the coursework up to this point and still hitting a dead end.  I really do not wanna fail this class and have to retake it lol
 
James Whitfield
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i just realized my picture didn't post
NeedHelp.png
[Thumbnail for NeedHelp.png]
 
Jeanne Boyarsky
author & internet detective
Posts: 41147
848
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Campbell gave you the first step. Try to write the algorithm on paper. If I give you $100 today and the interest rate is 1% a year, how much money do you have in 10 years. How did you get that?

Stuck? Post that here. Then try to convert it to code. Stuck? Post that here.
 
Saloon Keeper
Posts: 4993
186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Pay attention to what has been given:

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.

 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic