Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

please answer all 3 Secure https/www.connexus.com/content/chrome/online/lessonVi

ID: 3874303 • Letter: P

Question

please answer all 3

Secure https/www.connexus.com/content/chrome/online/lessonViewer.aspx?header-true&idCourse; 54 Apps X Dylan Sexton's Calen C Chinese I A: Listen a sson 1: Semester Exam Computer Science A Unit 10: Semester Exam O get Temp getDate precipitationLikely ONone of the above are mutator methods OAll of the above are mutator methods Multiple Choice 16. Connder the following class designed to store weather statistics at a particular date and time pointy public class Weather Shapshot prnate int tempieF ahrenhet prvato int humdity "value of 56 mew" 56% humidity degrees Fahrenheit uses a Date ebject to store the date prote Date date i n miltary time such as 1430-2 30 pm me a 25% or more ofthe sky i, covered constnactor not shown but ntaizes all nstance vanables postcondhon ems tempersture public int getTemp retum tempinF shrenheit public Date getDate public beolean preciptnenhew mplementation not shown Suppose that a cert class camed Weelch Weather stores WeatherSnapshots throughout a veek Ths class has the ielloning pirate instance tanables private Date star Date This class needs a method that creates a subset of all WeatherSnapshot objects that match a first Date for the week's weather certain date How could thiu method be implemeated Add an accensor method to the WeatherSnapshot class that returns true if the Date parameter matches its date instance rarable, false etherwise Add a mehod to the ieeldhy Weather class that loops through its Array List, and returns an Array List of W'eather Snapshot objects uhose dates match the Date para Add a method to the Weeidh Weather class that loops through its Array List, and finda the number of Weather Snapshot objects whose dates match the Date parane 0 Addmethod te t e WeatherSnapub t class that returni an ArravLut of WeatherSnapshot objects that have been created whose dates match ee Date para m Add n aditonal class named W'eeldy Weather Subset that contains a method that loops through the Weekly Weather Array List, and returna an Amay Lut of Weathe duluple Choice Aichenquant is dengiang lami progann He decides to first define all theclasies that point

Explanation / Answer

18)

3)apaet

explanation:

// your code goes here

String[] fruits = {"apple","banana","peach","strawberry"};

String str = "a";

for(String item:fruits) //this loop will check all the products in the string fruits

{

str +=item.substring(1,2); //find the substring of each product and add with a

  

}

System.out.println(str); //displays the output

15)

5) All the above are mutator class