Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Based on the code below, please make a Javadocs that will describe each field an

ID: 3812527 • Letter: B

Question

Based on the code below, please make a Javadocs that will describe each field and method of a class, its diffrent from pseudo code, it should be a list that's written into a word document. each method, attribute, etc should have a discription underneath it and labled by number, not comments in the code.

public class Person {

private String name;
private String address;
private String phoneNumber;

public Person(String name, String address, String phoneNumber) {
this.name = name;
this.address = address;
this.phoneNumber = phoneNumber;
}

public String getAddress() {
return address;
}

public void setAddress(String address) {
this.address = address;
}

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

public String getPhoneNumber() {
return phoneNumber;
}

public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
}

==============================================================

public class Customer extends Person {

private int customerNumber;
private boolean onList;

public Customer(String name, String address, String phoneNum, int number, boolean onList) {
super(name, address, phoneNum);
this.customerNumber = number;
this.onList = onList;
}

public int getCustomerNumber() {
return customerNumber;
}

public void setCustomerNumber(int customerNumber) {
this.customerNumber = customerNumber;
}

public boolean isOnList() {
return onList;
}

public void setOnList(boolean onList) {
this.onList = onList;
}
}

=====================================================

public class CustomerDemo {

public static void main(String[] args) {

Customer customer1 = new Customer("Judy Smith", "123 Maple Lane", "555-305-9876", 1, true);
Customer customer2 = new Customer("Bob White", "456 Oak Road", "555-895-4931", 2, true);
Customer customer3 = new Customer("Garry Goodman", "789 Acorn Avenue", "555-587-2983", 3, false);

System.out.println("Customer 1:");
System.out.println(" Name: " + customer1.getName());
System.out.println(" Address: " + customer1.getAddress());
System.out.println(" Phone Number: " + customer1.getPhoneNumber());
System.out.println(" Customer Number: " + customer1.getCustomerNumber());
System.out.println(" On Mailing List: " + customer1.isOnList());

System.out.println("Customer 2:");
System.out.println(" Name: " + customer2.getName());
System.out.println(" Address: " + customer2.getAddress());
System.out.println(" Phone Number: " + customer2.getPhoneNumber());
System.out.println(" Customer Number: " + customer2.getCustomerNumber());
System.out.println(" On Mailing List: " + customer2.isOnList());

System.out.println("Customer 3:");
System.out.println(" Name: " + customer3.getName());
System.out.println(" Address: " + customer3.getAddress());
System.out.println(" Phone Number: " + customer3.getPhoneNumber());
System.out.println(" Customer Number: " + customer3.getCustomerNumber());
System.out.println(" On Mailing List: " + customer3.isOnList());
}

}

Explanation / Answer

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_101) on Thu Apr 06 22:32:32 CEST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Generated Documentation (Untitled)</title>
<script type="text/javascript">
targetPage = "" + window.location.search;
if (targetPage != "" && targetPage != "undefined")
targetPage = targetPage.substring(1);
if (targetPage.indexOf(":") != -1 || (targetPage != "" && !validURL(targetPage)))
targetPage = "undefined";
function validURL(url) {
try {
url = decodeURIComponent(url);
}
catch (error) {
return false;
}
var pos = url.indexOf(".html");
if (pos == -1 || pos != url.length - 5)
return false;
var allowNumber = false;
var allowSep = false;
var seenDot = false;
for (var i = 0; i < url.length - 5; i++) {
var ch = url.charAt(i);
if ('a' <= ch && ch <= 'z' ||
'A' <= ch && ch <= 'Z' ||
ch == '$' ||
ch == '_' ||
ch.charCodeAt(0) > 127) {
allowNumber = true;
allowSep = true;
} else if ('0' <= ch && ch <= '9'
|| ch == '-') {
if (!allowNumber)
return false;
} else if (ch == '/' || ch == '.') {
if (!allowSep)
return false;
allowNumber = false;
allowSep = false;
if (ch == '.')
seenDot = true;
if (ch == '/' && seenDot)
return false;
} else {
return false;
}
}
return true;
}
function loadFrames() {
if (targetPage != "" && targetPage != "undefined")
top.classFrame.location = top.targetPage;
}
</script>
</head>
<frameset cols="20%,80%" title="Documentation frame">
<frame src="allclasses-frame.html" name="packageFrame" title="All classes and interfaces (except non-static nested types)">
<frame src="com/example/package-summary.html" name="classFrame" title="Package, class and interface descriptions" scrolling="yes">
<noframes>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<h2>Frame Alert</h2>
<p>This document is designed to be viewed using the frames feature. If you see this message, you are using a non-frame-capable web client. Link to <a href="com/example/package-summary.html">Non-frame version</a>.</p>
</noframes>
</frameset>
</html>

I hvae written in html .You can save the html as word doc or in any other format.but advantage with html is you can navigate and click those properties.Save above html in text file as index.html. and open with browser

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote