Project #22987 - Program 1 - MAC Address Checker

Every network card has a unique MAC address. The proper form of this is a set of six hex digit pairs separated by colons, such as 1A:2B:3C:4D:5E:6F. You will write a short script that should take a MAC address as a command line argument and analyze it. You should first try to validate that the format of the input value is correct: it should be the correct length, have colons in the proper positions, have two digits between colons, and have only hexidecimal digits, no other characters are allowed. If the address is not valid, you should print out specific messages about what is wrong with it. If the address is correctly formatted, then you should print out the manufacturer of the card based on the table below. The first three hex pairs are unique to a manufacturer. If the prefix is not in the table, print that the manufacturer is unknown (these are not the only prefixes assigned to these companies, just the only ones you need to check for). Make sure that you properly comment your code and include a few sample outputs of your programs on test addresses.

Prefix - 00:00:0C   Cisco

Prefix - 00:00:43   Microtech

Prefix - 00:00:97   EMC

Prefix - 10:40:F3   Apple

Prefix - 2C:41:38   Hewlett Packard

Prefix - 00:24:E8   Dell

Prefix - 00:0D:72   2Wire

Prefix - 00:10:4B   3Com

Subject Computer
Due By (Pacific Time) 02/19/2014 12:00 am
Report DMCA
TutorRating
pallavi

Chat Now!

out of 1971 reviews
More..
amosmm

Chat Now!

out of 766 reviews
More..
PhyzKyd

Chat Now!

out of 1164 reviews
More..
rajdeep77

Chat Now!

out of 721 reviews
More..
sctys

Chat Now!

out of 1600 reviews
More..
sharadgreen

Chat Now!

out of 770 reviews
More..
topnotcher

Chat Now!

out of 766 reviews
More..
XXXIAO

Chat Now!

out of 680 reviews
More..
All Rights Reserved. Copyright by AceMyHW.com - Copyright Policy