Question: LAB ACTIVITY 3 . 1 2 . 1 : LAB: Interstate highway numbers r 7 0 1 0 Primary U . S . interstate highways
LAB
ACTIVITY
: LAB: Interstate highway numbers
r
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, services and services I Note: is not a valid auxiliary highway because 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 northsouth or eastwest
Ex: If the input is:
the output is:
I is primary, going eastwest
Ex: If the input is:
the output is:
I is auxiliary, serving I going eastwest
Ex: If the input is:
the output is:
is not a valid interstate highway number.
Ex: If the input is:
the output is:
is not a valid interstate highway number.
See Wikipedia for more info on highway numbering.
Run
History
Tutorial
main.py
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
