Great Deal! Get Instant $10 FREE in Account on First Order + 10% Cashback on Every Order Order Now

Project 5 Purpose: ● Gaining technical skills using Python Directions: ● Scenario: IPv4 addresses (used to communicate on a network) have 4 numbers with 3 decimal points between them with each...

1 answer below »
Project 5
Purpose:
● Gaining technical skills using Python
Directions:
● Scenario: IPv4 addresses (used to communicate on a network) have 4
numbers with 3 decimal points between them with each number being called
an octet. For example, XXXXXXXXXXis an octet, 2 is an octet, and so on. The
first octet has to have values between 1-255 while the 2nd-4th octets can
have values between XXXXXXXXXXThe IP addresses are divided into classes A, B,
C, D and E based upon the value of the first octet. See the table below.
Students preparing for the CompTIA A+ certification (those taking CTS1131
Computer Home/Small Office Essentials and CTS1132 PC Technician who
are majoring in CIT, Networking or IT Security) will have the following options
to choose from in preparing to study these concepts and need to focus on
class A, B and C:
○ 1. Identify the class: Given an IP address, the user answers with
an "A", "B" or "C".
○ 2. Provide the default subnet mask: Given an IP address, the use
answers with the appropriate default subnet mask.
○ 3. Exit: The program ends.
● Once the user selects one of the options, it will initially state what option it is
and provide the question related to that option. When the user types in an
answer, the program will tell them whether they were co
ect or inco
ect and
then give them another question. If the user types in "q", it will take them
ack to the main menu. If the user hits Enter without typing anything, the
user is re-prompted with the same prompt.
Class Octet
Range
Default Subnet Mask
A 1-127* XXXXXXXXXX
B XXXXXXXXXX
C XXXXXXXXXX.0
*127 is loopback and some people do not consider it to be part of class A.
For the purposes of this assignment, it'll be part of Class A.
● Create the python program that solves the problem in the scenario. Make
sure to format it as seen in the screenshot below. Formatting means the
prompts for the user should be spelled and written the same way as seen in
the screenshot as well as the spacing between outputs (single-spaced,
double-spaced, etc.) should also match. Make sure variable values are
formatted the same way as seen in the screenshot.
● Any task that will be repeated over and over should be put in its own function.
Each function should logically do one thing and only that well. Make sure to
divide your program appropriately into functions. Any program that doesn't
use functions or only uses one function (such as a main function) will earn a
0.
● You MUST create and use the following functions EXACTLY as specified as
the instructor will review this methods but also run test cases against them:
○ whatClass(address) - where address is the IP address and the
function returns the result of whether the given IP address is a
Class A, B or C address
○ whatSM(address) - where address is the IP address and the
function returns the result of the subnet mask for the given IP
address.
○ generateRandomIP() - which generates a random IP address and
eturns it.
● Make sure to follow good programming practices as mentioned in Good and
Bad Programming Practices.
● You should only use modules/li
aries we have covered thus far.
● If the program doesn't put the code appropriately into functions, the grade will
automatically be a 0.
Grading:
● Make sure to review the grading ru
ic prior to submitting your assignment to
ensure you have completed everything to the appropriate standard. The
grading ru
ic is below this assignment's directions.
● If the program doesn't put the code appropriately into functions, the grade will
automatically be a 0.
● Make sure to test your program to ensure it works for all possible test cases
(assuming appropriately formatted CSV files). Your instructor will run you
program against different test data and part of your grade will be based upon
how your program performs on these test cases.
GRADING RUBRIC BELOW
Answered Same Day Oct 14, 2022

Solution

Rakesh answered on Oct 15 2022
47 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here