subject

Write the Java code to simulate an inventory control system and a point of sale system with customer history On program start, each inventory item's data is read from the inventory file, placed in a new item class object, which is then placed in the inventory ArrayList. The ArrayList should be a field in the purchasing class (see below). The inventory data consists of the following fields. Only the last three data fields (ns listed here) should be modifiable after the object is created. A constructor will accept parameters for each of the fields, (a) The item's name (b) The item's. com (c) The current quantity of the item on-hand (d) The number of times the item has been purchased (e) The number of times the item hus been returned. After the inventory is processed, each existing customer's data is read from the customer file, pleced in a new item class object, which is then placed into the customer ArrayLut The ArrayList should be a local variable in the main method. The customer data consists of the following fields. All data in the customer clues should be modifiable based on the details given later. A constructor will accept parameters for each of the field (1) The customer's name (b) The customer's balance (positive balance indicates the customer has funda avul able to spend, and negative balance indicates the customer cwmoney) c) The customer's purchase history populated by a list of inventory item references from the inventory ArrayList. The history is stored in the customer file as a lint of inventory name along with the number of purchased items (d) The customer's shopping cart initially empty and not stored in the customer file. but alno populated by a list of inventory item references A purchasing class object contain the following methods for manipulating the ventory Armalist and a pied customer object. Each method will update the listed properti. A defnult constructor will create an instance of the inventory ArrayList and the value for a restocking for () Add an item to shopping cart (Inventory quantity customer shopping out) The castomer is pated with a lot of available items and more on selection. The men of ieme shown to the wet in generated from the ArrayList of kventory Item W Anong there is a lot one of item oond the item selected to "I decreased in the story Art The cutomer intend chose to not select an item to place in the Ert (6) Remove it from shopping cart (inventory: quantity, customer shopping Cart The customer in prented with the contents of the shoppies out it. The item selected is removed from the customer's eart ArrayList and the quantity on-band is increased in the inventory ArrayList. iii. The customer may instead choose to keep the contents of the cart. (e) Purchase items in a shopping cart (Inventory purchase count; enstomer balance, purchase history, shopping cart) 1. Print (to the terminal) a receipt listing the cart items. This includes the name and cont of ach item, plus the total cost of all items. If there are no items in the eart, it is not printed . Increase the purchase count of the items in the inventory ArrayList Deduct the shopping cart total from the customer's balance iv. Add the items to the customer's purchase history v. Empty the shopping cart ArrayList 1. Replace the data in the inventory file with the data currently in the in ventory ArrayList (te, the inventory file is updated so that it is correct) vil. Replace the data in the customer file with the data currently in the cu tomer ArrayList (le, the customer file is updated so that it is correct (d) Return an with restocking fee (ventory: quantity, return bout tomer balance purchase history) Print (to the terminal listing of the purch history. This includes the name and cost of each item. If there are no items in the purch history, alting is not printed Increase the return count of the selected items in the ventory Array i Mid the cost of the returned item to the customer's balance in testocking for iv. Remove the returned item from the customer's purchase history v. Replace the data in the inventory file with the data currently in the Inventory ArrayLin vi. Replace the data in the customer file with the data currently in the cus tomer ArrayList in the customer file is updated so that it is correct)

ansver
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 07:20, Hcalhoun21
Write a pseudocode solution for each of these problems. 1. design a while loop that lets that user enter a number. the number should be multiplied by 10, and the result stored in a variable named product. the loop should iterate as long as product contains a value less than 100. 2. design a do-while loop that asks the user to enter two numbers. the numbers should be added and the sum displayed. the loop should ask the user whether he or she wishes to perform the operation again. if so, the loop should repeat; otherwise it should terminate. 3. design a for loop that displays the following set of numbers: 0, 10, 20, 30, 40, 50 100. 4. design a nested loop that displays 10 rows of # characters. there should be 15 # characters in each row. 5. convert this for loop to a while loop. declare integer count for count = 1 to 50 display count end for 6. find the error in the following pseudocode. declare boolean finished = false declare integer value, cube while not finished display “enter a value to be cubed.” input value; set cube = value ^ 3 display value, “ cubed is “, cube end while
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, daniella0123
Simon says is a memory game where "simon" outputs a sequence of 10 characters (r, g, b, y) and the user must repeat the sequence. create a for loop that compares the two strings starting from index 0. for each match, add one point to userscore. upon a mismatch, exit the loop using a break statement. assume simonpattern and userpattern are always the same length. ex: the following patterns yield a userscore of 4: simonpattern: rrgbryybgy userpattern: rrgbbrybgy
Answers: 2
image
Computers and Technology, 24.06.2019 05:30, lolololol21
Cómo pongo un tomo de llamada sin pagar?
Answers: 1
image
Computers and Technology, 24.06.2019 17:40, maxdmontero
This assignment continues work on the online booking facility introduced at the end of chapter- 10. the work will be continued in the assignments for chapters 14 and 15 (a) assume that you will produce your online booking facility using an agile approach. i. suggest the kind of user research you would like to conduct for your product before iteration cycles begin. ii prioritize the requirements for your product according to business value, i. e which requirements are likely to provide the greatest business benefit, and sketch out the ux design work you would expect to undertake during the first four iteration cycles, i. e. cycle 0, and cycles 1 to 3. (b) using one of the mockup tools introduced above, generate a mockup of your product's landing page, as developed in the assignment for chapter-11 (c) using one of the patterns websites listed previously, identify suitable interaction patterns for elements of your product, and develop a software-based prototype that incorporates all the feedback and the results of the user experience mapping achieved at the end of chapter-11. if you do not have experience in using any of these, create a few html web pages to represent the basic structure of your website
Answers: 2
You know the right answer?
Write the Java code to simulate an inventory control system and a point of sale system with customer...

Questions in other subjects:

Konu
History, 25.03.2020 20:40