Assignment # 25 and Dumb Calculator
Code
/// Name: Tommy Oyuntseren
/// Period: 7
/// Program Name: DumbCalculator
/// File Name: DumbCalculator.java
/// Date Finished: 10/13/15
import java.util.Scanner;
public class DumbCalculator
{
public static void main (String[] args)
{
Scanner keyboard = new Scanner(System.in);
Float n1, n2, n3;
System.out.println();
System.out.print("Enter your first number ");
n1 = keyboard.nextFloat();
System.out.println();
System.out.print("Enter your second number ");
n2 = keyboard.nextFloat();
System.out.println();
System.out.print("Enter your third number ");
n3 = keyboard.nextFloat();
System.out.println();
System.out.print("Here are your calculations: ("+n1+" + "+n2+" + "+n3+") / 2 = "+( (n1+n2+n3)/2 ) );
System.out.println("");
System.out.println("Thanks for using our products.");
// I wish it had special symbols((
}
}
Picture of the output