Question: In Java Plz Sample Input File 1 Sample Output 1 Sample Input File 2 Sample Output 2 CSE 2010, HW1, Spring 2022 Due Thu Jan

 In Java Plz Sample Input File 1 Sample Output 1 Sample

In Java Plz

Sample Input File 1

Input File 2 Sample Output 2 CSE 2010, HW1, Spring 2022 Due

Sample Output 1

Thu Jan 27 at the start of your lab section; Submit Server:

Sample Input File 2

class = cse2010, assignment = hw1SxIndividual Due Thu Jan 27 at the

Sample Output 2

end of your lab section; Submit Server: class = cse2010, assignment =

CSE 2010, HW1, Spring 2022 Due Thu Jan 27 at the start of your lab section; Submit Server: class = cse2010, assignment = hw1SxIndividual Due Thu Jan 27 at the end of your lab section; Submit Server: class = cse2010, assignment = hwlSxGroup Help u is 14, 23, or your section number (c for C language). On some shopping sites (e.g., amazon.com), a product can have multiple sellers. Usually, the seller list is displayed based on the total cost (product price plus shipping cost). The inventory of the product at a seller determines whether the seller is on the seller list. For this assignment, assume you are managing three products: appleIPhone, hdmi2VgaAdapter, and USBdrive. For simplicity, the product price and shipping cost are set at the beginning and do not change. To separately manage the seller list in ascending order of total cost for each product, use a singly linked list. Ties are broken by seller names in alphabetically order. When the inventory is zero, the corresponding node, is deleted. You can borrow/modify SinglyLinkedList (textbook) We will evaluate your submissions on code01.fit.edu so we strongly recommend you to test your programs on code01.fit.edu. To preserve invisible characters, we strongly recommend you to download, NOT copy and paste, input data files. Input: To simulate the shopping and inventory events, an input file contains events in the same directory as your program file called HW1.java that has the main method. Initially, each product has no sellers (no inventory). Your submission takes the input file name as a command-line argument. Each line is one of the following event: SetProduct Price product seller price SetShipping Cost seller shipping Cost minimumFor Free Shipping Increase Inventory product seller quantity Customer Purchase product seller quantity Display Seller List product Shipping cost is zero if the product price is at least minimum For Free Shipping. Display SellerList considers the cost of one item of the product. Output: The program prints events to the standard output (screen). Each event is on one line and possible events are: Set Product Price product seller price SetShipping Cost seller shipping Cost minimumFor Free Shipping Increase Inventory product seller quantity updatedInventory Customer Purchase product seller quantity updated Inventory or Not EnoughInventoryError DepletedInventory RemoveSeller product seller Display Seller List product 12345678901234567890123456789012345678901234567890 11 just to show spacing seller productPrice shipping Cost totalCost // output starts walmart 20.99 0.00 20.99 amazon 16.95 5.00 21.95 bestbuy 21.99 0.00 21.99 Assume a seller's name is at most 10 characters, use right justification for each column in the seller list. When inventory is depleted, Depleted InventoryRemoveSeller is displayed and the corresponding node is removed. Sample input and output files are on the course website. SetProductPrice apple IPhone amazon 499 SetProductPrice appleIPhone applestore 550 SetProductPrice apple IPhone bestbuy 515 SetProductPrice apple IPhone walmart 450 SetShippingCost amazon 10 20 SetShippingCost applestore 15 50 SetShippingCost bestbuy 5 35 SetShippingCost walmart 10 10 IncreaseInventory apple IPhone amazon 10000 IncreaseInventory appleIPhone applestore 500 IncreaseInventory appleIPhone bestbuy 1 CustomerPurchase appleIPhone amazon 1 Customer Purchase appleIPhone bestbuy 2 Customer Purchase appleIPhone applestore 5 DisplaySellerList appleIPhone SetProductPrice apple IPhone amazon 499 SetProductPrice appleIPhone applestore 550 SetProductPrice apple IPhone bestbuy 515 SetProductPrice apple IPhone walmart 450 SetShippingCost amazon 10 20 SetShippingCost applestore 15 50 SetShippingCost bestbuy 5 35 SetShippingCost walmart 10 10 IncreaseInventory apple IPhone amazon 10000 10000 IncreaseInventory appleIPhone applestore 500 500 IncreaseInventory appleIPhone bestbuy 1 1 Customer Purchase appleIPhone amazon 1 9999 CustomerPurchase appleIPhone bestbuy 2 NotEnoughInventoryError Customer Purchase appleIPhone applestore 5 495 DisplaySellerList appleIPhone seller productPrice shippingCost totalCost walmart 450.00 0.00 450.00 499.00 0.00 499.00 bestbuy 515.00 0.00 515.00 applestore 550.00 0.00 550.00 amazon SetProductPrice USBdrive amazon 4.99 SetProductPrice Apple Iphone applestore 1000 SetProductPrice USBdrive radioshack 5.99 SetProductPrice USBdrive bestbuy 3.99 SetProductPrice hdmi2VgaAdapter bestbuy 13.99 SetProductPrice USBdrive walmart 3.50 SetProductPrice hdmi 2VgaAdapter walmart 12.50 SetShippingCost amazon 5 10 SetShipping Cost applestore 15 50 SetShippingCost bestbuy 5 25 SetShippingCost walmart 10 5 SetShippingCost radioshack 10 5 IncreaseInventory USBdrive amazon 5000 Increase Inventory USBdrive bestbuy 500 IncreaseInventory USBdrive walmart 2500 IncreaseInventory USBdrive radioshack 10 IncreaseInventory USBdrive amazon 5000 IncreaseInventory Apple Iphone applestore 100 IncreaseInventory hdmi2VgaAdapter bestbuy 100 Increase Inventory hdmi 2VgaAdapter walmart 1000 DisplaySellerList USBdrive DisplaySellerList hdmi2VgaAdapter DisplaySellerList AppleIphone Customer Purchase USBdrive radioshack 10 DisplaySellerList USBdrive SetProductPrice USBdrive amazon 4.99 SetProductPrice AppleIphone applestore 1000 SetProductPrice USBdrive radioshack 5.99 SetProductPrice USBdrive bestbuy 3.99 SetProductPrice hdmi 2VgaAdapter bestbuy 13.99 SetProductPrice USBdrive walmart 3.50 SetProductPrice hdmi 2VgaAdapter walmart 12.50 SetShippingCost amazon 5 10 SetShipping Cost applestore 15 50 SetShippingCost bestbuy 5 25 SetShippingCost walmart 10 5 SetShippingCost radioshack 10 5 IncreaseInventory USBdrive amazon 5000 5000 IncreaseInventory USBdrive bestbuy 500 500 IncreaseInventory USBdrive walmart 2500 2500 IncreaseInventory USBdrive radioshack 10 10 IncreaseInventory USBdrive amazon 5000 10000 IncreaseInventory AppleIphone applestore 100 100 IncreaseInventory hdmi2VgaAdapter bestbuy 100 100 IncreaseInventory hdmi2VgaAdapter walmart 1000 1000 DisplaySellerList USBdrive seller productPrice shippingCost totalCost radioshack 5.99 0.00 5.99 bestbuy 3.99 5.00 8.99 4.99 5.00 9.99 walmart 3.50 10.00 13.50 DisplaySellerList hdmi2VgaAdapter seller productPrice shippingCost totalcost walmart 12.50 0.00 12.50 bestbuy 13.99 5.00 18.99 DisplaySellerList Apple Iphone seller productPrice shippingCost totalCost applestore 1000.00 0.00 1000.00 Customer Purchase USBdrive radioshack 10 0 Depleted InventoryRemoveSeller USBdrive radioshack DisplaySellerlist USBdrive seller productPrice shippingCost totalCost bestbuy 3.99 5.00 8.99 4.99 5.00 9.99 walmart 3.50 10.00 13.50 amazon amazon CSE 2010, HW1, Spring 2022 Due Thu Jan 27 at the start of your lab section; Submit Server: class = cse2010, assignment = hw1SxIndividual Due Thu Jan 27 at the end of your lab section; Submit Server: class = cse2010, assignment = hwlSxGroup Help u is 14, 23, or your section number (c for C language). On some shopping sites (e.g., amazon.com), a product can have multiple sellers. Usually, the seller list is displayed based on the total cost (product price plus shipping cost). The inventory of the product at a seller determines whether the seller is on the seller list. For this assignment, assume you are managing three products: appleIPhone, hdmi2VgaAdapter, and USBdrive. For simplicity, the product price and shipping cost are set at the beginning and do not change. To separately manage the seller list in ascending order of total cost for each product, use a singly linked list. Ties are broken by seller names in alphabetically order. When the inventory is zero, the corresponding node, is deleted. You can borrow/modify SinglyLinkedList (textbook) We will evaluate your submissions on code01.fit.edu so we strongly recommend you to test your programs on code01.fit.edu. To preserve invisible characters, we strongly recommend you to download, NOT copy and paste, input data files. Input: To simulate the shopping and inventory events, an input file contains events in the same directory as your program file called HW1.java that has the main method. Initially, each product has no sellers (no inventory). Your submission takes the input file name as a command-line argument. Each line is one of the following event: SetProduct Price product seller price SetShipping Cost seller shipping Cost minimumFor Free Shipping Increase Inventory product seller quantity Customer Purchase product seller quantity Display Seller List product Shipping cost is zero if the product price is at least minimum For Free Shipping. Display SellerList considers the cost of one item of the product. Output: The program prints events to the standard output (screen). Each event is on one line and possible events are: Set Product Price product seller price SetShipping Cost seller shipping Cost minimumFor Free Shipping Increase Inventory product seller quantity updatedInventory Customer Purchase product seller quantity updated Inventory or Not EnoughInventoryError DepletedInventory RemoveSeller product seller Display Seller List product 12345678901234567890123456789012345678901234567890 11 just to show spacing seller productPrice shipping Cost totalCost // output starts walmart 20.99 0.00 20.99 amazon 16.95 5.00 21.95 bestbuy 21.99 0.00 21.99 Assume a seller's name is at most 10 characters, use right justification for each column in the seller list. When inventory is depleted, Depleted InventoryRemoveSeller is displayed and the corresponding node is removed. Sample input and output files are on the course website. SetProductPrice apple IPhone amazon 499 SetProductPrice appleIPhone applestore 550 SetProductPrice apple IPhone bestbuy 515 SetProductPrice apple IPhone walmart 450 SetShippingCost amazon 10 20 SetShippingCost applestore 15 50 SetShippingCost bestbuy 5 35 SetShippingCost walmart 10 10 IncreaseInventory apple IPhone amazon 10000 IncreaseInventory appleIPhone applestore 500 IncreaseInventory appleIPhone bestbuy 1 CustomerPurchase appleIPhone amazon 1 Customer Purchase appleIPhone bestbuy 2 Customer Purchase appleIPhone applestore 5 DisplaySellerList appleIPhone SetProductPrice apple IPhone amazon 499 SetProductPrice appleIPhone applestore 550 SetProductPrice apple IPhone bestbuy 515 SetProductPrice apple IPhone walmart 450 SetShippingCost amazon 10 20 SetShippingCost applestore 15 50 SetShippingCost bestbuy 5 35 SetShippingCost walmart 10 10 IncreaseInventory apple IPhone amazon 10000 10000 IncreaseInventory appleIPhone applestore 500 500 IncreaseInventory appleIPhone bestbuy 1 1 Customer Purchase appleIPhone amazon 1 9999 CustomerPurchase appleIPhone bestbuy 2 NotEnoughInventoryError Customer Purchase appleIPhone applestore 5 495 DisplaySellerList appleIPhone seller productPrice shippingCost totalCost walmart 450.00 0.00 450.00 499.00 0.00 499.00 bestbuy 515.00 0.00 515.00 applestore 550.00 0.00 550.00 amazon SetProductPrice USBdrive amazon 4.99 SetProductPrice Apple Iphone applestore 1000 SetProductPrice USBdrive radioshack 5.99 SetProductPrice USBdrive bestbuy 3.99 SetProductPrice hdmi2VgaAdapter bestbuy 13.99 SetProductPrice USBdrive walmart 3.50 SetProductPrice hdmi 2VgaAdapter walmart 12.50 SetShippingCost amazon 5 10 SetShipping Cost applestore 15 50 SetShippingCost bestbuy 5 25 SetShippingCost walmart 10 5 SetShippingCost radioshack 10 5 IncreaseInventory USBdrive amazon 5000 Increase Inventory USBdrive bestbuy 500 IncreaseInventory USBdrive walmart 2500 IncreaseInventory USBdrive radioshack 10 IncreaseInventory USBdrive amazon 5000 IncreaseInventory Apple Iphone applestore 100 IncreaseInventory hdmi2VgaAdapter bestbuy 100 Increase Inventory hdmi 2VgaAdapter walmart 1000 DisplaySellerList USBdrive DisplaySellerList hdmi2VgaAdapter DisplaySellerList AppleIphone Customer Purchase USBdrive radioshack 10 DisplaySellerList USBdrive SetProductPrice USBdrive amazon 4.99 SetProductPrice AppleIphone applestore 1000 SetProductPrice USBdrive radioshack 5.99 SetProductPrice USBdrive bestbuy 3.99 SetProductPrice hdmi 2VgaAdapter bestbuy 13.99 SetProductPrice USBdrive walmart 3.50 SetProductPrice hdmi 2VgaAdapter walmart 12.50 SetShippingCost amazon 5 10 SetShipping Cost applestore 15 50 SetShippingCost bestbuy 5 25 SetShippingCost walmart 10 5 SetShippingCost radioshack 10 5 IncreaseInventory USBdrive amazon 5000 5000 IncreaseInventory USBdrive bestbuy 500 500 IncreaseInventory USBdrive walmart 2500 2500 IncreaseInventory USBdrive radioshack 10 10 IncreaseInventory USBdrive amazon 5000 10000 IncreaseInventory AppleIphone applestore 100 100 IncreaseInventory hdmi2VgaAdapter bestbuy 100 100 IncreaseInventory hdmi2VgaAdapter walmart 1000 1000 DisplaySellerList USBdrive seller productPrice shippingCost totalCost radioshack 5.99 0.00 5.99 bestbuy 3.99 5.00 8.99 4.99 5.00 9.99 walmart 3.50 10.00 13.50 DisplaySellerList hdmi2VgaAdapter seller productPrice shippingCost totalcost walmart 12.50 0.00 12.50 bestbuy 13.99 5.00 18.99 DisplaySellerList Apple Iphone seller productPrice shippingCost totalCost applestore 1000.00 0.00 1000.00 Customer Purchase USBdrive radioshack 10 0 Depleted InventoryRemoveSeller USBdrive radioshack DisplaySellerlist USBdrive seller productPrice shippingCost totalCost bestbuy 3.99 5.00 8.99 4.99 5.00 9.99 walmart 3.50 10.00 13.50 amazon amazon

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!