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)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.