Question: Question 2 : Inventory Management ( use arrays, loops, if / if - else / if - else - if / switch ) Write a
Question : Inventory Management use arrays, loops, ififelseifelseifswitch Write a Java program that manages an inventory of products in an electronics store. Each product has a name, price, and a quantity in stock. The program should allow the user to update stock, display all products, find the product with the highest price, find the product with the lowest quantity, and search for a specific product by name case insensitive If two or more products have the same highest price or the same lowest quantity, the program displays the first product that matches the criterion. When the program starts, it displays Welcome to Inventory Management System It then reads information of the products. The user provides this information on a separate line for each product. In each line, the first input is the price, the second input is the quantity, and the rest of the input is the name of the product. You can assume a perfect user; all input is valid. For example, the following line: HP Laptop is for a product called HP Laptop, quantity is and the price is dollars. The program should continue running until the user sele
cts "Exit". On exit, the program displays Goodbye before exiting. Instructions: Create three arrays: o A String array to store the names of products, o An array of doubles to store the prices of the products, and o An int array to store the quantity in stock for each product. The program should display a menu with the following options: Display information of all products Update the quantity of a product Search for a product by name Find the product with the lowest quantity Find the product with the highest price Exit
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
