Your goal is to implement an application that allows employe

Your goal is to implement an application that allows employees of a small jewelry store to place a customer order. Your application should: get customer information including name, telephone number and address (one field for each). ask for the method of payment: Visa, MasterCard, or cash. ask for customer credit card number if he/she selects Visa or MasterCard. have four types of bracelets (Platinum for $645.89, Gold for 519.99, Silver for $416.50, and Bronze for S314.80) and five options (Black Diamond for $2, 999, White Diamond for $2, 345, Black Pearl for $2145, White Pearl for $1, 200, and Gemstone for $999). All prices are for one order. Bracelet type and option prices are shown on the screen next to each item (see list of menus below). The total price should include tax at the rate of 9.75%. (Assume the customers could place one order at a time) Gifts - Customers get a gift if they select 2 or more options. Choose 2 options: $50 gift certificate; select 3 options: $200 discount coupon for next order; select 4 or more options: One free silver ring. calculate the total price when the user selects \"Display Order Confirmation\". When the user selects the \"Display Order Confirmation\" option: if input is complete, your application must generate an order confirmation shown below. if input is incomplete, your application must generate one message, listing all the fields requiring completion. The user should be able to input data in any order. Use static methods. Do not use global variables. Do not use arrays. Make sure to test your program completely before submission. Do not forget to add comments. Submit your well-documented Java program via Canvas. The order confirmation should look like this: You have placed an order for Gold Bracelet ($33.33) With the following options: White Diamond ($5.55) Gemstone ($2.22) Total price: $88.88 Congratulations. You will get the following free gift with your order: $50 gift certificate Sold to: John Doe Telephone: 12345 Address: 123 Nice St. Paid by: Visa number 998877

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);
}
}

 Your goal is to implement an application that allows employees of a small jewelry store to place a customer order. Your application should: get customer inform
 Your goal is to implement an application that allows employees of a small jewelry store to place a customer order. Your application should: get customer inform

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site