Question: hello, can someone please help fix my code everything else is right, except for one part. Java only please. Primary U.S. interstate highways are numbered



Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95 ) go north/south, and evens (like the 10 or 90 ) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, 1-405 services 1-5, and 1-290 services 1-90. Note 200 is not a valid auxiliary highway because 00 is not a valid primary highway number. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west Ex: If the input is; 90 the output is: Ex. If the input is: 290 the output is: I-290 is auxi14ary, serving i90, going east/weat. Ex: if the input is 0 or any number not between 1 and 999 , the output is: a is not a valid interutate highway number. Ex: if the input is: the output is: 200 is not a valid interstate highiway number. See Wikinedia for more info on highway numbering Default Template: import jaya.uti.1. Scanner: public olass Labprogram 1 public atatic void matn (String[l args) 1 Scanner scne - new Scanner (Syatem. in): int highwayNumber; int primaryNumber: highwayNumber - senr. nextint(); 1. Type your code here.. % Your output Auxiliary (290) 1/1 Input Your output 3invalid (0) 1/1 Input Your output 4.Compare output ^ 0/] Output differs: See highlights below. Special character legend 5 Compare output A 2/2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
