subject
Computers and Technology, 13.03.2020 00:54 Ree0628

Define a public static method named iceCreamPrice2 that computes and returns the total price (a double data type) of an ice cream cone. This method has 2 parameters in the following order: -- size of the ice cream cone (a char data type) -- number of toppings (an int data type) The price for a large ('L') ice cream cone is 4.00 The price for a medium ('M') ice cream cone is 3.00 The price for a small ('S') ice cream cone is 2.00 If another size is passed to this method - treat it as a large Toppings cost 0.50 per topping, you can assume the number of toppings will be a whole number greater or equal to 0 Here are some test cases with expected results: iceCreamPrice2('S', 1) --> 2.50 iceCreamPrice2('M', 0) --> 3.00 iceCreamPrice2('L', 3) --> 5.50 iceCreamPrice2('Z', 1) --> 4.50

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Ted wants to go out to a neighborhood park and shoot pictures of dew drops on grass. he wants to get a low-level angle of the dew drops. which support equipment should ted use? a. mini tripod b. pistol grip c. monopod d. body mount
Answers: 2
question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 15:00
Who is the first president to use social media as part of his campaign strategy
Answers: 1
question
Computers and Technology, 23.06.2019 08:30
All of these are true about using adhesive except: a. dissimilar materials can be joined. b. mixing tips are product and material specific. c. a specific application gun may be required. d. two-part adhesives are dispensed using two mixing tips
Answers: 3
You know the right answer?
Define a public static method named iceCreamPrice2 that computes and returns the total price (a doub...
Questions
question
Mathematics, 15.08.2020 01:01
question
Mathematics, 15.08.2020 01:01
Questions on the website: 13722361