# how to calculate EMI of the loan

Ads

Share on Google+

progenitor
how to calculate EMI of the loan
4 Answer(s)      5 years and a month 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;
}
}
```
Ads
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;
}

}
```

January 16, 2017 at 1:54 PM

The best way to calculate loan and EMI are on the basis of the mathematical formula:

[P x R x (1+R)^N]/[(1+R)^N-1

where P stands for the loan amount or principal,

R is the interest rate per month [if the interest rate per annum is 11%, then the rate of interest will be 11/(12 x 100)],

and N is the number of monthly installments.

Source: http://www.emicalculators.in

Ads

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
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 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 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
loan calculator
loan calculator  code of the loan clculator
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 average of array in Java?
How to calculate average of array in Java?  Hi, I have an integer array and I want to calculate the average of the values in it. How to calculate... the elements of array and then calculate sum. Then divide it with the length
How to calculate Date Difference in Java?
How to calculate Date Difference in Java?  Hi, I have two dates variable. How to calculate Date Difference in Java? Thanks   Hi, You can use the Calendar class for calculating the date difference in Java. Get data
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
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 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 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
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 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
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
How to calculate minimum in Hibernate using the min() Function
How to calculate minimum in Hibernate using the min() Function The min() function of Hibernate API translates it to the SQL query and execute it against... ) Example : Example program discussed here will teach you how to use the HQL min
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 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
calculate reward points.
calculate reward points.  How to calculate reward points in a multiplex automation system
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 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 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

Ads

Advertisement null

Ads