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

I\'m new at coding and I have an assignment thats I\'m not understanding. A meth

ID: 3750360 • Letter: I

Question

I'm new at coding and I have an assignment thats I'm not understanding.

A method named calculateAverageTreeCrown that will accept two double values (smallest crown and largest crown) and return their average as a double.

A method named calculateBigTreePoints that will accept three parameters (circumference, height, average crown spread, in that order) and return the points as a double based on the formula above. The parameters types will be String or double.

A method named displayReport that will accept six parameters (common name, scientific name, circumference, height, average crown spread, and points, in that order) and display the following Big Tree report, but return nothing. The parameter types will be String or double.

My code so far:

public class BigTree {




   public static double calculateAverageTreeCrown(double smallestCrown, double largestCrown ){
  
   return((smallestCrown + largestCrown)/2.0);

}


   public static double calculateBigTreePoints(){
  
  
  
  

}


   public static void displayReport(String commonName, )

Explanation / Answer

public class BigTree {




   public static double calculateAverageTreeCrown(double smallestCrown, double largestCrown ){
  
   return((smallestCrown + largestCrown)/2.0);

}


   public static double calculateBigTreePoints(double circumference,double height,double average crown spread){
  
  
return ((circumference+height+average crown spread)/3.0);
  

}


   public static void displayReport(String commonName, String sceintificName,double circumference, double height,double average crown spread,double points){

System.out.println("Common Name is" +commonName);

System.out.println("Scentific Name is" +scentificName);

  System.out.println("Circumference is" +circumference);

  System.out.println("Height is" +height);

  System.out.println("Average crown spread is" +average crown spread);

  System.out.println("pointa is" +points);

}

}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote