Question: I can't figure out why my white space is wrong? Please explain and point in the program why? ACAIVIT6.1.3 Method call with parameter. Printing formatted

 I can't figure out why my white space is wrong? Please

I can't figure out why my white space is wrong? Please explain and point in the program why?

ACAIVIT6.1.3 Method call with parameter. Printing formatted measurement. ACTIVITY Define a method printFeetlnchShort, with int parameters numFeet and numinches, that prints using and shorthand. Ex printFeetlnchShort (5, 8) prints 5' 8" Hint:Use " to print a double quote 1 import java.util.Scanner; 3 public class HeightPrinter 5 public static void printFeetInchShort(int numFeet, int numInches)f 1 test passed System.out.printin (numFeet+numInches+"\"") System.out.print(); All tests oassed Your solution goes here / 9 1 public static void main (String [ args) f printFeetInchShort(5, 8)Will be run with (5, 8), then (4, 11) System.out.println(""; 12 13 14 Run X Testing with 5,8 Output is nearly correct, but whitespace differs. See yellow highlights below Your output 5' 8" Expected output 5' 8" Special character legend

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!