Showing different numbers with out a lot of code

My assignment is to list the loan balance and interest paid for each payment over the term of the loan.
The loan amount is for $200,000 at 5.75% for 360 months. Ill figure out the math part but how do I code so that it prints out the differerent principle balances for each month with out doing it 360 times for 360 months?
Of course I wont have to code all 360 payments. So for example lets say the total loan amount is for $100 and and the interest is 1%. I pay $9 to the principle and $1 for the interest the first month, the next month there is $91 left on the principle etc etc. How do I show that?
I am just learning java so the more basic the code the better off for me.
thanks in advance!!

Presumably you are taking a class in Java so the instructor should have covered loop structures for this assignment.
But here are some references just in case:
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/while.html
http://java.sun.com/docs/books/tutorial/java/nutsandbolts/for.html

Similar Messages

  • Hi all, how to make slide show on Iweb with out QuickTime?

    Hi all, how to make slide show on Iweb (with out QuickTime or link to YouTube) to be watched in any computer/system?
    I used Imove - share - exported - medium (m4v)
    This the one I did.
    http://360motorcycleadventures.com
    Must looking profissional (no YouTube frame)
    The problem is: I lot people don't have QuickTime, any body can point me the right direction?
    Thanks' in Advance.

    I use this slideshow often :
    http://www.wyodor.net/iWebBlogTest/Wyodor_1/WebBanner.html
    See it here in an iWeb page :
    http://www.wyodor.net/_Demo/MyHouse/Huis.html
    These are the slideshows :
    http://www.wyodor.net/_Demo/Gardens/flagstones.html
    http://www.wyodor.net/_Demo/Gardens/gardens.html
    And here in a non-iWeb page :
    http://www.wyodor.net/htmlegg/SmallCard/SmallSlideshow.html
    This is the slideshow itself :
    http://www.wyodor.net/htmlegg/SmallCard/VintageParis/
    Or use WOW slider :
    http://www.wyodor.net/htmlegg/TallCard/TallWow.html
    There are lots of slideshows out there. Choose the one you like.
    And search/browse this forum for other solutions.

  • Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    Hi Everyone,  I am using iPhone5, my question in how to display name and contact number both stored for incoming and outgoing calls? If I have saved five different numbers with a same name, how do I recognise that from which number caller is calling?

    I have friends all over Europe, does it matter what number they use to call me? Nope! All incoming calls are free for me.
    The only time you ever have to worry about which number is if you get charged for incoming domestic/international calls.
    You can tag their number (work/home/iphone) and that may show on the CallerID accordingly.
    It should show, John Doe
    underneath,    work/home/mobile
    For example:
    http://shawnblanc.net/images/img-0009-1.png

  • Downloading songs from a different computer with out reformatting my i pod

    Hey there, it's probably a common question. Is there any way to download songs from a different computer with out having to reformat the ipod and lose all my songs i have on there. I've tried it once and it wiped my ipod clean of all my songs. Very annoying. cheers

    Hello noboo79,
    And welcome to Apple Discussions!
    On the computer you have initially the set the iPod up on and for, you can enable the "manually manage music and videos" option from under the iPod's Summary tab in iTunes. This will allow you to sync contect to the iPod from multiple computers. Otherwise, there is no other way.
    Here is more on using your iPod with multiple computers as well as manually managing your iPod's contents.
    [Using iPod with multiple computers|http://support.apple.com/kb/ht1202]
    [Managing content manually on iPhone, iPad, and iPod|http://support.apple.com/kb/HT1535]
    B-rock

  • Yearly once inspection for specific characteristic with out inspec. lot

    Hi Experts,
                        My client want some specific characteristic inspection yearly once with out inspection lot.
    help me how to map this scenario
    Regards,
    Sbabu
    Edited by: sbabu babu on Apr 22, 2010 12:27 PM

    I dont think any standard solution for this,
    few suggestions are
    Go for a manual lot, client can track manual lot generation based on a report. report can be ABAP deveoped based on the client requirements. So every day client can run report and know which all materials are to be inspected on that day. I feel this as best.
    DMR may have an issue as unnecessarily lot will get generated throughout the year in system. Its OK, we can do auto UD and all, but think do we really need these data go into system for rest 364 days for that one day inspection. If you ask me, I will say no to it.
    Calibration lots can be generated only for equipments. Its only fixed time based inspection lot. But here material need to be maintained as equipment. i dont think, this is acceptable. Try first one which worked out well for me. Jus a report for tracking.
    Thanks
    Vineeth Varghese

  • STO WITH OUT BILLING BETWEEN COMPANY CODES

    Hai experts,
       In my client , thy use following procedure for STO with out billing between company codes .
    First create purchase order in receving plant after that they sales order in supply plant by using purchase order ,manually.Here the end user change the qty and other details.So the client wants that , I want create sales order with respect to purchase order.
    give me suggestion

    7679,
    Your proposed solution sounds like a lot of unnecessary work.  A simple STO can usually meet all business requriements for either intra- or inter-company stock transfers, without adding the complexity of a sales doc.
    Why can't you use a standard 'U' Stock Transport order?
    Best Regards,
    DB49

  • Hi guys..I am new to this apple ipad apps development .I want to know how to change ipad apps to iphone apps with out changing design and code?can any one tell me?

    Hi guys..I am new to this apple.I have developed  ipad2 apps  . I want to know how to change ipad apps to iphone apps with out changing design and code?can any one tell me?

    You are in the wrong forum. This is a user forum. Try the developers forum.

  • Can you use one PC for 2 different Ipods, with out erasing the others music from Itunes?

    Can you use one PC for different Ipod touch's , with out erasing the other persons Itunes music?

    Yes.  See:
    How to use multiple iPods, iPads, or iPhones with one computer

  • PDF file shows different numbers of text blocks in CC 2014 and CS6

    Hi,
    I've inherited a file at work that displays different numbers of text blocks, depending on the version of Acrobat used to view the file. Here's the specific issue:
    As viewed in CC 2014:
    "Chapter 1 - Chapter One Title": Appears as two text blocks -- one for "Chapter 1 - " and one for "Chapter One Title"
    As viewed in CS 6:
    "Chapter 1 - Chapter One Title": Appears as a single text block -- "Chapter 1 - Chapter One Title"
    This occurs only with regard to single-digit chapter numbers that are whole numbers. So:
    Chapter 1, Chapter 5, and Chapter 7 entries appear as two blocks in CC 2014, one block in CS6.
    Chapter 2.0, Chapter 6.1, Chapter 10, entries appear in single blocks in both CC 2014 and CS6.
    The PDF file was created -- I believe -- through the save-to-PDF feature in Word 2010.
    Any idea what's happening here?
    Thanks.
    David

    The Cloud forum is not about using individual programs
    The Cloud forum is about the Cloud as a delivery & install process
    If you will start at the Forums Index https://forums.adobe.com/welcome
    You will be able to select a forum for the specific Adobe product(s) you use
    Click the "down arrow" symbol on the right (where it says All communities) to open the drop down list and scroll

  • Why DBA_HIST_FILESTATXS show different numbers from AWR I/O stat...........

    hello:
    database version: 11.1.0.7
    os: linux RH5
    now i am just meeting a situation, i just query DBA_HIST_FILESTATXS as following:
    select tsname,FILENAME,PHYRDS,PHYWRTS from where snap_id=13675 and tsname='EBTCA01' order by tsname,filename
    TSNAME FILENAME PHYRDS PHYWRTS
    EBTCA01 /data01/oradata/chfsdb08/EBTCA01_F01.dbf 4,702,715 243604
    EBTCA01 /data01/oradata/chfsdb08/EBTCA01_F04.dbf 5,192,401 247510
    EBTCA01 /data01/oradata/chfsdb08/EBTCA01_F08.dbf 4,485,752 190543
    EBTCA01 /data01/oradata/chfsdb08/EBTCA01_F09.dbf 4,535,276 195776
    EBTCA01 /data02/oradata/chfsdb08/EBTCA01_F17.dbf 14,872,450 1131226
    and also pulled out AWR with same snapshot, however the number of reads(1848,448) and writs in file I/O is very different from DBA_HIST_FILESTATXS(4702715,243604) why is this?
    Reads writes
    EBTCA01     /data01/oradata/chfsdb08/EBTCA01_F01.dbf     1,848     1     12.54     1.00     448     0     0     0.00
    EBTCA01     /data01/oradata/chfsdb08/EBTCA01_F04.dbf     2,338     1     13.30     1.00     234     0     0     0.00
    EBTCA01     /data01/oradata/chfsdb08/EBTCA01_F08.dbf     2,041     1     12.89     1.00     167     0     0     0.00
    EBTCA01     /data01/oradata/chfsdb08/EBTCA01_F09.dbf     2,202     1     12.62     1.00     134     0     0     0.00
    EBTCA01     /data02/oradata/chfsdb08/EBTCA01_F17.dbf     6,548     2     12.02     1.00     191     0     0     0.0
    any suggestions would be appreciated! thanks
    Edited by: RLUO on Aug 9, 2010 7:43 PM

    The DBA_HIST_FILESTATXS view shows statistics as at that point in time -- statistics that are cumulative.
    AWR generates reports for the duration.
    Thus, a query on DBA_HIST_FILESTATXS view for Snap_ID 13675 shows statistics since the startup of the instance to that point in time -- cumulative.
    On the other hand an AWR report for Snap_ID range 13674 to 13675 shows statistics for the duration between 13674 and 13675 (which is normally 1 hour) -- incremental.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com

  • Best Practice with States and lots of code lines

    Hi.
    This is my first application in flex.
    I'm ok with as3.
    Now, in as3 we were 'forced' to work mostly with external classes so hardly we have a unique code page with lots of lines.
    In flex, using States leads to build codes with lots of line IF we think on states as web site pages.
    I'm not sure it I understand it right. You mean: if an user visits a website built with 10 pages, but the users access only 2 pages, all that 8 remaining pages would have to be download to the swf the user loads?  (this is, considering the usage os states as pages)
    I'm building a system where the user logs to use it.
    2 states at now:  login page and home page.
    I access the db, and get the user and password with this event dispatched from the db.result (this works, however i found it too-old-style looping. Is there a better way, of course, which?)
    protected function usersService_resultHandler(event:ResultEvent):void
                    allUsers = event.result as ArrayCollection;
                    for (var i:uint;i<allUsers.length;i++){
                        if(allUsers[i].user == tx_user.text && allUsers[i].password == tx_password.text)
                            currentState = "home";
                        else
                            Alert.show("Fault", "Login");
    While I have start to build the "home" page/state, I realized that my code would dramatcally increase. Is it the best practice? Do I have to call another url after login (to open a Session - please, some Session tutorials in flex)? Or I keep doing all in states? I'm afraid my swf would grow bigger.
    Thanks

    Ok.
    The problem is that I'm not used to PHP, and I have generated the code to deal with the server automatically via Flex.
    However I could add a new function, and I could guess how to catch values in the db to compare.
    its a frankenstein function, but i'm afraid it also works. By now, there is no way to know whether user mistyped password or username.
    public function getUserVerification($user, $pass) {
            $stmt = mysqli_prepare($this->connection, "SELECT user, password FROM $this->tablename where user=? AND password=?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ss', $user, $pass);       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $row->user, $row->password);
            if(mysqli_stmt_fetch($stmt)) {
              return 1;
            } else {
              return 0;
    Also I had to update the _Super_UsersService.as  Class flex had generated before when I first created a php code to deal with db.
    Finaly, I had to assign return and input types for the new function I've created.
    Amazing... it works.
    Now, when pressing the submit button on the login, flex sends user and password so php compare them instead looping it in a Array.
    Also, I have made all this code inside a "loginView" component. So my main app is clean again.
    I guess I understand the idea of using components and reusing them as many as possible. I just have to get used to how to access a component value from outside and vice-versa.
    Now, the creationPolicy is something I would look for. This might be interesting.
    Thanks a lot.
    Btp~

  • How do you run the session programatically with out going to tr.codes?

    when we go with BDC sessions what code should we write, to run session programatically,
    i.e manually?

    If I got you right, you do not want to go to SM35 and run the session. Instead you want to run from program. If this is the case then we have understand the way Sessions work.
    Session method is intented to have a two step execution, where the creation of session is the first phase and execution of session is the second phase. This is mainly to have a centralized control over the Postings made in the SAP system.
    Hence, if session method is used, then it is always 2 step. We cannot programatically run the session. Instead u can use CALL TRANSACTION
    Naveen

  • How to Embed HTML into a Infopath form with out using the custom code???

    Hi ,
    This my first post in MSDN, so kindly ignore if there is any faults/mistakes.
    scenario:
    I am updating a HyperLink(url) to an infopath Field (Such as Rich text box /Label) from a third party workflow(Nintex),it is not able to embed the html data .is it possible to embed html controls like <a> and <Br> tags in the infopath form?????

    The InfoPath form can be configured to export some of the fields as columns... by doing so, the workflow can simply update the list item's metadata, and the value is pushed into the InfoPath form data.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Mac and Windows showing different hard drive space remaining?

    Hello Guys,
    I am using my 1tb hard drive with mac and windows and while checking the space remaining, my mac says roughly 600gb left and my windows comp. says about 500gb left. I am just wondering which one of the storage remaining statements is correct and why they both show different numbers (by 100gb)? If it helps, this also happens to my 16gb flash drive. mac says 10 gb left, and windows says less space left (dont remember actual number, but was roughly 6-8).
    Just asking becuase I want to know why such a big difference in size remaining. Could it have to do with the way each OS sees what defines the harddrive as full?
    if it matters, my hdd format is MS-DOS (FAT32).
    Thanks a lot,
    krm1897

    haha its been 2 years. And no, i didn't figure it out, but i speculate it may have to do how Mac OSX and Windows reads the FAT file system (my tb hdd was FAT formatted so i could use it on both OS) and calculates remaining space.
    That may be right, or it may be completely wrong lol
    krm1897

  • Why do I have different numbers of schedulers in a 2 node AG FC running SQL2012 SP1

    In analyzing a performance issue I can see that on a 2 node Availability Group Failover Cluster with synchronous commit to a read-intent only secondary show different numbers of schedulers inside SQL looking at sys.dm_os_sys_info.
    As an example we have one set where one node shows 51 schedulers and the other node shows 28. This isn't a matter of the Primary and the Secondary because I did a failover on a pair that showed 11 and 12 schedulers. Those numbers did not change after the
    failover.
    Can anybody explain what the differences and how to correct these?
    Thanks
    Chris
     

    Hi,
    Thank you for your question. I am currently looking into this issue and will give you an update as soon as possible.
    Thank you for your understanding and support.
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

Maybe you are looking for

  • How do i install photoshop with no disk?

    I purchased adobe photoshop CS6 for my new mac several months ago. It is my understanding that I can install it on a second computer in my home. I just bought my daugher a Mac. It doesn't have a disk drive. How can I install my CS6 on her new compute

  • The iTunes application could not be opened.  An unknown error occurred

    Has anyone else gotten this problem after downloading iTunes 7? I didn't have this problem with the previous version, and I tried to repair this one and the same problem still happens. Before the error box pops up, though, it asks me to agree to some

  • [SOLVED] systemd/user interface not working

    I cannot use user service files, because systemctl gives me this error: $ systemctl --user status Failed to get D-Bus connection: No such file or directory It's been a while since I used a user service file, so I don't know when it started exactly. H

  • Serial number reconcilation

    Dear Gurus, This is a scenario of material issued to contractor. The client receives gas cylinders from the vendor. This is in turn issued to the contractors. At the month end there is reconcilation of the issue/receipts. To map this into SAP, i have

  • Tract around flash objects in Internet Explorer

    I have made Flash banner in html page. When I move mouse on banner appear tract around and flash up text: "Click to activate and use this control ". I have see in adobe homepage tnis message removed. Can I remove that message?