Home Tutorialhelp Comment Help needed in this problem

 
 

Comment

Shaggy
Help needed in this problem,
September 24, 2008 at 5:50 PM

The monthly payments for a given loan are divided into amounts that apply to the principal and to the interest. For example, if you take a monthly payment of RM500, only a portion of the RM500 goes to the principal, and the remainder is the interest payment. The monthly interest is computed by multiplying the monthly interest rate by the unpaid balance. The monthly payment minus the monthly interest is the amount applied to the principal. The following table is the sample loan payment schedule for a one-year loan of RM5000 with a 12 percent annual interest rate:

Payment Unpaid Total Interest
No. Interest Principal Balance to Date
1 50.00 394.24 4605.76 50.00
2 46.06 398.19 4207.57 96.06
3 42.08 402.17 3805.40 138.13
4 38.05 406.19 3399.21 176.19
5 33.99 410.25 2988.96 210.18
6 29.89 414.35 2574.61 240.07
7 25.75 418.50 2156.11 265.82
8 21.56 422.68 1733.42 287.38
9 17.33 426.91 1306.51 304.71
10 13.07 431.18 875.34 317.78
11 8.75 435.49 439.85 326.53
12 4.40 435.45 0.00 330.93

Write an application (using structured Java program) that accepts a loan amount, annual interest rate and loan period (in number of years) and displays a table with five columns:

Payment number, the interest and principal paid for that month, the remaining balance after the payment, and the total interest paid to date.

View All Comments | View Tutorial
Advertisement
Related Tutorial and Articles
Java Beginners

Java help needed
Java help needed  Create a web application that will allow a user to play the popular Hangman computer game using Java application program. How... as needed by the number of characters of the chosen word. 2. Add 4 buttons or menu 

JavaScript Questions

Help needed for Form Validation please help!
Help needed for Form Validation please help!  I have created a page.../password combination . Problem arises while validating the Sign up part as after...;%@ page language="java" session="true" %> <% //Getting the text 

Development process Questions

help Needed with requirements
help Needed with requirements  Following are my requirements : * Maintain a student database *Based on a student's test results ,reports should... develop it in Java and it has to be a web app 

Java Beginners

help needed for a program - Java Beginners
help needed for a program   i am having trouble understanding on what to code, so can some 1 help me out here. thanks in advance. Part I Write, compile and execute a Java program that displays the following prompts 

Java Interview Questions

help needed - Java Interview Questions
help needed  What are the new features added in jdk 1.5?  Hi friend, The following were the new features added in java 1.5.... * Autoboxing/unboxing ------------------------- This link will help you 

Swing AWT

Help Required - Swing AWT
static String HELP = "help"; private JFrame controllingFrame; //needed... JFrame("password example in java"); frame.setDefaultCloseOperation...(); } }); } } ------------------------------- Read for more information. http://www.roseindia.net/java/example 

Java Beginners

java swing problem - Java Beginners
java swing problem  i doesn't know about the panel in swings here i had created one frame then created a panel and i added that to my frame but which... CreatePanel () { super("Example Class"); setBounds(100,100,200,200 

Swing AWT

problem in swing-awt
problem in swing-awt  I am doing project in core java and i am facing one problem. I have to add command prompt(terminal) to the fream at bottom but not getting the solution. So please help me. thanks and regards, Aakash 

Java Beginners

Problem in card demo example.
://www.roseindia.net/tutorial/java/swing/dragImage.html http://www.roseindia.net/java/example...Problem in card demo example.  Hi, I have successfully shows... help me, I am using Eclipse and card demo example by following link http 

Servlet Interview Questions

servlet redirect problem help needed
servlet redirect problem help needed  package p; import java.io.IOException; import javax.servlet.RequestDispatcher; import... is calling by a jsp..there is no problem,in this servlet the if condition always 

Servlet Interview Questions

servlet redirect problem help needed
servlet redirect problem help needed  package p; import java.io.IOException; import javax.servlet.RequestDispatcher; import... is calling by a jsp..there is no problem,in this servlet the if condition always 

JDBC Questions

urgent help needed in JDBC AND JAVA GUI - JDBC
urgent help needed in JDBC AND JAVA GUI  my application allows... want any one to help me convert from scanner to java GUI for this code...(); } } // thanks for any help rendered   Hi Friend, Try the following code 

Swing AWT

Need Help with Java-SWING progrmming - Swing AWT
Need Help with Java-SWING progrmming  Hi sir, I am a beginner... with a program in swing. Could you help me with an example? Regards Sreejith ...://www.roseindia.net/java/example/java/swing/Print.shtml Thanks 

