@@ -0,0 +1,1591 @@
+package assignments;%0Aimport java.util.Scanner;%0Aclass cart%0A%7B%0A    String items%5B%5D =  %7B%22RAM%22,%22MOUSE%22,%22KEYBOARD%22,%22MONITER%22,%22CHIP%22%7D;%0A    int price%5B%5D = new int%5B5%5D;%0A    String incart%5B%5D = new String%5B10%5D;%0A    int total,index=0;%0A    int count;%0A    cart()%0A    %7B%0A        for(int i=10;i%3C=50;i=i+10)%0A        %7B%0A            price%5B(i/10)-1%5D=i;%0A        %7D%0A    %7D%0A    void display()%0A    %7B%0A        System.out.println(%22Following items are avaliable%22);%0A        for(int i=0;i%3C5;i++)%0A        %7B%0A            System.out.println(items%5Bi%5D +%22 --  rs%22 + price%5Bi%5D);%0A        %7D%0A    %7D%0A    void input()%0A    %7B%0A        System.out.println(%22Select the item number%22);%0A        Scanner input= new Scanner(System.in);%0A        int choice = input.nextInt();%0A        total = total + price%5B(choice - 1)%5D;%0A        incart%5Bindex%5D = items%5B(choice - 1)%5D;%0A        index++;%0A    %7D%0A    void cart_display()%0A    %7B%0A        for(int i=0;i%3Cindex;i++)%0A        %7B%0A            System.out.println(incart%5Bi%5D);%0A        %7D%0A        System.out.println(%22Total is %22+total);%0A    %7D%0A%7D%0Apublic class assignment1 %7B%0A%0A%09public static void main(String%5B%5D args) %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09 System.out.println(%22Welcome to shop folks%22);%0A%09        Scanner input= new Scanner(System.in);%0A%09        int choice = 1;%0A%09        cart c = new cart();%0A%09        while(choice == 1)%0A%09        %7B%0A%09        %09c.display();%0A%09        %09c.input();%0A%09        %09System.out.print(%22Want to enter more 1 -- yes or 0 -- no%22);%0A%09        %09choice = input.nextInt();%0A%09        %09%0A%09        %7D%0A%09        c.cart_display();%0A%09        System.out.println(%22Thank you for using my cart%22);%0A%09        input.close();%0A%09%09%09%7D%0A%0A%7D%0A

Create assignment1.java