Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

ybooks.com/zybook/UMASSCOMPSCI121Fall2018/chapter/3/section/4?content_resource i

ID: 3752921 • Letter: Y

Question

ybooks.com/zybook/UMASSCOMPSCI121Fall2018/chapter/3/section/4?content_resource id 27605703 import java.util.Scanner; 3 public class HeightPrinter f 4 5 public static void printFeet InchShort(int numFeet int numInches)f 6 System.out.println(numFeetnumInches ""); 7 8 9 public static void main (String [) args) ( 10 Your solution goes here * HeightPrinter myPrinter new HeightPrinter); 12 13 14 15 16 /I Will be run with (5, 8), then (4, 11) myPrinter.printFeetInchShort (5, 8); System.out.println() Run Failed to compile HeightPrinter.java:5: error ,'')', or 'I' expected public static void printFeetInchShort (int numFeet int numInches) ( HeightPrinter.java:5: error: expected public static void printFeetInchShort (int numFeet int numInches) ( HeightPrinter.java:6: error: unclosed string literal System.out.println (numFeet "'"+ numInches+ ""): 3 errors Feedba NG 6:59 PM

Explanation / Answer

Change the code to fix the errors:

1) The comma ( , ) is missing from

public static void printFeetInchShort(int numFeet, int numInches) {

}

See the comma between two arguments


2) "" has no meaning you need to change "" to " " to fix the error

System.out.println(numFeet + " " + numInches + " ");



Thanks, PLEASE UPVOTE. Question was to make program compile and I feel it will compile NOW.
PLEASE UPVOTE