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, I-405 services I-5, and I-290 services I-90. It has to be done in python.
1 answer
Question:
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, I-405 services I-5, and I-290 services I-90. It has to be done in python.
Answer:The solution in python. Output: print("0 is not a valid interstate highway number")Explanation:h = int(input("enter highway number: ")) #take highway numberif(h>=1 and h<=99): #for primary highway if(h%2==0): print("I-%d is primary, going east/west" %h) #for even highway number else: print("I-%d is primary, going north/south" %h) #for odd highway numberelif(h>=100 and h<=999): #for auxiliary highway aux=str(h) #convert into string for fetch the rightmost number l=len(aux) #find the length val = aux[l-2]+aux[l-1] #assign value of rightmost two number h = int(val) #convert into integer if(h%2==0): print("I-"+aux+" is auxiliary,"+"serving I-%d, going east/west" %h) else: print("I-"+aux+" is auxiliary,"+"serving I-%d, going north/south" %h)elif(h==0):#for 0 highway number print("0 is not a valid interstate highway number")else: pass
Determine the amount of potential energy of a 5-newton book that is moved to three different shelves on a
bookcase. The height of each shelf is 1.0 meter, 1.5 meters, and 2.0 meters....
This random day based on the idiom, "No rhyme or reason," recognizes
words that have no rhyme and encourages activities performed without a
reason. Name another popular idiom and write about what you think it
means....
the equation 5x +2y=20 represents the cost for a family to attend a play where x = the number of.kids & y=the number of children. find the intercepts & interpret the meaning of each one...
Owls Are Being Tort ured, Kil led at Johns Hopkins for ADHD ‘Research’
Please spread this! This is ANIMAL AB USE. not "research." Please spread the message!...
On february 1, pinn corp., paid $40,000 in advertising expenses for ads that will run in a periodical for the entire calendar year. on july 3, pinn paid $430,000 for anticipated major repairs to their machinery used for business. the repairs will benefit operations for the remainder of the calendar ...
If the economy is in recession with high unemployment and output below potential GDP, then __________________ would cause the economy to return to its potential GDP
A. A tight monetary policy
B. Fewer loanable funds
C. A loose monetary polity
D. Higher interest rates...
2. Why was Oxford, Ohio, chosen by SNCC as the orientation location? Why did
SNCC want to make it clear that the volunteers didn't really have to go if they
didn't want to?...
What does that mean about the densities of the phases of
water?
O
O
The solid state is the most dense, followed by the liquid
state, then the gas state.
The solid state is more dense than the liquid state.
The liquid state is more dense than the solid state.
The gas state is the most dense, followed...
I will give Brainliest!Which fact would be most appropriate to include in a yearbook page about Reeve? A. Reeve created a foundation to help people with disabilities. B. Reeve spent time working with senators. C. Reeve learned to ride horses for a role in a movie. D. Reeve enjoyed playing with his ...