Swing AWT

Java Swings problem - Swing AWT
Java Swings problem  Sir, I am facing a problem in JSplitPane. I want the divider in the splitpane to be customized. I have a splitpane... pane. For example, if the split pane is of dimension (0,0,100, 400), then divider 

Java Beginners

what programs are needed in java programming? - Java Beginners
what programs are needed in java programming?  What programs are needed in java programming?   Hi friend, For solving the problem visit..., For solving the problem visit to : http://www.roseindia.net/java/ Thanks 

Java Beginners

Help needed on java standalone app and default browser interaction.
Help needed on java standalone app and default browser interaction.  ... the url thats displaying on my default browser to my java standalone application? Platform Windows Browser IE7 Any from of help would be deeply apperciated 

Swing AWT

Multiple session problem - Swing AWT
Multiple session problem  I am working in a Linux based java swing application. Problem: I have optimized JDialog and JPanel for my use.... This problem is quite critical as UI looks quite unpredictable due 

Swing AWT

Java Problem Steps - Swing AWT
Java Problem Steps  How to create a Jar File From the Dos prompt of a Swing program having two classes in the program with one is public class one of them 

Swing AWT

Need Help To Connect XML as backend in Java-Swing
Need Help To Connect XML as backend in Java-Swing  Seat arrangment swing screenshot I made XML program to connect to swing like this. <?xml... problem is if i click the B1 label it need to change as(occupied-grey colour 

Applet Questions

Swing - Applet
information on swing visit to : http://www.roseindia.net/java/example/java...Swing  Hello, I am creating a swing gui applet, which is trying to output all the numbers between a given number and add them up. For example 

Swing AWT

java image loadin and saving problem - Swing AWT
java image loadin and saving problem  hey in this code i am trying to load a picture and save it.........but image is only visible whn we maximize the frame savin is nt done plzz help me with this code......... import 

SQL Question

look up values help needed
look up values help needed  Hi, I have a table that returns rows with a total weight (say 212.5 for example). I have another look up table that has... this: (example) kg value 0 2.00000000000000000000 160.5 

Swing AWT

SWT_AWT bridge ,jtextfield edit problem - Swing AWT
visit to : http://www.roseindia.net/java/example/java/swing/ Thanks... bridge in my code to embed swing components in to SWT Composite. I am using SWT_AWT bridge frame and adding JTextfield to it, My problem is that the JTextfield 

Java Interview Questions

urjent code needed - Java Interview Questions
. Please write a java code that will: 1. Implements hashCode() and equals... problem. Thanks 

Swing AWT

java swings - Swing AWT
. http://www.roseindia.net/java/example/java/swing/draw-simple-bar...java swings  I am doing a project for my company. I need a to show... write the code for bar charts using java swings.  Hi friend, I am 

Java Beginners

Swing Button Example
Swing Button Example  Hi, How to create an example of Swing button in Java? Thanks   Hi, Check the example at How to Create Button on Frame?. Thanks 

Swing AWT

JAVA SWING
JAVA SWING  Hi.... Iam doing project in java...and my front end in swing ..our project is like billing software... then what are the topics i want cover? then how to design? pls help me 

Java Beginners

java swing.
java swing.  Hi How SetBounds is used in java programs.The values in the setBounds refer to what? ie for example setBounds(30,30,30,30) and in that the four 30's refer to what 

Swing AWT

java swing - Swing AWT
: http://www.roseindia.net/java/example/java/swing/ Thanks...java swing  how to add image in JPanel in Swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image. 

Swing AWT

java swing - Swing AWT
java swing   Iam developing a java web browser.Actually my code works fine ie. i can load a web page without proxy.But in my place i have only proxy... a proxy or how to make my java web browser to listen to proxy setting??? please help 

Java Interview Questions

problem
problem  hi'sir mai niit student hu.mujhe java ka program samaj me nhi aata mai kya karu and mai kaise study karu please help me.   Learn Java from the given link: Java Tutorials 

Java Beginners

java problem - Java Beginners
/java/example/java/swing/calculator-in-swing.shtml Thanks...java problem  Write a program to model a simple calculator. Each data line should consist of the next operation to be performed from the list below 

Swing AWT

java-swings - Swing AWT
://www.roseindia.net/java/example/java/swing/ Thanks. Amardeep...java-swings  How to move JLabel using Mouse? Here the problem is i have a set of labels in a panel. I want to arrange them in a customized order 

Swing AWT

java - Swing AWT
java  hello sir.. i want to start the project of chat server in java please help me out how to start it?? urgently....  Hi friend, To solve problem to visit this link....... http://www.roseindia.net 

Java Beginners

Java help - Java Beginners
. ∑ Find the additional ADTs needed to solve this problem. ∑ Rewrite...Java help  I didnot get the code ,therefore I am posting my question again.. Thanks in advance ...:) Programming Assignment: A) Consider 

