• I the user enters 4, prompts the user and inputs a decimal MAC address, Enter Decimal Integer: 207 Decimal Number: 207 removes colons from the MAC address, invokes convertMacAddress method, and displays results If the user enters 5, terminates the program • If the user enters any character other than a 1, 2, 3, 4, or 5, displays the following error message: Error: Please enter valid input, and allows the user to reenter a Binary Number: CF 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address 5- Exit valid choice. ample Output: Enter Choice: 3 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Decimal IP Address (i.e. 192.168.35.10): 192.168.25.140 3- Convert Decimal IP Address to Binary IP Address Decimal IP Address: 192.168.25.140 4- Convert Decimal MAC Address to Hexadecimal MAC Address Binary IP Address: 11000000.10101000.11001.10001100 5- Exit 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Choice: 9 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address 5- Exit Error: Please Enter Valid Input 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Choice: 4 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address Enter Decimal MAC Address (i.e. 203:65:157:93:13:7): 26:107:188:269:192:13 5- Exit Decimal MAC Address: 26:107:188:269:192:13 Hexadecimal MAC Address: 1A:6B:BC:10D:CO:D Enter Choice: 1 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number 3- Convert Decimal IP Address to Binary IP Address Enter Decimal Integer. 64 Decimal Number: 64 Binary Number: 1000000 4 - Convert Decimal MAC Address to Hexadecimal MAC Address 5-Exit 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Choice: 5 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address 5- Exit Enter Choice: 2
• I the user enters 4, prompts the user and inputs a decimal MAC address, Enter Decimal Integer: 207 Decimal Number: 207 removes colons from the MAC address, invokes convertMacAddress method, and displays results If the user enters 5, terminates the program • If the user enters any character other than a 1, 2, 3, 4, or 5, displays the following error message: Error: Please enter valid input, and allows the user to reenter a Binary Number: CF 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address 5- Exit valid choice. ample Output: Enter Choice: 3 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Decimal IP Address (i.e. 192.168.35.10): 192.168.25.140 3- Convert Decimal IP Address to Binary IP Address Decimal IP Address: 192.168.25.140 4- Convert Decimal MAC Address to Hexadecimal MAC Address Binary IP Address: 11000000.10101000.11001.10001100 5- Exit 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Choice: 9 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address 5- Exit Error: Please Enter Valid Input 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Choice: 4 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address Enter Decimal MAC Address (i.e. 203:65:157:93:13:7): 26:107:188:269:192:13 5- Exit Decimal MAC Address: 26:107:188:269:192:13 Hexadecimal MAC Address: 1A:6B:BC:10D:CO:D Enter Choice: 1 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number 3- Convert Decimal IP Address to Binary IP Address Enter Decimal Integer. 64 Decimal Number: 64 Binary Number: 1000000 4 - Convert Decimal MAC Address to Hexadecimal MAC Address 5-Exit 1- Convert Decimal Number to Binary Number 2- Convert Decimal Number to Hexadecimal Number Enter Choice: 5 3- Convert Decimal IP Address to Binary IP Address 4- Convert Decimal MAC Address to Hexadecimal MAC Address 5- Exit Enter Choice: 2
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Help me on C# please.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 5 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY