![]() |
|
#1
|
|||
|
|||
Need help with Java mortgage programI designed a Java mortgage program and it is working fine but I need to add some more things to it. I want to make the program list the loan balance and the interest paid for each payment over the term of the 30 year loan.(I want it to list for every 1 yr and then every couple of years). I want this list to scroll off the screen or even do a loop to show the partial list, hesitate and then display more of the list. I want to do this program with no GUI(graphical user interface). I will post my program coding below and any help would be appreciated greatly.
JAVA Code:
|
|
#2
|
||||
|
||||
Re: Need help with Java mortgage programDo you already have the amortization formula? I've found it on the web, but haven't got it to work-just-right -- yet.
Consider adding a constructor to the class, and move all your statements in main to the constructor, then all you'll have in main is an object creation, like this: (and EXCEPT for main, you can then remove the static keyword from the other functions) JAVA Code:
JAVA Code:
JAVA Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
||||
|
||||
Re: Need help with Java mortgage program1. Here is your class, with some modifications above what was mentioned in the last post. This should show even more why to use an object from main(). Minor changes, really, have a look.
(see the comments in all CAPS that point out the changes) 2. a showAmortization() function is included, but it is a full listing at the moment -- no page/screen scrolling. JAVA Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#4
|
|||
|
|||
Re: Need help with Java mortgage programThank you so much for your help but when I try to compile my code it still gives me an error saying ';' expected. I will post the rest of my code and if you can look at it and help me fix the error I honestly will appreciate it.
JAVA Code:
|
|
#5
|
||||
|
||||
Re: Need help with Java mortgage programNotice the loop where you have 'While', that should be 'while'.
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#6
|
|||
|
|||
Re: Need help with Java mortgage programWhen I do change the "While" into "while" I am getting a handful of errors saying something along the lines of cannot resolve symbol variable mortgageAmount. Do you know any way that I can fix this? I can't figure it out at all. I appreciate all your time and effort =)
|
|
#7
|
||||
|
||||
Re: Need help with Java mortgage programWhat/where is variable 'mortgageAmount'? It is not defined, that is the basis of the error: "cannot resolve symbol variable mortgageAmount" -- so, you either need to create it, or use 'principal' instead.
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#8
|
|||
|
|||
Re: Need help with Java mortgage programI did everything as you said but I am still getting errors. If you can look at my code I would appreciate it very kindly.
JAVA Code:
|
|
#9
|
||||
|
||||
Re: Need help with Java mortgage programYou deleted the opening '{' to the while loop. You will have other errors, good luck!
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#10
|
|||
|
|||
Re: Need help with Java mortgage programI need help again with my Java Program if it's possible. Here is what I want to do with it this time. I want to modify the mortgage program for to display 3 mortgage loans: 7 year at 5.35%, 15 year at 5.5 %, and 30 year at 5.75%. Use an array to hold the three interest rates and an array for the three loan terms. Display the mortgage payment amount for each loan.
JAVA Code:
|
Recent GIDBlog
Developing GUIs with wxPython (Part 4) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My first Java Program (Desperate for Help) | Skyer | Java Forum | 9 | 14-Nov-2006 15:00 |
| How to read particular memory location ? | realnapster | C Programming Language | 10 | 10-May-2006 09:11 |
| New mortgage affiliate program!!!! | leadscash | Member Announcements, Advertisements & Offers | 0 | 20-Oct-2005 02:33 |
| Type casts ? | kai85 | C++ Forum | 12 | 23-Jun-2005 12:04 |
| calling a java program from C | Magicman | C Programming Language | 3 | 20-Oct-2004 07:43 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The