Java Beginners

java swing (jtable)
java swing (jtable)  hii..how to get values of a particular record in jtable from ms access database using java swing in netbeans..?? please help..its urgent..   Here is an example that retrieves the particular record 

Java Beginners

Java swing code - Java Beginners
://www.roseindia.net/java/example/java/swing I hope this would be helpful to you...Java swing code  How to set a font for a particular cell in JTable?  Hi Friend, Please visit the following link for any kind of help 

Java3D Questions

SWING
SWING  A JAVA CODE OF MOVING TRAIN IN SWING 

Java-Tutorials

Java Swing : JLabel Example
In this tutorial, you will learn how to create a label in java swing 

Java Beginners

java help - Java Beginners
java help  I would like to modify the client program so... Friend, Please check the following example code for recursive exception handling to solve your problem. Code ===== import java.util.*; class 

Java Interview Questions

help
(); } } SFDV2103 ‚?? Java Programming Fall, 2012 Term Project..., you are asked to make changes in the existing class. Problem: Open the class ‚... on the percentage of cheating. SFDV2103 ‚?? Java Programming Fall, 2012 Term 

Swing AWT

code - Swing AWT
code  i want example problem for menubar in swings  Hi Friend, Please visit the following links: http://www.roseindia.net/java/example/java/swing/SwingMenu.shtml http://www.roseindia.net/java/example/java/swing 

Java Beginners

java swing and CSS
java swing and CSS  can css be used in java swing desktop application in different forms for better styles?plzz help 

Java Beginners

Help with cypher and key problem in Java - Java Beginners
Help with cypher and key problem in Java  So far I have a program that asks a user for a message and a key amount and displays an encrypted message which is obtained by shifting the each character according to the key amount 

Swing AWT

swing
swing  Write a java swing program to delete a selected record from a table 

Java Beginners

code problem - Java Beginners
; Hi friend, Code to help in solving the problem : import java.io.... in Java visit to : http://www.roseindia.net/java/example/java/io/ Thanks... lines of a particular file i've to display every Line's contains, example- Line1 

Swing AWT

Java - Swing AWT
Java    Hi friend,read for more information,http://www.roseindia.net/java/example/java/swing 

Java Beginners

further clarification needed - Java Beginners
 

Java Server Faces Questions

jsf center tag needed - Java Server Faces Questions
, Code to solve the Problem : Thanks 

Java Beginners

Java program problem
is a path to a directory. Example: java DuplicateFinder c:\Documents...Java program problem  Hi, I took the chance to login here in your educational page due to my questions in mind about my java programming assignment 

Java Beginners

java help
java help  How to Open CSV Files in a Microsoft Excel Application Using Java Code with example pgm 

Java Beginners

Help needed in JSP
Help needed in JSP  Hi .. I want to Update the multiple values of database using checkboxes and want to set the session for selected checkboxes..? please answer if any one knows as soon as possible 

Java Beginners

please help me to overcome this problem
please help me to overcome this problem  how to make it easy to write java code. can u please give me suggestions 

Java Beginners

