Question: java, needs a main class 1. Create a class named Boughtltems that holds data for a single item bought (item name, item price, and quantity).

java, needs a main class

java, needs a main class 1. Create a class named Boughtltems that

1. Create a class named Boughtltems that holds data for a single item bought (item name, item price, and quantity). Include a default constructor that initializes the item name, item price, and quantity. Also, include methods to get and set each of the fields. 2. Create another class called shoppingBasket to hold a list whose items are objects of the type boughtitems. This class should calculate the total and return the amount. 3. Create a test program called Checkout whose main method instantiates and updates several purchased objects during the checkout of the items in the shopping cart. Your program should prompt the user for the item name, item description, the quantity, and ask the user whether they have "more items to check out?" Hint: This is a Yes/No response. 4. Create a method called printReceipt that prints the receipt for the boughtitems. The receipt should show the name of the item, the quantity of the items bought for each item, the total price for the quantity of each item, and the gland total paid for the entire purchase. 5. Test your program, copy and paste your output at the end of your program. The upload your project. Note 1: Your program should show a minimum of 4 different boughtltems. For example, 2 shirts, 3 shorts, 4 spoons, and 1 TV, Note 2: Test: Compile your program at least 2 times and include your compiled result in your submission by copying the output exactly as shown on the NetBeans IDE screen. Note! Points will be taken off if your

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!