1.

The Simple Interest (SI) and Compound Interest (CI) of a sum (P) for a given time (T) and rate (R) can be calculated as: (a) SI = (p * r * t) / 100 (b) CI = P * ((1 + (R / 100)) T - 1) Write a program to input sum, rate, time and type of Interest ('S' for Simple Interest and 'C' for Compound Interest). Calculate and display the sum and the interest earned. PLZZZ WRITE THE PROGRAM IN JAVA ITS URGENT!!!

Answer»

* @author: BeginnersBook.com * @description: Program to Calculate Area of square.Program * will prompt user for entering the side of the square. */IMPORT java.util.Scanner;class SquareAreaDemo { PUBLIC static void MAIN (String[] ARGS) { System.out.println("Enter Side of Square:"); //Capture the user's INPUT Scanner scanner = new Scanner(System.in); //Storing the captured value in a variable double side = scanner.nextDouble(); //Area of Square = side*side double area = side*side; System.out.println("Area of Square is: "+area); }



Discussion

No Comment Found