Create a cash register application (window builder). The program will display a menu in the fast-food as follows:

Cheeseburger 55.00
Pepsi 25.00
Chips 35.00
Coke 20.00
Fries 45.00
Sundae 40.00
The user will choose an item to purchase. After the user selects an item to purchase, the user will input the quantity of the item and compute the amount due. A tax is deducted from the total amount purchased, which can be senior 10% or PWD 15%, and a service charge of 2% is added. Output should include the product bought, the total amount purchased, discounts, deductions, the amount given, and any changes if any.

Why did the cash register go on a diet? It wanted to make some "cash" money!

But don't worry, I can help you create a cash register application. Here's an example for you to get started:

```java
import java.util.Scanner;

public class CashRegisterApp {
public static void main(String[] args) {
// Display the menu
System.out.println("Welcome to the Fast-Food Cash Register!");
System.out.println("----------------- Menu -----------------");
System.out.println("1. Cheeseburger - $55.00");
System.out.println("2. Pepsi - $25.00");
System.out.println("3. Chips - $35.00");
System.out.println("4. Coke - $20.00");
System.out.println("5. Fries - $45.00");
System.out.println("6. Sundae - $40.00");
System.out.println("----------------------------------------");

// Get user input
Scanner scanner = new Scanner(System.in);
System.out.print("Enter the item number to purchase: ");
int itemNumber = scanner.nextInt();

System.out.print("Enter the quantity: ");
int quantity = scanner.nextInt();

// Check if item number is valid
double price = 0.00;
String item = "";
switch (itemNumber) {
case 1:
price = 55.00;
item = "Cheeseburger";
break;
case 2:
price = 25.00;
item = "Pepsi";
break;
case 3:
price = 35.00;
item = "Chips";
break;
case 4:
price = 20.00;
item = "Coke";
break;
case 5:
price = 45.00;
item = "Fries";
break;
case 6:
price = 40.00;
item = "Sundae";
break;
default:
System.out.println("Invalid item number.");
return;
}

// Calculate the amount due
double amountDue = price * quantity;
double tax = 0.10; // Tax for seniors
double serviceCharge = 0.02;

System.out.print("Are you a senior citizen? (Y/N): ");
String isSenior = scanner.next();
if (isSenior.equalsIgnoreCase("Y")) {
amountDue -= amountDue * tax;
}

System.out.print("Are you a person with disability? (Y/N): ");
String isPWD = scanner.next();
if (isPWD.equalsIgnoreCase("Y")) {
tax = 0.15; // Tax for PWDs
amountDue -= amountDue * tax;
}

amountDue += amountDue * serviceCharge;

// Get the payment amount
System.out.print("Enter the payment amount: ");
double paymentAmount = scanner.nextDouble();

// Calculate the change
double change = paymentAmount - amountDue;

// Display the receipt
System.out.println();
System.out.println("------------------- Receipt -------------------");
System.out.println("Item: " + item);
System.out.println("Price per item: $" + price);
System.out.println("Quantity: " + quantity);
System.out.println("Total amount purchased: $" + amountDue);
System.out.println("Payment amount: $" + paymentAmount);
if (change >= 0) {
System.out.println("Change: $" + change);
} else {
System.out.println("Insufficient payment.");
}
System.out.println("-----------------------------------------------");

scanner.close();
}
}
```

This application allows the user to select an item from the menu and input the quantity. It then calculates the amount due based on the price and quantity, applying tax deductions for seniors and persons with disabilities, as well as a service charge. Finally, it asks for the payment amount and calculates the change.

Please note that this is a simple example and may require additional error handling and validation for production use.

To create a cash register application with a graphical user interface (GUI) using Window Builder, you can follow the steps below:

1. Set up the development environment:
- Install Java and Eclipse IDE if not already installed.
- Install the Window Builder plugin in Eclipse by going to Help -> Eclipse Marketplace -> Search for "Window Builder" -> Install.

2. Create a new Java project in Eclipse:
- Go to File -> New -> Java Project.
- Provide a project name and click "Finish".

3. Create a new Java class for your cash register application:
- Right-click on the source folder in the Package Explorer -> New -> Class.
- Give the class a name (e.g., CashRegisterApp) and check the "public static void main(String[] args)" option.
- Click "Finish" to create the class.

4. Design the GUI using the Window Builder:
- Open your newly created Java class.
- Switch to the Design view by clicking on the "Design" button at the bottom of the editor.
- In the Palette view, expand "Swing Containers" and drag a "JFrame" onto the design canvas.
- Customize the JFrame's properties (e.g., size, title) by selecting it and modifying the properties in the Properties view.
- Drag and drop the required Swing components (e.g., JLabel, JTextField, JButton) onto the JFrame to build the desired layout.
- Customize the components' properties and arrange them to match your cash register application's design.
- Add appropriate event listeners to handle user interactions (e.g., button click).
- Connect the components to appropriate variables by giving them meaningful names in the Properties view.

