
Create 3 shopping carts from a Cart class. Each class should have four items in it, a title, a price for the 4 items and the number of each. Your shopping cart should use private variables, so use getter and setter methods to access the items (variables) in your Cart Object. After you have created three Cart objects with four items each, you should print the cart contents. Use a method called displayCart() to make it easier to print out the items for each shopping cart. A sample output for the first cart is given below and you may choose your preferred way to show the output of the 3 carts.
Cart 1 ---------- Your Shopping Cart ---------- 1. Paper 4.99 3 2. Pencils 1.49 2 3. Pens 2.39 2 4. Printer Ink 39.99 4 ----------------------------------------------- Total: 182.69

The factorial of a nonnegative integer n is written n! (pronounced â?? n factorialâ??) and is defined as follows: n!=n . (n-1) . (n-2) . .... . 1 (for values of n greater than or equal to 1) and n!=1 (for n=0) for example, 5!=5.4.3.2.1, which is 120 a) Write an application that reads a nonegative integer from the user and computes and print its factorial. b) Write an application that computes the value of ex by using the formula ex = 1î??î??x/1!î??î??î??x2/2!î??î??î??x3/3!î??î??î??x4/4!î??î??....