Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners how to calculate EMI of the loan

Have Programming Question? Ask it here!
 
 
 


progenitor
how to calculate EMI of the loan
3 Answer(s)      a year and 10 months ago
Posted in : Java Beginners


package carloanapp;

import java.io.FileWriter;
import java.io.IOException;

public class CarLoan { Customer gObjCustomer = null; double gDbRequestedLoanAmount = 0; double gDbInterestRate = 0; String gStrLoanRiskLevel = null; String CalculateRiskLevel(Customer lObjCustomer, int lIntTenure, Double lDbAmountRequested){ double lDbEMI; double lDbSalary; double lDbTotalLoanAmount; String lStrRiskLevel = null; lDbSalary = lObjCustomer.getgDbAnnualIncome() / 12; lDbTotalLoanAmount = lObjCustomer.getgDbTotalExistingLoanAmount() + lDbAmountRequested; lDbEMI = lDbTotalLoanAmount / ( lIntTenure * 12 ); if(lObjCustomer.getgStrCreditLevel().equals("good")){ if(lDbEMI <= lDbSalary * 40 / 100){ lStrRiskLevel = "low"; }else if(lDbSalary * 40 / 100 < lDbEMI && lDbEMI <= lDbSalary * 80 / 100){ lStrRiskLevel = "medium"; }else{ lStrRiskLevel = "high"; } }else if(lObjCustomer.getgStrCreditLevel().equals("normal")){ if(lDbEMI <= lDbSalary * 30 / 100){ lStrRiskLevel = "low"; }else if(lDbSalary * 30 / 100 < lDbEMI && lDbEMI <= lDbSalary * 70 / 100){ lStrRiskLevel = "medium"; }else{ lStrRiskLevel = "high"; } }else if(lObjCustomer.getgStrCreditLevel().equals("bad")){ if(lDbEMI <= lDbSalary * 20 / 100){ lStrRiskLevel = "low"; }else if(lDbSalary * 20 / 100 < lDbEMI && lDbEMI <= lDbSalary * 60 / 100){ lStrRiskLevel = "medium"; }else{ lStrRiskLevel = "high"; } } return lStrRiskLevel; } double CalculateInterest(String lStrCreditLevel, String lStrRiskLevel){ double lDbInterestRate=0; if (lStrCreditLevel.equals("good") && lStrRiskLevel.equals("high")){ lDbInterestRate=11; } else if(lStrCreditLevel.equals("good") && lStrRiskLevel.equals("medium")){ lDbInterestRate=10; } else if(lStrCreditLevel.equals("good") && lStrRiskLevel.equals("low")){ lDbInterestRate=9; } else if(lStrCreditLevel.equals("normal") && lStrRiskLevel.equals("high")){ lDbInterestRate=12; } else if(lStrCreditLevel.equals("normal") && lStrRiskLevel.equals("medium")){ lDbInterestRate=11; } else if(lStrCreditLevel.equals("normal") && lStrRiskLevel.equals("low")){ lDbInterestRate=10; } else if(lStrCreditLevel.equals("bad") && lStrRiskLevel.equals("high")){ lDbInterestRate=13; } else if(lStrCreditLevel.equals("bad") && lStrRiskLevel.equals("medium")){ lDbInterestRate=12; }else if(lStrCreditLevel.equals("bad") && lStrRiskLevel.equals("low")){ lDbInterestRate=11; } return lDbInterestRate; } void updateCustomerRecord(Customer lObjCustomer,double lDbRequestedLoan){ try{ String filename= "Customers.txt"; FileWriter fw = new FileWriter(filename,true); //the true will append the new data fw.write("\r\n"+lObjCustomer.getgIntCustomerId()+","+lObjCustomer.getgStrCustomerName()+","+lObjCustomer.getgStrCreditLevel()+","+lDbRequestedLoan);//appends the string to the file fw.close(); } catch(IOException ioe) { System.err.println("IOException: " + ioe.getMessage()); } } boolean isAccepted(String lStrLoanRisk){ boolean lBooLoanAccepted=true; if(lStrLoanRisk.equals("high")){ lBooLoanAccepted=false; } return lBooLoanAccepted; } }

package carloanapp;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.Scanner;

public class CarLoanApp { public static void main(String args[]){ double lDbLoanAmountRequested = 0; int lIntTenure = 0; CarLoan lObjCarLoan=new CarLoan(); Scanner in = new Scanner(System.in); System.out.println("Enter the CustomerId "); int lIntCustomerId=Integer.parseInt(in.nextLine()); System.out.println("Enter the Annual Income"); double lDbAnnualIncome=Double.parseDouble(in.nextLine()); Customer lObjCustomer = retrieveCustomerFromFile(lIntCustomerId, lDbAnnualIncome); if(lObjCustomer==null){ System.out.println("Customer doesnt exist "); } else{ System.out.println("Enter the loan amount"); lDbLoanAmountRequested = Double.parseDouble(in.nextLine()); System.out.println("Enter the tenure"); lIntTenure = Integer.parseInt(in.nextLine()); String lStrRiskLevel = lObjCarLoan.CalculateRiskLevel(lObjCustomer, lIntTenure, lDbLoanAmountRequested); boolean lBooLoanStatusAccepted = lObjCarLoan.isAccepted(lStrRiskLevel); if(lBooLoanStatusAccepted){ double lDbInterestRate = lObjCarLoan.CalculateInterest(lObjCustomer.getgStrCreditLevel(), lStrRiskLevel); System.out.println("Loan Accepted\nInterest Rate : "+ lDbInterestRate); lObjCarLoan.updateCustomerRecord(lObjCustomer, lDbLoanAmountRequested); }else{ System.out.println("Maa chuao: "); } } // System.out.println(lObjCustomer.getgDbAnnualIncome()); // System.out.println(lObjCustomer.getgDbTotalExistingLoanAmount()); // System.out.println(lObjCustomer.getgIntCustomerId()); // System.out.println(lObjCustomer.getgStrCreditLevel());

} static Customer retrieveCustomerFromFile(int CustomerId, double AnnualIncome){ Customer lObjCustomer = new Customer(); int lIntCustomerId = 0; String lStrCustomerName = null; String lStrCreditLevel = null; double lDbAnnualIncome = 0; double lDbTotalExistingLoanAmount = 0; boolean lBooCustomerFound = false; try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream("Customers.txt"); // Get the object of DataInputStream DataInputStream inp = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(inp)); String strLine; //Read File Line By Line while ((strLine = br.readLine()) != null) { // Print the content on the console int commaLocation = strLine.indexOf(','); lIntCustomerId = Integer.parseInt(strLine.substring(0, commaLocation)); if(lIntCustomerId == CustomerId){ lBooCustomerFound = true; int nextCommaLocation = strLine.indexOf(',', commaLocation + 1); lStrCustomerName = strLine.substring(commaLocation + 1, nextCommaLocation); commaLocation = nextCommaLocation; nextCommaLocation = strLine.indexOf(',', commaLocation + 1); lStrCreditLevel = strLine.substring(commaLocation + 1, nextCommaLocation); commaLocation = nextCommaLocation; nextCommaLocation = strLine.length(); lDbTotalExistingLoanAmount += Double.parseDouble(strLine.substring(commaLocation + 1, nextCommaLocation)); } } if(lBooCustomerFound){ lObjCustomer.setgDbAnnualIncome(AnnualIncome); lObjCustomer.setgDbTotalExistingLoanAmount(lDbTotalExistingLoanAmount); lObjCustomer.setgIntCustomerId(lIntCustomerId); lObjCustomer.setgStrCreditLevel(lStrCreditLevel); lObjCustomer.setgStrCustomerName(lStrCustomerName); }else{ lObjCustomer=null; } inp.close(); }catch (Exception e){//Catch exception if any System.err.println("Error: " + e.getMessage()); } return lObjCustomer; } }
package carloanapp;

import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class Customer {

private int gIntCustomerId;
private String gStrCustomerName;
private String gStrCreditLevel;
private  double gDbAnnualIncome;
private double gDbTotalExistingLoanAmount;

public Customer(){

}
public int getgIntCustomerId() {
    return gIntCustomerId;
}
public void setgIntCustomerId(int gIntCustomerId) {
    this.gIntCustomerId = gIntCustomerId;
}
public String getgStrCustomerName() {
    return gStrCustomerName;
}
public void setgStrCustomerName(String gStrCustomerName) {
    this.gStrCustomerName = gStrCustomerName;
}
public String getgStrCreditLevel() {
    return gStrCreditLevel;
}
public void setgStrCreditLevel(String gStrCreditLevel) {
    this.gStrCreditLevel = gStrCreditLevel;
}
public double getgDbAnnualIncome() {
    return gDbAnnualIncome;
}
public void setgDbAnnualIncome(double gDbAnnualIncome) {
    this.gDbAnnualIncome = gDbAnnualIncome;
}
public double getgDbTotalExistingLoanAmount() {
    return gDbTotalExistingLoanAmount;
}
public void setgDbTotalExistingLoanAmount(double gDbTotalExistingLoanAmount) {
    this.gDbTotalExistingLoanAmount = gDbTotalExistingLoanAmount;
}
}

Advertisement
View Answers

September 10, 2012 at 3:05 AM


class for carloan :

package carloanapp;

import java.io.FileWriter;
import java.io.IOException;

public class CarLoan {
    Customer gObjCustomer = null;
    double gDbRequestedLoanAmount = 0;
    double gDbInterestRate = 0;
    String gStrLoanRiskLevel = null;

String CalculateRiskLevel(Customer lObjCustomer, int lIntTenure, Double lDbAmountRequested){ double lDbEMI; double lDbSalary; double lDbTotalLoanAmount; String lStrRiskLevel = null; lDbSalary = lObjCustomer.getgDbAnnualIncome() / 12; lDbTotalLoanAmount = lObjCustomer.getgDbTotalExistingLoanAmount() + lDbAmountRequested; lDbEMI = lDbTotalLoanAmount / ( lIntTenure * 12 ); if(lObjCustomer.getgStrCreditLevel().equals("good")){ if(lDbEMI <= lDbSalary * 40 / 100){ lStrRiskLevel = "low"; }else if(lDbSalary * 40 / 100 < lDbEMI && lDbEMI <= lDbSalary * 80 / 100){ lStrRiskLevel = "medium"; }else{ lStrRiskLevel = "high"; } }else if(lObjCustomer.getgStrCreditLevel().equals("normal")){ if(lDbEMI <= lDbSalary * 30 / 100){ lStrRiskLevel = "low"; }else if(lDbSalary * 30 / 100 < lDbEMI && lDbEMI <= lDbSalary * 70 / 100){ lStrRiskLevel = "medium"; }else{ lStrRiskLevel = "high"; } }else if(lObjCustomer.getgStrCreditLevel().equals("bad")){ if(lDbEMI <= lDbSalary * 20 / 100){ lStrRiskLevel = "low"; }else if(lDbSalary * 20 / 100 < lDbEMI && lDbEMI <= lDbSalary * 60 / 100){ lStrRiskLevel = "medium"; }else{ lStrRiskLevel = "high"; } } return lStrRiskLevel; } double CalculateInterest(String lStrCreditLevel, String lStrRiskLevel){ double lDbInterestRate=0; if (lStrCreditLevel.equals("good") && lStrRiskLevel.equals("high")){ lDbInterestRate=11; } else if(lStrCreditLevel.equals("good") && lStrRiskLevel.equals("medium")){ lDbInterestRate=10; } else if(lStrCreditLevel.equals("good") && lStrRiskLevel.equals("low")){ lDbInterestRate=9; } else if(lStrCreditLevel.equals("normal") && lStrRiskLevel.equals("high")){ lDbInterestRate=12; } else if(lStrCreditLevel.equals("normal") && lStrRiskLevel.equals("medium")){ lDbInterestRate=11; } else if(lStrCreditLevel.equals("normal") && lStrRiskLevel.equals("low")){ lDbInterestRate=10; } else if(lStrCreditLevel.equals("bad") && lStrRiskLevel.equals("high")){ lDbInterestRate=13; } else if(lStrCreditLevel.equals("bad") && lStrRiskLevel.equals("medium")){ lDbInterestRate=12; }else if(lStrCreditLevel.equals("bad") && lStrRiskLevel.equals("low")){ lDbInterestRate=11; } return lDbInterestRate; } void updateCustomerRecord(Customer lObjCustomer,double lDbRequestedLoan){ try{ String filename= "Customers.txt"; FileWriter fw = new FileWriter(filename,true); //the true will append the new data fw.write("\r\n"+lObjCustomer.getgIntCustomerId()+","+lObjCustomer.getgStrCustomerName()+","+lObjCustomer.getgStrCreditLevel()+","+lDbRequestedLoan);//appends the string to the file fw.close(); } catch(IOException ioe) { System.err.println("IOException: " + ioe.getMessage()); } } boolean isAccepted(String lStrLoanRisk){ boolean lBooLoanAccepted=true; if(lStrLoanRisk.equals("high")){ lBooLoanAccepted=false; } return lBooLoanAccepted; } }


September 10, 2012 at 3:07 AM


class for CarLoanApp :

package carloanapp;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.InputStreamReader;
import java.util.Scanner;

public class CarLoanApp { public static void main(String args[]){ double lDbLoanAmountRequested = 0; int lIntTenure = 0; CarLoan lObjCarLoan=new CarLoan(); Scanner in = new Scanner(System.in); System.out.println("Enter the CustomerId "); int lIntCustomerId=Integer.parseInt(in.nextLine()); System.out.println("Enter the Annual Income"); double lDbAnnualIncome=Double.parseDouble(in.nextLine()); Customer lObjCustomer = retrieveCustomerFromFile(lIntCustomerId, lDbAnnualIncome); if(lObjCustomer==null){ System.out.println("Customer doesnt exist "); } else{ System.out.println("Enter the loan amount"); lDbLoanAmountRequested = Double.parseDouble(in.nextLine()); System.out.println("Enter the tenure"); lIntTenure = Integer.parseInt(in.nextLine()); String lStrRiskLevel = lObjCarLoan.CalculateRiskLevel(lObjCustomer, lIntTenure, lDbLoanAmountRequested); boolean lBooLoanStatusAccepted = lObjCarLoan.isAccepted(lStrRiskLevel); if(lBooLoanStatusAccepted){ double lDbInterestRate = lObjCarLoan.CalculateInterest(lObjCustomer.getgStrCreditLevel(), lStrRiskLevel); System.out.println("Loan Accepted\nInterest Rate : "+ lDbInterestRate); lObjCarLoan.updateCustomerRecord(lObjCustomer, lDbLoanAmountRequested); }else{ System.out.println("loan rejected: "); } } // System.out.println(lObjCustomer.getgDbAnnualIncome()); // System.out.println(lObjCustomer.getgDbTotalExistingLoanAmount()); // System.out.println(lObjCustomer.getgIntCustomerId()); // System.out.println(lObjCustomer.getgStrCreditLevel()); } static Customer retrieveCustomerFromFile(int CustomerId, double AnnualIncome){ Customer lObjCustomer = new Customer(); int lIntCustomerId = 0; String lStrCustomerName = null; String lStrCreditLevel = null; double lDbAnnualIncome = 0; double lDbTotalExistingLoanAmount = 0; boolean lBooCustomerFound = false; try{ // Open the file that is the first // command line parameter FileInputStream fstream = new FileInputStream("Customers.txt"); // Get the object of DataInputStream DataInputStream inp = new DataInputStream(fstream); BufferedReader br = new BufferedReader(new InputStreamReader(inp)); String strLine; //Read File Line By Line while ((strLine = br.readLine()) != null) { // Print the content on the console int commaLocation = strLine.indexOf(','); lIntCustomerId = Integer.parseInt(strLine.substring(0, commaLocation)); if(lIntCustomerId == CustomerId){ lBooCustomerFound = true; int nextCommaLocation = strLine.indexOf(',', commaLocation + 1); lStrCustomerName = strLine.substring(commaLocation + 1, nextCommaLocation); commaLocation = nextCommaLocation; nextCommaLocation = strLine.indexOf(',', commaLocation + 1); lStrCreditLevel = strLine.substring(commaLocation + 1, nextCommaLocation); commaLocation = nextCommaLocation; nextCommaLocation = strLine.length(); lDbTotalExistingLoanAmount += Double.parseDouble(strLine.substring(commaLocation + 1, nextCommaLocation)); } } if(lBooCustomerFound){ lObjCustomer.setgDbAnnualIncome(AnnualIncome); lObjCustomer.setgDbTotalExistingLoanAmount(lDbTotalExistingLoanAmount); lObjCustomer.setgIntCustomerId(lIntCustomerId); lObjCustomer.setgStrCreditLevel(lStrCreditLevel); lObjCustomer.setgStrCustomerName(lStrCustomerName); }else{ lObjCustomer=null; } inp.close(); }catch (Exception e){//Catch exception if any System.err.println("Error: " + e.getMessage()); } return lObjCustomer; } }


September 10, 2012 at 3:08 AM


class for Customer :

package carloanapp;

import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;

public class Customer {

private int gIntCustomerId;
private String gStrCustomerName;
private String gStrCreditLevel;
private  double gDbAnnualIncome;
private double gDbTotalExistingLoanAmount;

public Customer(){

}
public int getgIntCustomerId() {
    return gIntCustomerId;
}
public void setgIntCustomerId(int gIntCustomerId) {
    this.gIntCustomerId = gIntCustomerId;
}
public String getgStrCustomerName() {
    return gStrCustomerName;
}
public void setgStrCustomerName(String gStrCustomerName) {
    this.gStrCustomerName = gStrCustomerName;
}
public String getgStrCreditLevel() {
    return gStrCreditLevel;
}
public void setgStrCreditLevel(String gStrCreditLevel) {
    this.gStrCreditLevel = gStrCreditLevel;
}
public double getgDbAnnualIncome() {
    return gDbAnnualIncome;
}
public void setgDbAnnualIncome(double gDbAnnualIncome) {
    this.gDbAnnualIncome = gDbAnnualIncome;
}
public double getgDbTotalExistingLoanAmount() {
    return gDbTotalExistingLoanAmount;
}
public void setgDbTotalExistingLoanAmount(double gDbTotalExistingLoanAmount) {
    this.gDbTotalExistingLoanAmount = gDbTotalExistingLoanAmount;
}


}


Related Tutorials/Questions & Answers:
how to calculate EMI of the loan
how to calculate EMI of the loan   package carloanapp; import...{ System.out.println("Enter the loan amount"); lDbLoanAmountRequested...(), lStrRiskLevel); System.out.println("Loan Accepted\nInterest Rate
how can i calculate loan - Java Interview Questions
how can i calculate loan  negotiating a consumer loan is not always straightforward.one form of loan is the discount installment loan, which works as follows. suppose a loan has a face value of 1,000 by 0.15 to yield 225
Advertisements
iPhone EMI Calculator, EMI Calculator for iPhone
Calc using Affordable Loan Calculator tab. How to use this tool? Using our EMI...) and the second is Affordable Loan Calculation (ALC). The first EMI Calculation.... EMAIL On the foot side, three tabs will appear: EMI Calculator, Affordable Loan
loan repayment
loan repayment  Monthly installment calculation is (Loan Amount / (12 * number of years of year repayment)) + 7% of (loan Amount) In case... % of monthly installment * n A customer can also check the status of the loan
loan calculator
loan calculator  code of the loan clculator
How to calculate days in a year
How to calculate days in a year  Hi, How to calculate no of days in a year? I want a program that calculates no of days in a year by specifying year a parameter. Thanks   Hi, Please check the thread example
How to calculate attending hours?
How to calculate attending hours?  I need to calculate attending hours of a employee in a day in my project to make their monthly salary . By using work starting time and ending time. How should I do it using Date class? Or any
How to calculate the average in Hibernate?
How to calculate the average in Hibernate?  Hi, I have to calculate the average in Hibernate. How to calculate the average in Hibernate? Thanks   Hi, You can use the project in Hibernate. Here is the example code
how to calculate the price on the option box
how to calculate the price on the option box  How i calculate the value when i using a option box with 2 option..first option i used for product name... to calculate this value
How to calculate area of rectangle
How to Calculate Area of Rectangle       In this section we will learn how to calculate area... explain the static method how to display the rectangle values. First of all we have
java loan calculator applet help
test file) to calculate loan payments. The user will provide the interest rate, the number of years, and loan amount. this is what I have so far import...java loan calculator applet help  Hi, I could use some help
how to calculate the employee tax - JSP-Servlet
how to calculate the employee tax  How to calculate the employee tax.Can u please send to me calculation tables
how to calculate max and min - RUP
how to calculate max and min  hye!i'm a new for the java and i want to ask a question . Could anyone help me to teach how to calculate the maximum and minimum using java language.  Hi friend, In Math class having two
How to calculate sum of HH:MM:SS Format?
How to calculate sum of HH:MM:SS Format?  how to calculate sum of HH:MM:SS? for example: 10:25:36+26:50:56 calculate sum of these values
How to calculate number of weeks in a specified month
How to calculate number of weeks in a specified month  I am create one program that contain three combo box. 1.cmbyear 2.cmbmonth 3.cmbweek i am select year and month. then automatically calculate number of weeks in a specified
How to calculate area of triangle
.style1 { margin-right: 0px; } How to Calculate...; In this section we will learn how to calculate area of triangle. We... in this program we will fine the how to the display massage the area
how to calculate max and min in the loop - Java Beginners
how to calculate max and min in the loop  thanks coz giving me the answer for my question. i want to know is there possible calculation for the max and min value in the loop. the input is from the user. could u teach me. thanks
how to calculate salary of all the employees 10%extra then actual salary - SQL
how to calculate salary of all the employees 10%extra then actual salary  how to calculate salary of all the employees 10% extra then actual salary  Hi Friend, We are providing you a code that will calculate
I wants to take travel loan in India
I wants to take travel loan in India  Hi, i wants to take a travel loan in India ...please suggest from where i can avail it quickly and at minimum rates. Thanks
how can you calculate you your age in daies??
how can you calculate you your age in daies??  **hi, I am beginner in java! can any one help me to write programm to calculate age in daies???**   Hi Friend, Try the following code: import java.util.*; public
how to calculate addition of two distances in feets and inches using objects as functions arguments
how to calculate addition of two distances in feets and inches using objects as functions arguments  how to calculate addition of two distances in feets and inches using objects as functions arguments in java
calculate reward points.
calculate reward points.  How to calculate reward points in a multiplex automation system
How automatically calculate age based on date of birth and current date using jsp and servlet?
How automatically calculate age based on date of birth and current date using jsp and servlet?  when user enters the Date of birth in one textbox then automatically age will be display on another textbox. event:Onlick Event
How to use Sigma grid built-in capabilities to calculate aggregates where Sortable property set to TRUE
How to use Sigma grid built-in capabilities to calculate aggregates where Sortable property set to TRUE  How to use Sigma grid built-in capabilities to calculate aggregates where Sortable property set to TRUE, So that We can also
Calculate Company's Sale using Java
Calculate Company's Sales Using Java In this section, you will learn how to calculate Company's sale. A company sales 3 items at different rates and details of sales ( total amount) of each item are stored on weekly basis i.e. from Monday
calculate sum of individual digit
calculate sum of individual digit   How calculate product of first and last digit of indiviual numbers Like a=43278 4*8=32
calculate average
calculate average  Question 2 cont.d Test case c: home works/labs 10 9 9 9 10 10 9 9 10 10 9 9 10 test scores: 65 89 note, the program should work with different numbers of home works/labs
calculate the time ..
calculate the time ..  [CODE] Elapsed Time Example <script type="text/javascript"> var startTime = null...="button" value="Calculate Difference" onclick="calculateTimeElapsed();" />
calculate average
calculate average   Design and write a java program to determine all three digit numbers such that the sum of the cubes of the digits is equal... and write a program and calculate your final average in this course. The details
calculate sum of individual digit
calculate sum of individual digit  Hi How to calculate product of first snd last digit of indiviual digit Like Num=23456 S=2*6
Calculate factorial Using Recursion
through this example you will be understand how you can calculate the factorial...Calculate factorial Using Recursion  ... to calculate the factorial. The number we have entered in the html page
Calculate the Sum of three Numbers
. In this section you will learn how to calculate the sum of three numbers by using three... how to calculate three integer number . First of all define class name "... Calculate the Sum of Three Numbers   
Javascript calculate number of days between two dates
Javascript calculate number of days between two dates In this tutorial, you will learn how to calculate number of days between two dates.For this, you need to use the Date object  to retrieve the Date's millisecond value
Calculate total number of elements remaining in the buffer.
Calculate total number of elements remaining in the buffer. In this tutorial, we will discuss how to calculate total number of elements remaining in the buffer.  IntBuffer API: The java.nio.IntBuffer class extends
Calculate Age using current date and date of birth
Calculate Age using current date and date of birth In this section you will learn how to calculate the age. For this purpose, through the code, we have prompted the user to enter current date and date of birth in a specified format. Now
Find in Array - Calculate Occurrences of Elements in Array
Find in Array - Calculate Occurrences of Elements in Array       This section illustrates you how to calculate occurrences of elements in an array. Occurrences means, the how many
calculate size of array
calculate size of array  Is it possible to calculate the size of array using pointers in Java
Code to calculate hair density
Code to calculate hair density  Hello, Would you please give me a code to calculate the hair density on scalp from image in java
calculate difference between two time in jsp
calculate difference between two time in jsp  How to calculate difference between two dates
Calculate factorial of a number.
Calculate factorial of a number.  How to calculate factorial of a given number?   import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Factorial { public static
Java example to calculate the execution time
will describe you the way that how one can calculate or get the execution time... Java example to calculate the execution time  ... endTime. Now by subtracting the startTime with endTime we can calculate
calculate difference between two dates
calculate difference between two dates  hi, I was actually working on to calculate the number of days between two dates of dd/mm/yyyy format using javascript. can anyone suggest me how to work it outin calculating
Calculate sum and Average in java
Calculate sum and Average in java  How to calculate sum and average in java program?   Example:- import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class AvarageTest
calculate milliseconds to hh mm ss
calculate milliseconds to hh mm ss  how to calculate milliseconds to hh mm ss ? Actually i wanted to calculate week days and hours from milliseconds..?   var seconds = (mil / 1000) | 0; mil -= seconds * 1000; var
Calculate sum of even and odd numbers in Java
Calculate sum of even and odd numbers In this section, you will learn how to read the file that contains even and odd numbers and calculate their sum... numbers from the file and then calculate their sum. Here is the code
Week calculate start from friday
Week calculate start from friday  My problem is to calculate how many weeks have a month. Note that my weeks have to start on Friday! I have three combo boxes. First display year. Second one display month. Third one display
calculate working hour
calculate working hour  why echo not come out? <html><body> <form action="<?php $_SERVER['PHP_SELF'];?>" method="post"> Working hour : <input name="workout" type="text"/><input name="submit1
C calculate sum of first and last element of array
C calculate sum of first and last element of array In this section, you will learn how to calculate sum of first and last element from the array of five numbers. You can see in the given example, we have allowed the user to enter five
Calculate Sales Tax using Java Program
Calculate Sales Tax using Java Program In this section, you will learn how to calculate the sales tax and print out the receipt details for the purchased items. To evaluate this, we have taken the following things into considerations: 1
Calculate Entropy using C++
Calculate Entropy using C++  # include <iostream> # include <cmath> using namespace std; int main() { float S0,S1,S2,S3; float Hs,Hs3; float
 

 

 

DMCA.com