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

hello, i really need help with my project without any changes in my code i just

ID: 3536281 • Letter: H

Question

hello, i really need help with my project without any changes in my code i just need someone to :

1.Design or do a general structure by a UML diagram or any other way to Describe the major steps in this program (the program contains 8 classes).

2. add programs%u2019 codes. Your code must contain a block comment

describing its purpose, descriptive comments for each of the methods, and

a few in-code comments, where appropriate.

f. Testing: Describe how to test this program along with a block comment

at the end containing sample output.

this is the code:


computer class code:

public class Computer extends ElectronicDevice{

private static int counter =0;

public Computer(String mnfctr, String model, String prcssr, double current, int voltage){

super(mnfctr, model, prcssr, current, voltage);

counter++;

} public static int getCounter(){

return counter;

}

}



Desktop class code:

public class Desktop extends PersonalComputer{

private int PCIslots;

private static int counter = 0;

  

public Desktop(String mnfctr, String model, String prcssr, double current, int voltage, double HDsize, int PCIslots){

super(mnfctr, model, prcssr, current, voltage, HDsize);

this.PCIslots = PCIslots;

counter++;

}

public static int getCounter(){

return counter;

}

public String toString(){

return "A "+ this.getClass() + " " + super.getClass() +" " + super.toString() + "and " + PCIslots + " PCI slots.";

}

}



Device class code:

public class Device{

private String mnfctr;

private String model;

private String prcssr;

private double current;

private int voltage;

private static int counter =0;

  

public Device(){}

public Device(String mnfctr, String model, String prcssr, double current, int voltage){

this.mnfctr= mnfctr;

this.model = model;

this.prcssr = prcssr;

this.current = current;

this.voltage = voltage;

counter++;

}

public String toString(){

return "manufactured by "+ mnfctr +" , model " +model +", using " +current +" amps, at " +voltage +"volts, CPU " + prcssr;

}

public int compareTo(Device device){

return this.mnfctr.compareTo(device.mnfctr);

  

}

public static int getCounter(){

return counter;

}

public String getMnfctr(){

return mnfctr;

}

}

Electronic Device class code:

public class ElectronicDevice extends Device{

private static int counter =0;

// public ElectronicDevice(){}

public ElectronicDevice(String mnfctr, String model, String prcssr, double current, int voltage){

super(mnfctr, model, prcssr, current, voltage);

counter++;

} public static int getCounter(){

return counter;

}}

Explanation / Answer

http://msdn.microsoft.com/en-us/library/vstudio/dd409445.aspx