Answered step by step
Verified Expert Solution
Question
1 Approved Answer
2 . 1 0 LAB: Branches: Interstate highway numbers Primary U . S . interstate highways are numbered 1 - 9 9 . Odd numbers
LAB: Branches: Interstate highway numbers
Primary US interstate highways are numbered Odd numbers like the or go northsouth and evens like the or go eastwest Auxiliary highways are numbered and service the primary highway indicated by the rightmost two digits. Thus, the services the and the services the
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 northsouth or eastwest
Ex: If the input is:
the output is:
The is primary, going eastwest
Ex: If the input is:
the output is:
The is auxiliary, serving the going eastwest
Ex If the input is:
or any number not between and the output is:
is not a valid interstate highway number.
See Wikipedia for more info on highway numbering.
LAB
ACTIVITY
: LAB: Branches: Interstate highway numbers
Load default template...
tableinteger highwayNumberinteger primaryNumberhighwayNumber Get next input
Step 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