Programming Examples

AngularJS Program to find the Simple Interest


Simple Interest Calculator

Write a AngularJS Program which accept the Principal Amount, Rate, Time from user and Find the Simple Interest. 

Solution

<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
<body>
<div ng-app="">
	<table cellpadding="3px" align="center" style="border:2px solid red;padding:10px;border-radius:20px;">
		<tr>
			<th colspan="2">Simple Interest Calculator</th>
		</tr>
		<tr>
			<td>Principle Amount</td>
			<td><input type="text" ng-model="pa"></td>
		</tr>
		<tr>
			<td>Rate of Interest</td>
			<td><input type="text" ng-model="rate"></td>
		</tr>
		<tr>
			<td>Time</td>
			<td><input type="text" ng-model="time"></td>
		</tr>
		<tr>
			<td>Simple Interest</td>
			<td><h4>{{((pa*rate*time)/100)}}</h4></td>
		</tr>
	</table>
</div>

</body>
</html>
CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz