Computer Science, asked by gudulu5, 10 months ago


17. A Mega Shop has different floors which display varieties of dre
below:
1. Ground floor : Kids Wear
2. First floor : Ladies Wear
3. Second floor : Designer Sarees
4. Third Floor : Men's Wear
The user enters floor number and gets the information regarding different items
of the Mega shop. After shopping, the customer pays the amount at the billing
counter and the shopkeeper prints the bill in the given format:
Name of the Shop: City Mart
Total Amount
Visit Again!!!
Write a program to perform the above task as per the user's choice ​

Answers

Answered by tanishatyagi2005
0

Answer:

hey sowengoswamy please tell the answer fast

Explanation:

Answered by shreeyabalaji06
3

Answer:

import java.util.Scanner;

public class Mega_Shop

{

   public static void main(String args[ ])

   {

       Scanner in = new Scanner(System.in);

       System.out.println("Welcome to City Mart!");

       System.out.println("Below, are the Floor numbers and their sections.");

       System.out.println("1. Ground floor: Kids Wear");

       System.out.println("2. First floor: Ladies Wear");

       System.out.println("3. Second floor: Designer Sarees");

       System.out.println("4. Third floor: Men's Wear");

       System.out.println("Select a floor number to get more information");

       int floor = in.nextInt();

       switch(floor)

       {

           case 1:System.out.println("This is the kids' section.We have dresses for ages 0 - 14.");

                  break;

           case 2:System.out.println("This is the Ladies' section.We have dresses from casual to traditional.");

                  break;

           case 3:System.out.println("This is the Designer section.Prices of items here are likely to be higher.");

                  break;

           case 4:System.out.println("This is the Men's section.We have a wide range of men's clothing and accessories");

                  break;

           default:System.out.println("Incorrect Floor");

                  break;

       }

       System.out.println("Looks like you've made your purchase.Enter the Bill Amount");

       int amt=in.nextInt();

       System.out.println("Name of the Shop: City Mart");

       System.out.println("Total Amount: " + amt);

       System.out.println("Visit Again!!");

  }

}

Similar questions