|
|
| java class |
Expert:shivali
Define a class product with the following data members 1.Product number int(Auto generated) 2.Product name char [20] 3.Price float
member functions 1.To input the data menbers 2.To display the data members
Global functions 1.A function to sort the records (using insertion sort)of all products in the ascending order of their price. 2.To insert a new record in the sorted array without altering the order of the records. 3.To search for a product(using binary search) in the array of products.
Write a menu driven program to execute the above class ad functions for 5 products. |
| Answers |
| More Questions |
|
|
Post Answers
Ask Question
Facing Programming Problem?
|
|
|
|
|