Chiken shop Billing Program using java programming

  


 Using the java program we have made a billing program for chiken shop. I have given a program , Input and Output.

PROGRAM:

import java.util.Scanner;
class chikenshop{
    
    
    public static void main(String args[])
    {
        Scanner sc=new Scanner(System.in);
        String customername;
        int Kilogram,Billamount,price=180;
        System.out.println("welcome to chiken shop");
        System.out.println("Enter the name of the customer");
        customername=sc.next();
        System.out.println("Enter number of kilogram bought");
        Kilogram=sc.nextInt();
        Billamount=Kilogram*price;
        System.out.println(customername);
        System.out.println(Kilogram);
        System.out.println("Bill amount:");
        System.out.println(Billamount);
        System.out.println("Thanks for shopping with us");
    }
}

INPUT AND OUTPUT
welcome to chiken shop
Enter the name of the customer
RAGULTECHNOLOGY
Enter number of kilogram bought
2
Bill  amount:
360
Thanks for shopping with us
  

1 Comments

Post a Comment

Post a Comment

Previous Post Next Post