Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

java image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

3. What are potential solutions?

Answered: 1 week ago

Question

4. I can tell when team members dont mean what they say.

Answered: 1 week ago