Your goal is to implement an application that allows employe
Solution
import java.util.Scanner;
public class HelloWorld{
public static void main(String []args){
String line, name, address, telephone, cardNo;
String []paymentMethod={\"Canceled Transaction\", \"Visa\", \"MasterCard\", \"Cash\"};
int choice, method;
Scanner sc= new Scanner(System.in);
System.out.println(\"Welcome to Jewelry Shop\'s Order Placig Terminal\");
do {
System.out.println(\"Chose from the options:\ Enter 1: Place Order\ Anything else: Exit\");
line = sc.nextLine();
try {
choice = Integer.parseInt(line);
} catch(Exception e1) {
choice = 0;
}
switch(choice) {
case 1:
System.out.println(\"Enter following details\ Your Name:\");
name = sc.nextLine();
System.out.println(\"Telephone No:\");
address = sc.nextLine();
System.out.println(\"Address [in a line]:\");
telephone = sc.nextLine();
System.out.println(\"Payment Method:\ Enter 1: VISA\ Enter 2: MasterCard\");
System.out.println(\"Enter 3: Cash\ Anything else: Exit\");
line = sc.nextLine();
try {
method = Integer.parseInt(line);
if(method >3 || method<0) {
method =0;
} else {
if(method ==1 || method==2) {
System.out.print(\"Enter Card No: \");
cardNo = sc.nextLine();
}
}
} catch(Exception e1) {
method = 0;
}
System.out.println(\"Select Bracelete Metal\");
switch(method) {
case 1:
//Updating code in minutes
break;
}
break;
default:
System.out.println(\"Goodbye! Thanks for using the portal.\");
break;
}
}while (choice!=0);
}
}