5. Implement the cash register logic in your Java class:
- Switch back to the Source view.
- Define instance variables for the components you want to interact with.
- Implement event listeners to handle user interactions and perform the required calculations.
- Use appropriate data structures (e.g., HashMap or arrays) to store the menu items and their prices.
- Calculate the total amount purchased based on the quantity the user selects and the item's price.
- Apply the senior or PWD discount based on user input.
- Apply the service charge of 2%.
- Compute the amount given and any change due.
- Update the GUI components to display the results.

6. Compile and run the application:
- Click the "Run" button or press Ctrl+F11 to run your cash register application.
- The GUI window will appear, and you can interact with it to make purchases and see the calculated results.

Keep in mind that building a complete cash register application requires more than just these steps. You may also need to handle user input validation, exception handling, and other edge cases specific to your requirements.

To create a cash register application, you can follow these step-by-step instructions:

Step 1: Set up the user interface using a window builder tool.

1. Open your preferred Integrated Development Environment (IDE) and navigate to the window builder tool.
2. Create a new Java project and add a new window or JFrame class to it.
3. Design the user interface to display the menu items and input fields for item selection and quantity.

Step 2: Create variables and constants to represent the menu items and their prices.

```java
final double CHEESEBURGER_PRICE = 55.00;
final double PEPSI_PRICE = 25.00;
final double CHIPS_PRICE = 35.00;
final double COKE_PRICE = 20.00;
final double FRIES_PRICE = 45.00;
final double SUNDAE_PRICE = 40.00;
```

Step 3: Add event listeners to handle user selections and calculate the total amount due.

1. Define and implement an ActionListener for the button or event trigger to handle the purchase.
2. Get the selected item and quantity from the input fields.
3. Calculate the total amount due by multiplying the price of the selected item by the quantity.

Step 4: Handle discounts, deductions, and service charges.

1. Ask the user to select the discount type (senior 10% or PWD 15%).
2. Calculate the discount amount by subtracting the appropriate discount from the total amount due.
3. Calculate the tax amount by multiplying the discounted amount by the tax rate (e.g., 0.12 for 12% tax). Subtract the tax amount from the discounted amount to get the final amount after tax deduction.
4. Add the service charge to the final amount after tax deduction.

Step 5: Handle the amount given and change calculation.

1. Prompt the user to input the amount given.
2. Subtract the final amount after tax and service charge deduction from the user input to calculate the change.
3. Display the amount purchased, discounts, deductions, the amount given, and any change in the user interface.

Here's an example code snippet to help you understand the structure:

```java
// Step 2: Defining variables and constants
final double TAX_RATE = 0.12;
final double SERVICE_CHARGE_RATE = 0.02;

// Step 3: Event handling for purchase
purchaseButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
// Step 3.1: Get selected item and quantity
String selectedMenuItem = menuItemComboBox.getSelectedItem();
int quantity = Integer.parseInt(quantityTextField.getText());

// Step 3.2: Calculate total amount due
double totalAmountDue = 0.0;
switch (selectedMenuItem) {
case "Cheeseburger":
totalAmountDue = CHEESEBURGER_PRICE * quantity;
break;
case "Pepsi":
totalAmountDue = PEPSI_PRICE * quantity;
break;
// Add cases for the rest of the menu items
}

// Step 4: Handling discounts, tax, and service charge
double discount = 0.0;
if (isSeniorDiscountSelected) {
discount = totalAmountDue * 0.1; // 10% discount for seniors
} else if (isPWDDiscountSelected) {
discount = totalAmountDue * 0.15; // 15% discount for PWDs
}

double discountAmount = totalAmountDue - discount;
double taxAmount = discountAmount * TAX_RATE;
double finalAmount = discountAmount - taxAmount;
double serviceCharge = finalAmount * SERVICE_CHARGE_RATE;
double amountDue = finalAmount + serviceCharge;

// Step 5: Handling amount given and change calculation
double amountGiven = Double.parseDouble(amountGivenTextField.getText());
double change = amountGiven - amountDue;

// Display the results in the user interface
// You can use JOptionPane or JLabels to display the output.
}
});
```

Please note that this is just a general outline to guide you in creating a cash register application. You will need to create the UI using a window builder tool, handle any input validation or error handling, and display the output in a user-friendly format.