@@ -0,0 +1,1228 @@
+package com.samovich.cop2800.chapter2;%0A%0Aimport java.util.Scanner;%0A%0A/**%0A * Filename ArithmeticDemo2.java%0A * Created by Valery Samovich%0A * Written on 5/16/16%0A */%0Apublic class ArithmeticDemo2 %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        // declare variables%0A        double firstNumber;%0A        double secondNumber;%0A        double sum;%0A        double difference;%0A        double average;%0A%0A        // declare a Scanner to accept the keyboard input%0A        Scanner input = new Scanner(System.in);%0A%0A        // prompt the user to accept two integers%0A        System.out.print(%22Please enter a double %3E%3E %22);%0A        firstNumber = input.nextDouble();%0A        System.out.print(%22Please enter another double %3E%3E %22);%0A        secondNumber = input.nextDouble();%0A%0A        // perform the arithmetic operations%0A        sum = firstNumber + secondNumber;%0A        difference = firstNumber - secondNumber;%0A        average = sum / 2;%0A%0A        // display the values%0A        System.out.println(firstNumber + %22 + %22 + secondNumber + %22 is %22 + sum);%0A        System.out.println(firstNumber + %22 %E2%80%94 %22 + secondNumber + %22 is %22 + difference);%0A        System.out.println(%22The average of %22 + firstNumber + %22 and %22 + secondNumber + %22 is %22 + average);%0A%0A    %7D%0A%7D%0A

Add ArithmeticDemo2