Answer to Question #239066 in Java | JSP | JSF for Princess

Question #239066
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.
1
Expert's answer
2021-09-19T20:42:25-0400
import java.util.Scanner;
public class Main
{
	public static void main(String[] args) {
		Scanner in=new Scanner(System.in);
		System.out.println("BRIGHT FUTURE TECHNOLOGIES APPLICATION");
		System.out.println("Enter (1) to launch menu or any other key to exit");
		int c=in.nextInt();
		
		if (c==1){
		    int c2;
		    System.out.println("Please select one of the following menu items:");
		    System.out.println("(1) Capture a new product.\n(2) Search for a product\n(3) Update a product.");
		    System.out.println("(4) Delete a product.\n(5) Print report.\n(6) Exit Application.");
		    c2=in.nextInt();
		}
		else{
		    System.out.println("Thank you for using the application");
		}
	}
}



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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS