Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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 legendStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started