User:JavaHurricane/ACE Program

This is an ACE Program I've made in Java.

Features

 * Allows the calculation of ACE for full storm
 * Shows the ACE per advisory
 * Input the number of advisories at the begining, and input intensity values for each advisory.
 * All are free to use my program.

Requirements
You will need an IDE for Java to run this program, or you will have to be well-versed with using javac.exe and java.exe in Command Line. Speaking of which, you'll also need a JDK to use this.

If you can't run this yourself, feel free to request for ACE below. Please give the intensities per advisory.

Program
import java.util.Scanner; public class ACE {  public static void main {      Scanner in = new Scanner(System.in); System.out.print("No. of advisories : "); int n = in.nextInt; double ace; float totalace = 0; int intensity; for(int i = 1; i <= n; i++) {          System.out.print("Intensity on advisory "+i+" in knots : "); intensity = in.nextInt; if(intensity <= 30) {              ace = 0; System.out.println("ACE for advisory "+i+" : "+ace); continue; }          ace = Math.pow(intensity, 2)/Math.pow(100, 2); System.out.println("ACE for advisory "+i+" : "+ace); totalace+=ace; }      System.out.println("ACE of the system : " + totalace); } }

Requests
None.