Question: python In this program you will implement if-else logic with integer manipulation to determine information abcut U.S. interstate highways. Objectives To become proficient with: -


In this program you will implement if-else logic with integer manipulation to determine information abcut U.S. interstate highways. Objectives To become proficient with: - nested if-statements - isolating digits in an integer - relational operators - boolean operators Description Primary US. 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 plimary highway indicated by the rightmost two digits. Thus, the 405 services the 5 , and the 290 services the 90 . Given a highway number, indicate whether it is a primary or auxiliary highway. If auxillary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west. Hint You might want to review section 2.13, and specifically Examples 2.13.1 and 2.13.2 to review how to get the digits in a number. Ex if the input is 90 , the output is: The 90 la primary, going east/went. services the 5 , and the 290 services the 90. 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. Hint You might want to review section 2.13, and specifically Examples 2.13.1 and 2.13.2 to review how to get the digits in a number. Ex. If the input is 90 , the output is: The 90 is primary, going east/west. Ex. If the input is 290 , the output is: The 290 is auxiliary, serving the 90, going east/west. Ex If the input is not 1-999, such as 0 , the output is: 0 is not a valid interstate highway number. See Wikinedia for more info on highway numbering. toed definuf template. AB Activity 3.16.1: REQUIRED - LAB 3D: Interstate highway numbers main ipy Load default template. 1 highway_number =int( input ()) 3 Wype your code here. 4
Step by Step Solution
There are 3 Steps involved in it
To solve this problem youll need to handle different conditions based on the highway number and ... View full answer
Get step-by-step solutions from verified subject matter experts
