Write a Java program that specifies four one-dimensional arrays named itemName, price, amount and value. itemName is a String describing an inventory item. price is the price of the item. amount is the number of items in inventory. value is the value of all of the items of this type in stock. Using a “for?? loop, input data for the item name, price and amount arrays. Calculate the values by taking the product of the price and amount. valuei = pricei * amounti Calculate the total value of the inventory by summing all of the values. After all the data is taken and calculated, display the following: INVENTORY Total value: $824,567.25 Item Price Number Value Black sofa 699.95 10 6999.50 Brown leather sofa 999.95 1 999.95 Green recliner 399.95 14 5599.30 . . . . . . . . . . . .
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Must be a Java program using TextPad.