Question: i need help adjusting my java code so that it checks all the boxes for the objectives and outputs the correct terminal results. I need

i need help adjusting my java code so that it checks all the boxes for the objectives and outputs the correct terminal results. I need to know where to put in the input for different bread types and what it looks like in an if else statementa nd I need to know where to ohave the program output the summary of the order with the amount of detail they are asking for including the discount if applicablepackage ICT152Java. Project1;
import java.util.Scanner;
public class project1{
public static void main(String[] args){
Scanner scanner = new Scanner(
System.in);
String[] menuItems ={"Coffee", "Tea", "Sandwich", "Muffin", "Juice"};
double[] prices ={3.00,2.50,6.00,2.00,4.00};
System.out.println("Welcome to the Cafe Ordering System!");
System.out.println("Menu: ");
for (int i =0; i menuItems.length; i++){
System.out.printf("%d.%s -$%.2f%n", i +1, menuItems[i], prices[i]);
}
System.out.println("Enter the number of the item you want to order:");
int itemChoice = scanner.nextInt()-1;
System.out.println("Enter the quantity you want to order:");
int quantity = scanner.nextInt();
double customizationCost ==0.0;
String customization ="";
if (itemChoice ==1)'{
System.out.println("You selected Coffee.");
}
double totalCost =(prices[itemChoice]+ customizationCost)* quantity;
if (totalcost>25.00){
totalcost**=0.90;
}
System.out.println("Order Summary:");
System.out.printf("Item: %s%n", menuItems[itemChoice]);
System.out.printf("Quanity: %d%n", quantity);
if(!customization.isEmpty()){
zations::%s%n", customization.trim());
}
System.out.printf("Customizations: %s%n", customization.trim());
System.out.printf("Total cost: $%.2f%n", totalCost);
scanner.close();
*}
}Welcome to the Caf Ordering System!
Menu:
Coffee - $3.00
Tea -$2.50
Sandwich - $6.60
Muffin - $2.00
Juice - $4.00
Enter the number of the item you want to order ;
3
Enter the quantity you want to order:
5
Choose bread type: 1 for White, 2 for Wheat, 3 for Sourdough
2
You selected Wheat bread.
You ordered 5 Sandwich(es). Your total cost is $30.60
A 10% discount has been applied. Your final total is: $27.00
i need help adjusting my java code so that it

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!