Untitled

mail@pastecode.io avatar
unknown
java
2 years ago
2.4 kB
3
Indexable
Never
package com.ACT5B_Mayor_1;

import java.util.Scanner;

public class ACT5B_Mayor_1 {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);

        //Declaring variable
        String mun;
        //Input
        System.out.print("This program is designed to provide the famous tourist attraction in the Province of Bataan. \nPlease enter municipality: ");
        mun = scan.nextLine();
        //switch statement
        switch (mun.toLowerCase()) {
            case "abucay": System.out.println("The most popular tourist destination in Abucay is Pasukulan Falls" + "!");
            break;
            case "bagac": System.out.println("The most popular tourist destination in Bagac is Las Casas Filipinas de Acuzar" + "!");
            break;
            case "balanga": System.out.println("The most popular tourist destination in Balanga is Plaza Mayor de Ciudad de Balanga " + "!");
            break;
            case "dinalupihan": System.out.println("The most popular tourist destination in Dinalupihan is Dinalupihan Nature Center" + "!");
            break;
            case "hermosa": System.out.println("The most popular tourist destination in Hermosa is St. Peter of Verona Parish Church" + "!");
            break;
            case "lamao":  System.out.println("The most popular tourist destination in Lamao is General King Marker" + "!");
            break;
            case "limay":  System.out.println("The most popular tourist destination in Limay is Judy's Park" + "!");
            break;
            case "mariveles":  System.out.println("The most popular tourist destination in Mariveles is Five Fingers Cove" + "!");
            break;
            case "morong":  System.out.println("The most popular tourist destination in Morong is Pawikan Conservation Center" + "!");
            break;
            case "orani":  System.out.println("The most popular tourist destination in Orani is Mt. Natib" + "!");
            break;
            case "orion":  System.out.println("The most popular tourist destination in Orion is Hardin ni Balagtas" + "!");
            break;
            case "pilar":  System.out.println("The most popular tourist destination in Pilar is Dambana ng Kagitingan" + "!");
            break;
            default: System.out.println("INVALID INPUT!");

        }

    }
}