To arrive at the accurate balance on a bank reconciliation s…

Questions

Tо аrrive аt the аccurate balance оn a bank recоnciliation statement, it is necessary to:

Yоu MUST nаme the file yоu аre submitting jаvaPlacementExam.java. Skeletоn File: javaPlacementExam.java Gradescope (where to submit): [Java] Coding Exam Remember that you can submit as many times as you wish before the exam closes! Submit only .java files. Do not submit .class files. Function 1 Function Name: compareSports()Parameters: mySports (String[]), friend1Sports (String[]), friend2Sports (String[])Returns: count (int)Description: You just moved into campus, and you want to watch your favorite Olympic sports with your new friends! Given three String arrays containing your, your first friend, and your second friend's favorite Olympic sports, write a static method called compareSports() that returns the number of favorite sports everyone has in common. Be sure to account for case insensitivity: matching sports with different capitalizations should be considered the same. Test Cases: String[] mySports = {"Swimming", "Rugby", "Gymnastics", "Golf", "Volleyball"};String[] friend1Sports = {"GYMNASTICS", "SWIMMING", "TRACK AND FIELD"};String[] friend2Sports = {"swimming", "track and field", "gymnastics"};System.out.println(compareSports(mySports, friend1Sports, friend2Sports));      // prints 2// Since "Swimming" and "Gymnastics" are both shared between all friendsmySports = {"Table Tennis", "Tennis", "Breakdancing", "Triathlon"};friend1Sports = {"breakdancing", "gymnastics", "diving", "swimming"};friend2Sports = {"Track and Field", "Rugby", "Breakdancing", "Football"};System.out.println(compareSports(mySports, friend1Sports, friend2Sports));     // prints 1// Since "Breakdancing" is the only sport shared between all friends Function 2 Function Name: totalPoints()Parameters: eventResults (String[][]) Returns: totalFreestylePoints (String) Description: Given a 2D nested array of Strings that include countries and their respective breakdancing scores, write a static method called totalPoints() that totals and returns the sum of all countries' average freestyle scores earned in the Breakdancing event in the form "Total points scored: {points}". In our scenario, a country's score is a freestyle score if it is an even number, so make sure to only include even numbered scores in a country's average score calculation. You may assume that there will always be at least one freestyle score associated with each country and that each score will not include invalid characters. Note: Please use integer division for all average calculations. Test Cases: String[][] eventResults = {{"USA", "85", "80"}, {"Italy", "90", "80", "51"}, {"France", "78"}}; System.out.println(totalPoints(eventResults));// prints "Total points scored: 243", which is 80 + 85 + 78eventResults = {{"Japan", "92", "100"}, {"South Korea", "88", "90", "93"}, {"China", "74", "99"}};System.out.println(totalPoints(eventResults)); // prints "Total points scored: 259", which is 96 + 89 + 74 Function 3 (must be implemented recursively) Function Name: addMedals()Parameters: nums (String)Returns: sumOfMedals (int)Description: Given a String whose digits represent the number of medals earned by a country in various events, write a static method called addMedals() that returns the sum of all of the odd digits present in the string. Ignore non-digit characters present in the String.  This function must be written recursively. No credit will be given for using loops in the function. Do not use helper methods in this function. Hint: Integer.valueOf(String), which returns an integer representation of a passed in String, may be helpful. Integer.valueOf("123") => 123. Hint: You may also need String.valueOf(char), which returns a string representation of a character. String.valueOf('3') => "3". Test Cases: String nums = "48395687";System.out.println(addMedals(nums));// prints 24nums = "15%82963^";System.out.println(addMedals(nums));// prints 18