public class McDonalds { // Enumerations public enum SodaFlavor { Nothing, Coke, Pepsi, Sprite }; public enum SodaSize { Nothing, Small, Medium, Large }; public enum Sandwich { Nothing, BigMac, QuarterPounder, FiletOfFish }; public enum SideOrder { Nothing, FrenchFries, OnionRings }; // Instance variables!!! // No argument constructor public McDonalds() { flavor = SodaFlavor.Nothing; size = SodaSize.Nothing; meal = Sandwich.Nothing; side = SideOrder.Nothing; } // Setters public void chooseDrink(SodaFlavor f, SodaSize s) { // Implement this method!!! } public void chooseMeal(Sandwich type, SideOrder order) { // Implement this method!!! } // Return a formatted String of the order @Override public String toString() { // local variables s and cost initialized to use in this method double cost = calculateCost(); String s = ""; // Add code to build string!!! return s; } // Calculate cost public double calculateCost() { // local variable initialized to hold the cost of the meal double cost = 0.0; // Add special meal!!! // Compute soda cost switch (size) { case Small: cost += 0.79; break; case Medium: cost += 0.99; break; case Large: cost += 1.19; break; default: } // Compute sandwich cost!!! // Compute side cost!!! return cost; } }