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

Answer the following questions, saving the file as a Word document. Submit for g

ID: 3562939 • Letter: A

Question

Answer the following questions, saving the file as a Word document. Submit for grading.

1. Give the method header for each of the following: (50 pts)

     a. Method calcAverage, that takes in two double arguments, an integer and returns a double.
     b. Method DetermineRadius, which takes in an integer and returns nothing
     c. Method calcMilesPerGallon, which takes in an integer, a double, and returns a double
     d. Method DetermineGradePointAverage, which takes in hours attempted (integer), quality points (double) and returns a string
     e. Method DetermineArea, which takes in two doubles, and returns nothing.

2. Given the method headers above, determine the method calls necessary to accomplish the tasks: (Create appropriate and necessary dim statements for any variables needed) (50 pts)

Explanation / Answer

1.

a) public static double calcAverage(double arg1, double arg2, int arg3)

b) public static void DetermineRadius(int arg1)

c) public static double calcMilesPerGallon(int arg1, double arg2)

d) public static string DetermineGradePointAverage(int hours, double qPoints)

e) public static void DetermineArea(double arg1, double arg2)

2.

a) double average = calcAverage(arg1, arg2, arg3)

b) DetermineRadius(arg1)

c) double milesPerGallon = calcMilesPerGallon(arg1, arg2)

d) string gpa = DetermineGradePointAverage(hours, qPoints)

e) DetermineArea( arg1, arg2)

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