Question: solve in java: public class R 2 { public static void finishMe ( String dashes, String item, double portion, String who, int howMany, String what,
solve in java: public class R
public static void finishMe String dashes, String item, double portion, String who, int howMany, String what, String more
FINISH THIS METHOD USING ALL INPUT VARIABLES
MANIPULATE THE VARIABLES
calculate percentage hint: use math
capitalize the name hint: https:docsoracle.comjavasedocsapijavalangStringhtml
see charAt method
see toUpperCase, toLowerCase methods
see substring method
remember how you can turn anything into a String
use the member access operator to invoke methods on the String objects
remember that no variable changes its value unless there's assignment involved
hint: print your variables to test if you changed them right
WRITE A SINGLE printf STATEMENT
remember how to make placeholders formatted:
with comma separators for thousands,
left or right align
space pad
zero pad
DO NOT ALTER THIS METHOD
public static void main String args
System.out.printlnClementine has planted clementines DIG SOME MORE!" ;
finishMerepeat "chocolate", "MONTY", "eaten", "eat it all!" ;
finishMerepeat "quilt", "ARABELLA", "finished", "how cold are you?!" ;
finishMerepeat "cigarette", "FIN", "confiscated", "smoking is bad for you" ;
finishMerepeat "dog", "MARINA", "adopted", "adopt more" ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
