Sale!

CSC 210.03 Assignment 6 COFFEE SHOP ACCOUNTING OPERATIONS

$30.00 $18.00

Category: You will Instantly receive a download link for .zip solution file upon Payment || To Order Original Work Click Custom Order?

Description

5/5 - (1 vote)

❐Part 1: CoffeeShopInventoryManager [10 points]

File Name: CoffeeShopInventoryManager.java 1. (Total 10 points) Declare and create 3 arrays. a. (2 points) The first array, named items, should contain 5 items (“cups”, “coffee beans”, “lids”, “towel”, “sleeves”). Use Array-Initializer notation for assigning these 5 values to this array.

b. (3 points) The second array, named quantity, should contain the current quantity for each of the corresponding items. Obtain these quantities from the user. For each user input check if it is a valid number (greater than or equal to 0). See output below:

c. (3 points) The third array, named price, should contain the price per piece of the corresponding item (example, 4 dollars for a cups, 0.5 dollars for a coffee beans). Obtain these prices from the user. For each user input check if it is a valid number (greater than or equal to 0). See output below: d. (2 points. 1 per array) Use the appropriate datatype for each array.

Please paste your screenshot for this scenario here: Output :

❐Part 2: CoffeeShopInventoryManager [20 points]

2. (Total 20 points) A typical user of this program is the inventory manager. a. (3 points) Display to the user the possible operations on the inventory and prompt her/him to choose one. There are 5 possible operations: Print Inventory, Check for low inventory, Total inventory value, Highest and lowest inventory value items, Exit. The details of each of these operations are given below.

b. (3 points) Print inventory (p): This operation prints the inventory in the following format: Item Name, Quantity, Price Per Piece, Item Total Value. The last column prints the product of quantity and price per piece for each item. Go back to step a. Please paste your screenshot for this scenario here: Output :

c. (5 points) Check for low inventory (c): This operation checks for items that have 5 or fewer quantity, and prints them in the same format as in option(b). If there is no such item then print an appropriate message. Finally, go back to step a. Please paste your screenshot for this scenario here: Output :

d. (5 points) Highest and lowest inventory value items (h): This operation finds the item with the highest inventory value (quantity*price-per-piece), If there is more than one item with the same highest (or lowest) value then display all such items. Finally, go back to step a. Please paste your screenshot for this scenario here: Output :

e. (3 points) This operation computes the grand total value of the current inventory using the quantity and price per piece information, and prints that grand total value. Finally, go back to step a. Please paste your screenshot for this scenario here: Output :

f. (1 point) Exit (e): Exits the program. Please paste your screenshot for this scenario here: Output :

SUBMISSION INSTRUCTIONS 1. Submit the 1 CoffeeShopInventoryManager.java file directly on iLearn

❐Part 3: Reflect with a Buddy 50 words [8 points]

1. Find your buddy. Look at the Study Buddy sheet and pair up with your assigned buddy. Or find someone to partner this task with. 2. You can set up a Slack, Discord, or a Zoom with your buddy to asynchronously or synchronously talk about anything, and also reflect on what was helpful and not helpful in completing this homework. 3. Each student will need to create 1 post to mark this assignment as complete. Have fun with this one!!