Question: Java lang pls 5 Marlo You have been asked to develop an application for a Customizable Burger shop client. Code the class shell and instance




![seed" "honey oat "whole wheat 2.8 1.9 Itomato","bacon", "mushroom") ["mushroom", "kimchi"] e](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3b78c2f7e9_26766f3b78b91d9d.jpg)

Java lang pls
5 Marlo You have been asked to develop an application for a Customizable Burger shop client. Code the class shell and instance variables for CustomizableBurger class with the following attributes: Description Examples Instance Variables bun a String with at least three characters baseCost "sesame seed" "honey oat "whole wheat 2.8 1.9 Itomato","bacon", "mushroom") ["mushroom", "kimchi"] e toppings costofitems the cost for a base burger with any type of bun and one patty. an array of String to represent the available list of toppings. The array size should be in the range of 2 to 8 Inclusive. An array of double to represent the cost of each customizable item. The sequence of the items: 1. cost per patty (for more than one patty, the first patty is included in baseCost) 2. cost per topping, all toppings have different cost [3.0, 1.0, 0.5, 0.9] (for a patty and three toppings, respectively) [2.0, 1.5, 1.0) (for a patty and two toppings, respectively) NA tomato bacon mushmom lettuce customizedBurger 2:tomato:bacon:mushroom:lettuce" *3:kimchi kimchi mushrom" A String to represent the customized item. The String has multiple components that are separated by a colon (-) : 1. The first component is always the number of patty. 2. The second to last components are the toppings. You can assume the toppings selected are always valid. The number of components have to be in the range of 2-9 inclusive. Code a mutator (setter) for the toppings variable. The mutator should return a boolean indicating the success or failure of the mutation. The size of toppings array should be in range of 2 to 8 inclusive. Code an accessor (getter) for the baseCost variable. Code a 4-parameter constructor with parameters for bun, baseCost, toppings and costofitems. Initialize the customizedBurger to an empty String. Ensure all instance variables are explicitly initialised. Do not rely on auto-initialisation. You can assume the rest of the class's methods have been coded and that they protect the integrity of the class's instance variables. Code a toString method that returns the current state of all instance variables
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
