Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.


Q.1.12

Finally, provide the ability for the user to exit the application.

Additional Requirements:

In your solution, you must create a class called Products, which will contain all your working methods

This class will, as a minimum, contain the following methods, but you are encouraged to add more methods

SearchProduct().

SaveProduct(),

UpdateProduct();

DeleteProduct().

DisplayMenu(),

Capture Product().

ExitApplication();

3. Finally, create a main class to run your application.
Q.1.5

(Marks: 65)

Extreme IT Products is a local supplier that specialises in the sales of the latest Information
Technology hardware devices. The business has recently opened an outlet in the town you reside
and has hired the software development house you work for to design a Java application to manage their products.

Your line manager has requested you to develop the application with the following requirements:

When the application starts, it must display the following menu structure:

Sample Menu Screenshot

BRIGHT FUTURE TECHNOLOGIES APPLICATION

Enter (1) to launch menu or any other key to exit

Please select one of the following menu items:

(1) Capture a new product.

(2) Search for a product

(3) Update a product.

(4) Delete a product.

(5) Print report.

(6) Exit Application.
Question 2

(Marks: 35)

You have to design your own Java console application about any valid problem that your

application must solve. Your solution can include solving a business problem, a new idea or even a

game. Your application must make use of concepts such as arrays, loops, inheritance, constructors

and information hiding. Output must be shown in the form of a report using the console.

In your solution, make use of as many concepts, and components dealt with in this course, but

pay special attention to the following learning units:

Learning Unit 1: Advanced arrays.

Learning Unit 2: Introduction to inheritance.
1. In your solution, you must create a class called Products, which will contain all your working
methods.
2. This class will, as a minimum, contain the following methods, but you are encouraged to
add more methods:
• SearchProduct();
• SaveProduct();
• UpdateProduct();
• DeleteProduct();
• DisplayMenu();
• CaptureProduct();
• ExitApplication();
3. Finally, create a main class to run your application

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


1. In your solution, you must create a class called Products, which will contain all your working
methods.
2. This class will, as a minimum, contain the following methods, but you are encouraged to
add more methods:
• SearchProduct();
• SaveProduct();
• UpdateProduct();
• DeleteProduct();
• DisplayMenu();
• CaptureProduct();
• ExitApplication();
3. Finally, create a main class to run your application
1. In your solution, you must create a class called Products, which will contain all your working
methods.
2. This class will, as a minimum, contain the following methods, but you are encouraged to
add more methods:
• SearchProduct();
• SaveProduct();
• UpdateProduct();
• DeleteProduct();
• DisplayMenu();
• CaptureProduct();
• ExitApplication();
3. Finally, create a main class to run your application
LATEST TUTORIALS
APPROVED BY CLIENTS