Answer:
public static void printTotalInches(double num_feet, double num_inches){
double inches = 12*num_feet;
System.out.println("Total value in feets is: "+(inches+num_inches));
}
This function is written in Java Programming Language. Find a complete program with a call to the function in the explanation section
Explanation:
public class ANot {
public static void main(String[] args) {
//Calling the function and passing the arguments
printTotalInches(5,8);
}
public static void printTotalInches(double num_feet, double num_inches){
double inches = 12*num_feet;
System.out.println("Total value in feets is: "+(inches+num_inches));
}
}