Q.1.8
The user must have the ability to search for a product. The user will select menu item two (2), which will prompt the user to enter a product code. If a valid product is found in the application, then display the product details to the user. If no valid product is found, display an error message to the user that the product cannot be located.
Sample Product Search Screenshot
Please enter the product code to search: 235
PRODUCT SEARCH RESULTS
PRODUCT CODE: A55
PRODUCT NAME: EliteBook
PRODUCT WARRANTY: laptop
PRODUCT CATEGORY: 2 years
PRODUCT PRICE: 15000
PRODUCT STOCK LEVELS: 3
PRODUCT SUPPLIER: IT_4_Africa
Enter (1) to launch menu or any other key to exit
Sample Invalid Product Screenshot
Please enter the product code to search: 1
The product cannot be located.
Invalid Product Enter (1) to launch menu or any other key to exit
Write a program with a mother class and an inherited daugther class. Both of them should have a
method void display () that prints a message (different for mother and daugther).In the main define a
daughter and call the display() method on it.
Write a program that defines a shape class with a constructor that gives value to width and height.
The define two sub-classes triangle and rectangle, that calculate the area of the shape with the help
of method area (). In the main, define two instance variables a triangle and a rectangle and then call
the area() method in this two instance variables.
he user must have the option to delete a product that has been saved. The user must first enter the product code to be deleted. Next, the user must confirm whether they want to delete the product. Q.1.10 The user must also have the ability to update specific details of the product. For example, the user must first enter the product code and then confirm whether to update the following product details: • Update the product warranty. • Update the product price. • Update the product stock level