Question: java COMI 1510 Final Project 2 - Fall 2023 (Due on 12/19 at 11:59 AM) 1. Create a class named Boughtitems that holds data for
COMI 1510 Final Project 2 - Fall 2023 (Due on 12/19 at 11:59 AM) 1. Create a class named Boughtitems 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. Additional requirements: Note 1: Your program should show a minimum of a different boughtitems. For example, 2 shirts, 3 shorts, 4 spoons, and 1 TV, Note 2: Test: Comple 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. Notel Points will be taken off if your project is tested with NetBeans IDE and has errors because you used a different IDE
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
