ITP 150 Fall 2021 MAC Address Checker Programming Assignment 1 Makeup 80 Points For Programming Assignment 1, we are going to code a MAC address checker based on examples we have covered in class up...

I want this program written by the end 8:00 PM



ITP 150 Fall 2021 MAC Address Checker Programming Assignment 1 Makeup 80 Points For Programming Assignment 1, we are going to code a MAC address checker based on examples we have covered in class up through Module 4. This script requires loops (while and for) and if statements and String()methods. We are going to use a sentinel value loop (while loop) to ask the user if they want to run the program by entering a Y or to enter a value of N to stop the program. Be sure to use a function that ensures that both lower case y and upper case Y will run the program. Within the sentinel value loop, we are going to check for the following requirements: · The length of the MAC address must be 17 characters . · The MAC address must include 6 pairs of hexadecimal numbers separated by a . (dot). NOTE: YOU CAN NOT USE REGULAR EXPRESSIONS FOR THIS PROGRAMMING ASSIGNMENT EVEN IF YOU KNOW WHAT THEY ARE AND HOW TO USE THEM. No imports of re (re is the Regular Expressions Python library). While you are going to ask the user to input the MAC address like this example 01.23.45.67.89.AB, when the user enters a valid MAC address, you will also convert it to this format: 0123.4567.89AB and display it for the user to see. When your user gives a valid MAC address, display the following where the __ will show the values entered by the user. MAC Address As Entered __.__.__.__.__.__. Here is another format for a MAC Address ____.____.____ Your MAC address has a correct length, and valid hexadecimal pairs separated by dots. Then ask them if they want to run the program again or not as shown in the test cases. Here is a list of the scripts most useful for coding this assignment, but don’t take that to mean that other scripts are not useful as well:login_name.py, split_a_date.py, telephone_number.py, breaks_and_continue.py, sentinel_value_loop.py Here is a list of the error messages to use: When someone enters an incorrect length (replace the __ with the invalid length): Invalid length. Your MAC address has a length of __ . When someone enters something that results in an invalid pair: You have at least one invalid pair of hexadecimal numbers. When someone enters an invalid number of dots (replace the _ with the count of dots entered): Invalid count of dots is _ . When someone enters an invalid character (replace the _ with the invalid character). Invalid character of " _ " was found. Depending on what the user enters, they may receive more than 1 error message (see test cases). So that you understand the requirements, please see the test cases below used and use these test cases for your program but your program should run for similar test cases and not just these. Don’t hard code something in like if mac_address == 01.23.45.67.89.AB because that won’t require that you show me you know how to count the length of a String, check each character in a String to see if it is valid, count the dots in a String, etc. Below is how the program will run and test cases to test the functionality of each requirement. Your program must follow these requirements so as to prevent you from picking up a similar program on the Internet and submitting it as your own work. Use the test cases of the program as shown below to check for valid and invalid entries based on what we are able to do at this point in the class. Remember that your program should detect valid MAC addresses, and invalid MAC addresses that have the wrong length, less or more than 5 …dots, and invalid characters no matter which order in which the user enters valid or invalid addresses. User input is shown in RED: This is a MAC address checker. Enter Y to run the program or N to stop. Y This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 01.23.45.67.89.AB MAC Address As Entered 01.23.45.67.89.AB Here is another format for a MAC Address 0123.4567.89AB Your MAC address has a correct length, and valid hexadecimal pairs separated by dots. This is a MAC address checker. Enter Y to run the program again or N to stop. Y This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 01.23.45.67.89.A Invalid length. Your MAC address has a length of 16 . The length of the MAC address must be 17 characters. You have at least one invalid pair of hexadecimal numbers. Let's try again. This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 0123456789ABCDEF0 Invalid count of dots is 0 . You have at least one invalid pair of hexadecimal numbers. Let's try again. This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 01..23.45.67.89.AB Invalid length. Your MAC address has a length of 18 . The length of the MAC address must be 17 characters. Invalid count of dots is 6 . You have at least one invalid pair of hexadecimal numbers. Let's try again. This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 01.23.45.67.89. B Invalid character of " " was found. You have at least one invalid pair of hexadecimal numbers. Let's try again. This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 01.23.45.67.89.ZB Invalid character of " Z " was found. You have at least one invalid pair of hexadecimal numbers. Let's try again. This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): ...AB.CD.EF.12345 Invalid count of dots is 6 . You have at least one invalid pair of hexadecimal numbers. Let's try again. This MAC address checker is checking for the following: The length of the MAC address must be 17 characters . The MAC address must include 6 pairs of hexadecimal numbers separated by a . Please enter the MAC address (example: 01.23.45.67.89.AB): 01.23.45.67.89.AB MAC Address As Entered 01.23.45.67.89.AB Here is another format for a MAC Address 0123.4567.89AB Your MAC address has a correct length, and valid hexadecimal pairs separated by dots. This is a MAC address checker. Enter Y to run the program again or N to stop. N Thanks for using our MAC address checker. We are adding more features in the future
Sep 26, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here