Using the IDE of your choice, write a program that takes in a highway number and lets the user know if it is a primary or auxiliary highway.
Note:
U.S. interstate highways that are numbered 1-99 are Primary.
highways that are numbered 100-999 are Auxiliary.
Auxiliary highways service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90.
Odd numbers (like the 5 or 95) go north/south.
Even numbers (like the 10 or 90) go east/west.
Given a highway number, indicate whether it is a primary or an auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west.
Ex: If the input is 90, the output would be
I-90 is primary, going east/west.
Ex 2: If the input is 485, the output would be
I-485 is auxiliary, serving I-85, going north/south.
Ex 3: If the input is outside the range, such as 1200, the output would be
1200 is not a valid interstate highway number.
You will need to use if, if-else, and else statements to complete this assignment.
Don’t forget to have blank lines in between each of the output sentences to make it simpler to read (use "\n" or endl)
Don't forget to add comments to your entire program code.
Hello, I will do simplest coding in C++, C using OOP, data structures concepts. If it is an assignment then coding will be easily understandable for u. I have done many C/C++ works here. Lets have a chat for further details and budget. Thanks.
Hello,
i have a good experience of c++ language. I can do this work for you in lesser time with understandable code and comments as you suggested.
you can contact me or message me so, we can start your work asap.
Thanks.
Hi there,
May Allah bless you...??
I have read and understood your requirements. i am willing to generate this code.
grant me the project and i will deliver it to you in less than 2 hours. lets talk about it...
i am waiting for your kind response...