Write a subnet calculator

Assignment Help JAVA Programming
Reference no: EM131651428

Assignment

In Java, write a subnet calculator. Please read over the general assignment requirements before starting this assignment.

Requirements for Assignment Submission

1. You must write a complete program that compiles and runs with command-line javac and java.

2. Incomplete programs or code fragments are unacceptable.

3. Your program must solve the particular programming task required for the assignment.

4. If a program requires multiple source files, they must all be included in the zip file submitted.

5. If the program requires source files that are not part of the built-in JDK package, then you must include them in the zip file.

6. Programs must compile correctly, and be fully tested before submission.

7. All programs must compile from ONE working directory (it can have several sub-directories within it).

8. All programs must include proper explanations and complete headers.

- Explain the code behaviours and/or objectives by using a comment or a block of comments before the appropriate code or block of codes. Doing so will ensure that you can fully understand your code three months later, and it will help other developers/maintainers know what you were thinking while writing the programs.

- The headers for these programs must be contained in a block of comments at the beginning of the programs and functions, including program/function name, description, expected inputs, expected outputs/results, called by whom, and will call what functions.

- All programs must also include (in .doc/.pdf files, not .docx) a complete test plan (e.g., in a table) with test items, inputs, expected outputs, actual outputs, and results/remarks.

Assignment Description:

For any IP address entered, display the Network class, the default (classfull) subnet mask, and the CIDR notation.
Also display how many hosts per subnet, the network address and broadcast address.
For instance, if you enter 199.212.55.7
The result should be:
Network Class: C
Subnet Mask: 255.255.255.0
CIDR: /24
Hosts per subnet: 254
Network Address: 199.212.55.0
Broadcast Address: 199.212.55.255
Bits in Host: 8
Bits in Network: 24
You also need to be able to specify an IP address with a VLSM (variable length subnet mask) or an IP address with a dotted decimal notation subnet mask.
For instance if you enter:
199.212.55.7/16 or 199.212.55.7 255.255.0.0 the result should be
Subnet Mask: 255.255.0.0
CIDR: /16
Hosts per subnet: 65534
Network Address: 199.212.0.0
Broadcast Address: 199.212.255.255
Bits in Host: 16
Bits in Network: 16

Reference no: EM131651428

Questions Cloud

Systematize the management of workers : Identify and briefly discuss the four basic principles. Which principle is most seen in your place of employment?
Calculate the equivalent units of production for materials : Polk Company manufactures basketballs. Materials are added at the beginning of the production process and Calculate the equivalent units of production
Marketing manager of a leading health care organization : As marketing manager of a leading health care organization, you are developing a marketing strategy to inform potential patients
Convert the data for each variable to a z value : Convert the data for each variable to a z value. Consider Mellon Bank Corporation headquartered in Pittsburgh. How does it compare to the average bank.
Write a subnet calculator : Write a subnet calculator and Explain the code behaviours using a comment or a block of comments before the appropriate code
Operational issues in small business administration : Operational issues in small business administration are never ease for small business owners. No matter how hard you try
Research your chosen product using the vendors website : Write a 3 page summary of your research. Research your chosen product using the vendor's website and product information brochures.
Develop a frequency distribution for the board values : Develop a frequency distribution for the board values for the scanner and the manual process.
Describe four potential advantages of budgeting : List and describe four potential advantages of budgeting and four potential disadvantages of budgeting

Reviews

len1651428

9/21/2017 1:00:18 AM

5. Test plan (20%) • If your program does not compile or run, you may receive a mark of "0" for the assignment. • If you use components and/or images from the work of others, you must have their permission to do so, and include proper citations in the program's headers. You also need to get the original author's agreement in writing, and put it in your program. • If you copy the work of others with only a small revision, you may receive a mark of "0" for the assignment. • If plagiarism is discovered, or reported and confirmed, you will receive a mark of "0" for the assignment.

len1651428

9/21/2017 1:00:06 AM

Deliverables: Source code Test plan with report instructions on how to compile and use your program Marking Scheme 1. Program compiles without errors (20%) 2. Correct program execution (20%) 3. Source code / programming style / readability (20%) 4. Documentation (explanations and headers) (20%)

Write a Review

JAVA Programming Questions & Answers

  Creates a new set of animals

When a user creates a new set of animals, they need to be able to add an animal to the set.  They should also be able to update and delete animals in the set.  The organizer should only show one set of animals at a time

  Create a class called employee

Create a class called Employee that has the following attributes: Employee ID of type String, First name of type String, Last name of type String

  Define a class to model linear equation of variables x and y

Define a class to model a linear equation of variables x and y in slope intercept form. A skeleton for this file is provided in the project pack.

  Write player classes that have certain behaviour

Write player classes that have certain behaviour. These classes will lead you along to implementing the players you will need for the project.

  Specify, design and implement a class

Specify, design and implement a class that can be used to hold information about a musical note. Test it with an appropriate driver program.

  Create ten dummy tasks to test with

Your task list should survive configuration changes. Create 10 dummy tasks to test with. Implement drag and swipe to move and delete items in your RecyclerView.

  Write program in java for total amount of customer-s order

Write down program in Java which would ask for clerk to enter total amount of customer's order. Program will then compute seven percent (7%) sales tax.

  Java servlet uses doget to return markup document

Write down Java servlet which uses doGet to return markup document which provides your name, e-mail address, and mailing address along with a brief autobiography.

  Write a program that considers a class that keeps track

Write a program that considers a class that keeps track of the sales of an item. An object of this class will have the following attributes: Design and implement the class in Java.

  What are the main differences between java programming

question 1 what are the major differences between java programming language and any other language? list and discuss

  Java swing components and file processing

Java Swing Components and File Processing, Write a program named GuessGame.java that plays the game "guess the number" as follows. Your program chooses the number to be guessed by selecting an integer at random in the range 1-1000. The program then..

  Small computer system interface-standard computer disk

How many primary drive partitions are supported on computers that still conform to the standard established by MS-DOS? How many total partitions can a standard computer disk [Intergrated Drive Electronics (IDE)/Serial Advanced Technology Attachment (..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd