Question
/** * In this method, you will place a (very limited) Chipotle order based on the * input. The return String should be Bowl with
/** * In this method, you will place a (very limited) Chipotle order based on the * input. The return String should be "Bowl with ____ rice and ____ fajita * veggies and _____ salsa.", where the blanks are filled using the instructions * below. If the boolean guac is true, add a space and "Guac please." at the * end. * * For examples, please see the public tests. You may assume all inputs will be * valid. * * @param rice * 'b' or 'B' for "brown", 'w' or 'W' for "white" * @param fajitas * 0 for "no", <10 for "some",>=10 for "a lot of" * @param salsa * 1 for "pico", 2 for "verde", 3 for "corn" * @param guac * whether the bowl should have guac or not * @return the order as described above */
public static String chipotleOrder(char rice, int fajitas, int salsa, boolean guac) {
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started