Java | JSP | JSF Answers

Questions answered by Experts: 3 611

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

The 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.

Please enter the product code to update: ASS Update the warranty? (y) Yes, (n) No n Opdate the product price? (y) Yes, (n) No y Enter the new price for EliteBook >> 14500 Update the stock level? (y) Yes, (n) No n Product details has been updated successfully!!!

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

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.


If the user makes an incorrect product category selection, prompt the user to re-enter a valid product category.


Once the entire submission has been completed, the user must be informed that the product details have been successfully saved.


The 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.


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.


Special consideration needs to be made for the selection of the product category. Allow the user to make a selection between the following categories: • Desktop Computer. • Laptop. • Tablet. • Printer. • Gaming Console. Q.1.5 If the user makes an incorrect product category selection, prompt the user to re-enter a valid product category. Q.1.6 Provide the user with the option to select between the following product warranty options: • 1 – Applies a six-month product warranty. • Any other key applies a two-year warranty. Q.1.7 Once the entire submission has been completed, the user must be informed that the product details have been successfully saved


The Airplane always needs to check with the Airport to see if it has an available runway before it's able to take off or land. Simulate the abovementioned scenario using multi-threading.


Create a class named Customer that will determine the monthly repayment amount due by a customer for a product bought on credit. The class has five fields: customer name, contact number, product price, number of months and the monthly repayment amount. Write get and set methods for each field, except for the monthly repayment amount field. The set methods must prompt the user to enter the values for the following fields: customer name, contact number, product price and number of months. This class also needs a method to calculate the monthly repayment amount (product price divided by the number of months).


Write the following generic method using selection sort and a comparator: public static <E> void selectionSort(E[] list, Comparator<? super E> comparator) Write a test program that creates an array of 10 GeomtricObjects and invokes this method using GeometricObjectComparator introduced in Listing 20.5 to sort the elements. Display the sorted elements. Use the following statement to create the array: GeometricObjectfi list1 = {new Circle(5), new Rectangle(4, 5), new Circle(5.5), new Rectangle(2.4, 5), 

new Circle(0.5), new Rectangle(4, 65), new Circle(5.4), new 

rectangle(6.6,1), 

new Circle(5.6), new rectangle(5, 4); Also in the same program, write the code that stores six strings by their last character. Use the follwing statement to create the array: String 0 list2 = {"red", "blue", "green", "orange", "yellow", "pink") 



LATEST TUTORIALS
APPROVED BY CLIENTS