Question: Problem Description and Given Info Primary U . S . interstate highways are numbered 1 - 9 9 . Odd numbers ( like the 5
Problem Description and Given Info 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 Write define a function named printhighwayinfo, that takes as its only argument a highway number you can safely assume that the arguments will always be an integer When this function is called, it should print out a string indicating if the highway is a primary or auxiliary, and if the highway goes eastwest or northsouth see examples below Examples: 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 printhighwayinfo will print The is primary, going eastwest printhighwayinfo will print The is auxiliary, serving the going eastwest printhighwayinfo will print The is auxiliary, serving the going northsouth You may wish to write some additional code to test your function. Please be sure that you delete or comment out any test code before you submit your solution. The only code in your solution when you submit should be the required function definition.
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
