import java.util.Scanner; public class Project1Solution { public static void main (String[] args) { Scanner scan = new Scanner(System.in); // Part 1: Reading a double and an integer, and printing both with a tab between them. System.out.print("Enter a double number"); double d1 = scan.nextDouble(); System.out.print("Enter an integer number"); int i1 = scan.nextInt(); String result = d1 + "\t" + i1; // I chose to do this part in two steps: creating the String, then printing it. System.out.println("You entered: " + result); // Part 2: Determining the time an object took to fall given its initial height. System.out.println("For how long did the object fall?"); double time = scan.nextDouble(); final int GRAVITY = 32; // feet per second double height = 0.5*GRAVITY*Math.pow(time,2); System.out.println("The object fell " + height + " feet."); // Part 3: Reading 3 Strings and printing them in reverse order, with a String inserted. System.out.println("Enter three Strings."); String strBlank = scan.nextLine(); String str1 = scan.nextLine(); String str2 = scan.nextLine(); String str3 = scan.nextLine(); String myString = "myString"; System.out.println(str3 + " " + myString + " " + str2 + " " + str1); } }