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

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!