/*
 * Average.java
 *
 * A program that computes the average of five numbers.
 *
 * Author: S-111 Course Staff
 * Date: June 25, 2015
 */

public class Average {
    public static void main(String[] args) {
        int a = 12;
        int b = 55;
        int c = 11;
        int d = 30;
        int e = 19;

        /*
         * Note: at least one operand to / must be a double,
         * otherwise we will perform integer division and lose
         * the precision of the result. Here we use a "5.0"
         * literal, but we could have used a type cast instead.
         */
        double average = (a + b + c + d + e) / 5.0;



        System.out.println(average);
    }
}
