Question: Java Homework #3 Due: 16-Oct-2018 Requirements Input: Create a shopping list of 7 items (in an array) 1.) Take input from the user that puts

Java

Java Homework #3 Due: 16-Oct-2018 Requirements Input: Create a shopping list of

Homework #3 Due: 16-Oct-2018 Requirements Input: Create a shopping list of 7 items (in an array) 1.) Take input from the user that puts the shopping item name and priority into an array, multiple 2.) Set the price for all the items in the shopping list down to the penny. (Make sure the total of the 3.) Sort the items in the list by order of priority arrays ok. items > $100.00) Present the items back to the user and have the user determine the order of importance for the item to purchase a. 4.) 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. 5.) Set the price, cost, of each item down to the penny 6.) 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. a. 7.) Display the list of what was purchased, its price, and what wasn't 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 Hint: You can use more than one array or multidimensional arrays. Homework #3 Due: 16-Oct-2018 Requirements Input: Create a shopping list of 7 items (in an array) 1.) Take input from the user that puts the shopping item name and priority into an array, multiple 2.) Set the price for all the items in the shopping list down to the penny. (Make sure the total of the 3.) Sort the items in the list by order of priority arrays ok. items > $100.00) Present the items back to the user and have the user determine the order of importance for the item to purchase a. 4.) 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. 5.) Set the price, cost, of each item down to the penny 6.) 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. a. 7.) Display the list of what was purchased, its price, and what wasn't 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 Hint: You can use more than one array or multidimensional arrays

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!