java Code Problem - Java Beginners
java Code Problem  Hi Sir. i am creating one java program in which i want to remove unsed variables from java program and store it into another name or same name.for example,my program is as follows. class Prog1 { int 

JSP Servlet Questions

java Problem
java Problem  I want to create a binary tree for displaying members in Downline. i am creating a site for MLM(Multi-Level MArketing). tree must be dynamically populated from database. is there any help for me. Thanks in advance 

Java Beginners

Swing - Java Beginners
: http://www.roseindia.net/java/example/java/swing/ http://www.roseindia.net/java/example/java/awt/ Hope that it will be helpful for you. Thanks... links: http://www.grandt.com/sbe/ http://www.javafaq.nu/java/free-swing-book 

Swing AWT

How to save data - Swing AWT
to : http://www.roseindia.net/java/example/java/swing/ Thanks... please help me  Hi friend, Code to help in solving the problem...How to save data  Hi, I have a problem about how to save data 

Swing AWT

Swing
Swing  Write a java swing program to search the details of the students. Searching is performed on student‚??s first name. The details of all those students having same name as in given in searching criterion will be displayed 

Swing AWT

Swing
Swing  Write a java swing program to search the details of the students. Searching is performed on student‚??s first name. The details of all those students having same name as in given in searching criterion will be displayed 

Java Beginners

can interface solve this problem in java
/tutorial/java/swing/datePicker.html   thanks very much...can interface solve this problem in java  I have a JDialog which... this calander class. can interface solve this problem. If yes then how. pls 

Programming Tutorials

Java Swing Open Browser
Java Swing Open Browser Java provides different methods to develop useful applications. In this section, you will learn how to create an example that will open the specified url on the browser using java swing. This example will really 

Swing AWT

java - Swing AWT
Java Implementing Swing with Servlet  How can i implement the swing with servlet in Java? Can anyone give an Example??   Implementing Swing with Servlet Example and source Code Servlet SwingToServlet 

Java Beginners

Java Programming Code HELP
the expert can help me to solve this problem and pull out the attribute name. Can sir/madam help me check where is the problem...and help me to fix it..thanks a lot...Java Programming Code HELP  Hi, sir/madam. I am new here 

Java Beginners

java swing - Java Beginners
java swing  utlility of super.paintComponent(Graphics g) in java? what does it do actually i.e. which class it is extending or method overriding? Please clarify this with example 

Java Beginners

JAVA Problem
JAVA Problem  Write a program that takes two parameters 1. a word 2. an array of words It should then remove all instances of the word in the array. For Example: INPUT word="ravi" word_array = ["Chethan Bhagat 

Java-Tutorials

Java Swing : JFrame Example
Java Swing : JFrame Example In this section, you will learn how to create a frame in java swing. JFrame : JFrame class is defined in javax.swing.JFrame....(), getGlassPane(), getJMenuBar() etc.. Example : import java.awt.Dimension; import 

Java Beginners

java swing - Java Beginners
(){ JFrame f = new JFrame("Frame in Java Swing"); f.getContentPane().setLayout(null...java swing  How to set the rang validation on textfield, compare... want to send the selected item in database , how to send , plz help 

General

Java Swing Tutorials
with the help of Java 2D API.   Data Transfer Swing... how to create the JTabbedPane container in Java Swing. The example... components with the help of grid in Java Swing. The grid layout provides 

Java Beginners

Java swing - Java Beginners
Java swing  Hi, I want to copy the file from one directory... will be displayed in the page and progress bar also. Example, I have 10 files...; public Copy() { JFrame frame = new JFrame("Swing Progress Bar 

Java Beginners

Code Help Needed
Code Help Needed  I am trying to help a buddy of mine with this program and I can't seem to figure it out. I am still working on it but any help...[test]); line. Again thank you for any help. import java.util.*; import 

Java3D Questions

help in java
help in java  The factorial of a nonnegative integer n is written n! (pronounced √Ę‚?¨Ň? n factorial√Ę‚?¨¬?) and is defined as follows: n!=n . (n-1...=0) for example, 5!=5.4.3.2.1, which is 120 a) Write an application that reads 

Java Beginners

urgent help needed!!!!
....please help me.... 1)state.jsp: <%@page import="java.sql.*"%> 

Java Beginners

urgent help needed!!!!
access country and state....please help me.... 1)state.jsp: <%@page import 

Blog

Sitemap Java Swing Tutorial
-to-One Relationship | JPA-QL Queries Java Swing Tutorial Section Java Swing Introduction | Java 2D API | Data Transfer in Java Swing | Internationalization in Java Swing | Localization | What is java swing 

Java3D Questions

help in java
help in java  Gross And Dozens Design and implement a class called GrossAndDozens to convert a given number of eggs into the number of gross... many left over eggs he has. For example, if the user says that he has 1342 eggs 

Java Beginners

Programing Help - Java Beginners
Programing Help  how to design a filebrowser in java "witout using Swing 

Java Beginners

Java swing - Java Beginners
Java swing  Hi, I want to copy the file from one directory to another directory,the same time i want to get the particular copying filename will be displayed in the page and progress bar also. Example, I have 10 files 

Swing AWT

Date picker in Java Swing
in need of Time Picker just like the Date picker available in java Swing. Kindly... link: Java Date Time Picker Example   Hello Sir, Thank... thoroughly . But Sir, I want Time Picker In java swing desktop application 

Java3D Questions

help in java
help in java   Team Roster Create a program called TeamRoster... or help me on this pleas.. 7. Gross And Dozens Design and implement a class..., and how many left over eggs he has. For example, if the user says that he has 1342 

Java3D Questions

help in java
help in java  Define a class named Money whose objects represent... and a single argument. For example, this version of add method (for addition) has...; for example, there should be two methods named add. Write a test program for your 

Swing AWT

Java - Swing AWT
Java  program to read,add,update,delete the database using swing and servlet  Hello Just Refer Don't Copy the content of this URL... the problem to visit...... http://roseindia.net/servlets/web-application.shtml 

Swing AWT

printout problem
information, visit the following link: http://www.roseindia.net/java/example/java/swing...printout problem  Hi I have created a swing application which enter some data and fetch some data from DB . Now I want a print feature by which i 

Java Beginners

concept Understatnding problem - Java Beginners
concept Understatnding problem  Even though I have studied in detail inheritance & interfaces in java , I fail to understand "How Interfaces Help in Multiple Inheritance ?" . Pls. Supplement ur ans. with an example. Thanx 

Java3D Questions

help in java
help in java  Create 3 shopping carts from a Cart class. Each class should have four items in it, a title, a price for the 4 items and the number...) and n!=1 (for n=0) for example, 5!=5.4.3.2.1, which is 120 a) Write 

Java3D Questions

help in java
help in java  Create a class named Order that performs order processing of a single item. The class has five instance variables (fields) : customer... toString() This is an example on a valid output of the program: Please enter 

Swing AWT

tooltip problem - Swing AWT
to embed swing components into SWT Composite. I am using a Swing JButton in SWT Composite. My problem is that I am unable to see the tooltip for this button even... in advance.   Hi friend, Code to help in solving the program 

Java-Tutorials

What is Java Swing?
What is Java Swing?       Here, you will know about the Java swing. The Java Swing provides... and GUIs components. All Java Swing classes imports form the import 

Swing AWT

Java Dialogs - Swing AWT
visit the following links: http://www.roseindia.net/java/example/java/swing/GrideComponents.shtml http://www.roseindia.net/tutorial/java/swing/springlayout.html http://www.roseindia.net/java/example/java/awt/borderlayout-example 

Java Beginners

java swing in netbeans
java swing in netbeans  how can create sub menu in java swing using...[]) { JFrame frame = new JFrame("MenuSample Example... backwardMenuItem = new JMenuItem("Java"); newmenu.add(backwardMenuItem 

Framework Questions

java swing
java swing  view the book details using swing 

Java Interview Questions

Java swing
Java swing  Does Swing contains any heavy weight component 

Java Interview Questions

Java swing
Java swing  what are the root classes of all classes in swing 

Java Beginners

java swing - Java Beginners
java swing  How to upload the image in using java swings. ex- we make a button to browsbutton and savebutton , when we click on the browsbutton , i can brows the image from the computer. plz help soon......... thanx.  

Java Beginners

Java Swing code for zoom in and out
Java Swing code for zoom in and out  hi.......... I require a code in java swing for image zoom in and zoom out can u tell me how it can be done or what is the code plz help 

Java Beginners

java swing jdbc - Java Beginners
java swing jdbc  hello, i want to populate the data(ms access) to the jtable component and want to perform some operations on it like add,edit,delete. Again i want to store the updated data to the database. can you help me out 

Java Beginners

jdbc &swing - Java Beginners
jdbc &swing  I've used a progress bar in a database file upload window using swing.. But I can't set the uploading processing time with the progress bar.. please help me as early as possible.. How can I use progress bar against 

Java Beginners

java swing
java swing  what is java swing   Swing is a principal GUI toolkit for the Java programming language. It is a part of the JFC (Java Foundation Classes), which is an API for providing a graphical user interface for Java 

Swing AWT

Swing UI alignment Issue on different Platform - Swing AWT
are developing UI using Java Swing on windows. The problem is when we Test the same Ui...://www.roseindia.net/java/example/java/swing/ Thanks  Hi Sekhar... are developing UI using Java Swing on windows, As java is a platform independent , I 

Java Beginners

How to create Runtime time jLabel in java swing ?
How to create Runtime time jLabel in java swing ?   hi sir. my problem is that i want to display database row on a jLabel. Suppose i retrived... only 3 label will created. & 3 value from databse will display please help 

Java Beginners

java swing
java swing  how to connect database with in grid view in java swing   Hi Friend, Please visit the following link: Grid view in java swing Thanks 

Advertisements Advertisements
 

 

 

DMCA.com