<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>applets | Student Projects</title>
	<atom:link href="https://studentprojects.in/tag/applets/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sun, 04 Oct 2009 14:43:51 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Java applet program for interest rate calculation</title>
		<link>https://studentprojects.in/software-development/java/java-programs/applet/java-applet-program-for-interest-rate-calculation/</link>
					<comments>https://studentprojects.in/software-development/java/java-programs/applet/java-applet-program-for-interest-rate-calculation/#comments</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sun, 04 Oct 2009 14:43:51 +0000</pubDate>
				<category><![CDATA[Applet programs]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[applets]]></category>
		<category><![CDATA[interest calculation]]></category>
		<category><![CDATA[loan]]></category>
		<category><![CDATA[java programme]]></category>
		<guid isPermaLink="false">http://studentprojects.in/?p=881</guid>

					<description><![CDATA[<p>Write a Java program that computes the payment of a loan based on the amount of the loan, the interest rate and the number of months. It takes one parameter from the browser: Monthly rate;if true, the interest rate is per month; Otherwise the interest rate is annual.</p>
<p>The post <a href="https://studentprojects.in/software-development/java/java-programs/applet/java-applet-program-for-interest-rate-calculation/">Java applet program for interest rate calculation</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p>Write a Java program that computes the payment of a loan based on the amount of the loan, the interest rate and the number of months. It takes one parameter from the browser: Monthly rate;if true, the interest rate is per month; Otherwise the interest rate is annual.</p>
<pre lang="java" escaped="true" line="1">
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
/*
<applet code="Loan" width=300 height=300>
</applet>
*/
public class Loan extends Applet
implements ActionListener,ItemListener
{
	double p,r,n,total,i;
	String param1;
	boolean month;
	Label l1,l2,l3,l4;
	TextField t1,t2,t3,t4;
	Button b1,b2;
	CheckboxGroup cbg;
	Checkbox c1,c2;
	String str;
	public void init()
	{
		l1=new Label("Balance Amount",Label.LEFT);
		l2=new Label("Number of Months",Label.LEFT);
		l3=new Label("Interest Rate",Label.LEFT);
		l4=new Label("Total Payment",Label.LEFT);
		t1=new TextField(5);
		t2=new TextField(5);
		t3=new TextField(15);
		t4=new TextField(20);
		b1=new Button("OK");
		b2=new Button("Delete");
		cbg=new CheckboxGroup();
		c1=new Checkbox("Month Rate",cbg,true);
		c2=new Checkbox("Annual Rate",cbg,true);
		t1.addActionListener(this);
		t2.addActionListener(this);
		t3.addActionListener(this);
		t4.addActionListener(this);
		b1.addActionListener(this);
		b2.addActionListener(this);
		c1.addItemListener(this);
		c2.addItemListener(this);
		add(l1);
		add(t1);
		add(l2);
		add(t2);
		add(l3);
		add(t3);
		add(l4);
		add(t4);
		add(c1);
		add(c2);
		add(b1);
		add(b2);
	}
	public void itemStateChanged(ItemEvent ie)
	{
	}
	public void actionPerformed(ActionEvent ae)
	{
		str=ae.getActionCommand();
		if(str.equals("OK"))
		{
			p=Double.parseDouble(t1.getText());
			n=Double.parseDouble(t2.getText());
			r=Double.parseDouble(t3.getText());
			if(c2.getState())
			{
				n=n/12;
			}
			i=(p*n*r)/100;
			total=p+i;
			t4.setText(" "+total);
		}
		else if(str.equals("Delete"))
		{
			t1.setText(" ");
			t2.setText(" ");
			t3.setText(" ");
			t4.setText(" ");
		}
	}
}
</pre>
<p>Output:<br />
<figure id="attachment_882" aria-describedby="caption-attachment-882" style="width: 309px" class="wp-caption aligncenter"><img decoding="async" src="https://studentprojects.in/wp-content/uploads/2009/10/java_loan_calculation_1.jpg" alt="Java applet program output for interest rate calculation" title="java loan calculation" width="309" height="376" class="size-full wp-image-882" /><figcaption id="caption-attachment-882" class="wp-caption-text">Java applet program output for interest rate calculation</figcaption></figure></p><p>The post <a href="https://studentprojects.in/software-development/java/java-programs/applet/java-applet-program-for-interest-rate-calculation/">Java applet program for interest rate calculation</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/software-development/java/java-programs/applet/java-applet-program-for-interest-rate-calculation/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
