Question: can anyone help me solve this? File Edit Format Run Options Window Help Python 3.11.1 (tags/v3.11.1: a7a4501, Dec 62022,19:58:39 ) [MSC v.1934 64 bit (AMD64)]

can anyone help me solve this?  can anyone help me solve this? File Edit Format Run Options
Window Help Python 3.11.1 (tags/v3.11.1: a7a4501, Dec 62022,19:58:39 ) [MSC v.1934 64

File Edit Format Run Options Window Help Python 3.11.1 (tags/v3.11.1: a7a4501, Dec 62022,19:58:39 ) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license ()" for more information. Get and check input. ... highway number = int (input ("Enter highway number: ")) ... II highway number 999 : ... print (' i) is not a valid highway number'. format (highway number)) quit () A Type + serving ... if highway number >100 .. road type 'auxiliacy' serving = str (highway number 8100) ... eliae: ... road type - 'primary' serving - ... Direction ... If highway number 82=0 : .. going = teata/west. ... elde: ... going - 'north/isouth' ... I Create output output =11111. format (hitghway number), "is', road type +,1 W. If serving: ... output. extend (l'serving', 'I-(1,', tormat (sorving) I) ... output, extend (' 'going', goingl) This is the code for an interactive version of the interstate highway problem in Homework 05 : interstatehighway interactive.Ry (will be available to download on Monday 02/27 after Homework 05 is due) (Instead of directly printing the information of a highway number, the interactive version - keeps asking the user for a highway number until the number they enter is valid, - then asks the user if they want to know the type or the direction of the valid highway number, and - finally prints the correspondgg information. For more details on how the program works, check out the lecture from Monday 02/27. For this homework, you need to organize the code by defining two functions: 1. The first function is called get_highway_number and its job is to get a valid highway number from the user. 2. The second function is called print_highway_info and its job is to print the type or the direction. The two functions should be called from a main function, and there should be nothing else in the main function. Eventually, the structure of the code should look like this: def get_highnay nunber () i H Type your code here and delete the next Iine pass def print highway info( n) : \# Type your code here and delete the next lane pass If nane nw " nain_": n= get highway nuaber () print bighiay info(n) File Edit Format Run Options Window Help Python 3.11.1 (tags/v3.11.1: a7a4501, Dec 62022,19:58:39 ) [MSC v.1934 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license ()" for more information. Get and check input. ... highway number = int (input ("Enter highway number: ")) ... II highway number 999 : ... print (' i) is not a valid highway number'. format (highway number)) quit () A Type + serving ... if highway number >100 .. road type 'auxiliacy' serving = str (highway number 8100) ... eliae: ... road type - 'primary' serving - ... Direction ... If highway number 82=0 : .. going = teata/west. ... elde: ... going - 'north/isouth' ... I Create output output =11111. format (hitghway number), "is', road type +,1 W. If serving: ... output. extend (l'serving', 'I-(1,', tormat (sorving) I) ... output, extend (' 'going', goingl) This is the code for an interactive version of the interstate highway problem in Homework 05 : interstatehighway interactive.Ry (will be available to download on Monday 02/27 after Homework 05 is due) (Instead of directly printing the information of a highway number, the interactive version - keeps asking the user for a highway number until the number they enter is valid, - then asks the user if they want to know the type or the direction of the valid highway number, and - finally prints the correspondgg information. For more details on how the program works, check out the lecture from Monday 02/27. For this homework, you need to organize the code by defining two functions: 1. The first function is called get_highway_number and its job is to get a valid highway number from the user. 2. The second function is called print_highway_info and its job is to print the type or the direction. The two functions should be called from a main function, and there should be nothing else in the main function. Eventually, the structure of the code should look like this: def get_highnay nunber () i H Type your code here and delete the next Iine pass def print highway info( n) : \# Type your code here and delete the next lane pass If nane nw " nain_": n= get highway nuaber () print bighiay info(n)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!