Using Java, write a program that determines whether you will eatat your favorite fast food restaurant today and displays thechoice. Assume that you have a 50% chance of eating theretoday.
Sample output: You will eat at a fastfood restaurant today.
or
Sample output: You will not eat fastfood today.
Solution
public class RestaurantChoice { public static void main(String[] args) { if (Math.random() >= 0.5) { System.out.println(“You will eat at a fast food restaurant today.”);
OR
OR