Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Requirements: Input: Create a shopping list of 7 items (in an array). Take input from the user that puts the shopping item name and priority

Requirements:

Input: Create a shopping list of 7 items (in an array).

Take input from the user that puts the shopping item name and priority into an array, multiple arrays ok.

Set the price for all the items in the shopping list down to the penny. (Make sure the total of the items > $100.00)

Sort the items in the list by order of priority

Present the items back to the user and have the user determine the order of importance for the item to purchase.

Only have one entry of any type in the list, list entry name (ex. Apple). If the user tries to add the same item twice tell the user that it is already on the list.

Set the price, cost, of each item down to the penny.

Now go shopping , purchase as many items on the list by priority, using $59.00

Purchase the highest priority items first then go to the lower priority items and purchase them as needed, minimizing the amount of money left over.

Display the list of what was purchased, its price, and what wasnt purchased, and its price (what could be used for the next shopping list).

Program must have:

Create an equals method for every physical class.

Make class attribute private

Have get and set methods to access items in the shopping list

Have defined class constructors

Include multiple classes(you determine what classes to create, what make sense)

Include pseudo code, UML diagram, test plans, and .java file

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

Step: 3

blur-text-image

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions

Question

How can WIP/SWP be evaluated?

Answered: 1 week ago

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago