import java.util.Scanner;
class Parking {
public static void main(String args[]) {
Scanner keyboard = new Scanner(System.in);
double amount;
System.out.print("What's the price to park your car? ");
amount = keyboard.nextDouble();
amount = amount + 2.00;
System.out.print("You will pay $");
System.out.print(amount);
System.out.println(" in total.");
keyboard.close();
}
}
import java.util.Scanner;
class VersatileSnitSoft {
public static void main(String args[]) {
Scanner keyboard = new Scanner(System.in);
double amount;
System.out.print("What's the price of a flash drive? ");
amount = keyboard.nextDouble();
amount = amount + amount;
System.out.print("We will bill $");
System.out.print(amount);
System.out.println(" to your credit card.");
keyboard.close();
}
}