Question: i created a java application which has productId(pid), productName(Pname), quantity of products, Price. which uses Arrays concept and allows the user to set the array
i created a java application which has productId(pid), productName(Pname), quantity of products, Price. which uses Arrays concept and allows the user to set the array and print values. where i can print AddProducts, ViewAllProducts, ViewProduct, UpdateProduct, DeleteProduct, BuyProduct. I am having problem with BuyProduct(Its function is to which product i want to buy, how many products i want to buy, Once we purchase quantity should be reduced)
pid pname qty price
100 tv 10 2500
101 ac. 25. 3500
102 fridge 12. 2500
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
