import java.util.Scanner;
//=================================================================================================
public class NumericOperators {
//-------------------------------------------------------------------------------------------------
    private static final Scanner keyboard = new Scanner(System.in);
    private static final double BASE_COST = 100000;
    private static final double FLOOR_COST = 5000;
    private static final double ODD_FLOOR_SURCHARGE = 10000;
//-------------------------------------------------------------------------------------------------
    public static void main(String[] args) {

        int floor;
        double apartmentPrice;
        int movingFloor;

        System.out.print("What floor do you want to live on? : ");
        floor = keyboard.nextInt();

        apartmentPrice = BASE_COST + (floor * FLOOR_COST);
        apartmentPrice += (floor % 2) * ODD_FLOOR_SURCHARGE;
        System.out.println("Floor " + floor + " will cost you $" + apartmentPrice);

        floor++;
        apartmentPrice = BASE_COST + (floor * FLOOR_COST);
        apartmentPrice += (floor % 2) * ODD_FLOOR_SURCHARGE;
        System.out.println("Floor " + floor + " will cost you $" + apartmentPrice);

        System.out.println();
        System.out.println("This floor is       " + floor);
        movingFloor = floor++;
        System.out.println("This floor is now   " + floor);
        System.out.println("The moving floor is " + movingFloor);
        movingFloor = ++floor;
        System.out.println("This floor is now   " + floor);
        System.out.println("The moving floor is " + movingFloor);
    }
//-------------------------------------------------------------------------------------------------
}
//=================================================================================================
