Home /
Expert Answers /
Computer Science /
challenge-4-3-2-method-stubs-statistics-activity-define-stubs-for-the-methods-called-by-the-pa668
(Solved):
CHALLENGE 4.3.2: Method stubs: Statistics. ACTIVITY Define stubs for the methods called by the ...
CHALLENGE 4.3.2: Method stubs: Statistics. ? ACTIVITY Define stubs for the methods called by the below main(). Each stub should print "FIXME: Finish methodName()" followed by a newline, and should return -1. Example output: FIXME: Finish getUserNum() FIXME: Finish getUserNum() FIXME: Finish computeAvg() Avg: -1 389028 1739508.qx3zay7 n
389028.1739508.qx3zqy7 1 import java.util.Scanner; 2 3 public class MthdStubsStatistics { /* Your solution goes here */ public static void main(String [] args) { int userNum1; int userNum2; int avgResult; userNum1 = getUserNum(); userNum2 = getUserNum(); avgResult = computeAvg (userNum1, userNum2); 11 System.out.println("Avg: + avgResult); 68049 SAWNA 4 5 7 SADRESSE 10 11 12 13 14 15 16 17