Question: CHLLENGE 5.10.2: Convert a height into i 5.10.2: Convert a height into inches ACTIVITY Write a second convert Tolnches0 with two double parameters, numFeet and

CHLLENGE 5.10.2: Convert a height into i 5.10.2: Convert a height into inches ACTIVITY Write a second convert Tolnches0 with two double parameters, numFeet and numlnches, that returns the total number of inches Ex convertTolnches(4.0, 6.0) returns 54.0 (from 4.0 12+ 6.0) 1 import java.util.Scanner; 3 public class FunctionoverloadToinches 5 public static double convertToInches (double numFeet) ( passed o t return numFeet 12.0; Al tests 9Your solution goes here 10 11 public static void main (string [1 args) ( 12 13 double totInches; totInches convertToInches(4.0, 6.0); System.out.println("4.0, 6.0 yields "+ totInthes) totinches convertToInches (5.8); System.out.println("5.8 yields "+ totInches); 63 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
