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

Design and implement a set of classes that define various types of electronics e

ID: 3534871 • Letter: D

Question

Design and implement a set of classes that define various types of electronics equipment (computers, cell phones, pagers, digital cameras, etc). Include data values that describe various attributes of the electronics, such as weight, cost, power usage, and the names of the manufacturers. Include methods that are named appropriately for each class and that print an appropriate message. Create a main driver class to instantiate and exercise several of the classes.



**** I also need a design, in addition to the code to be written for this program**


***I need this program to be able to compile properly, when I run this in Eclipse***


****I need this program to be written within the next hour****

Explanation / Answer

I am giving the code for cameras. You can similarly write teh code for the others :)


public class Equipments
{
public static void main(String[] args) throws IOException
{
cameras camera = new cameras();
System.out.println(camera);
}
}

class camera_class
{
static String cam1val[]=new String[3];

public cameras()
{
cam1val[0] = "1499";
cam1val[1] = "Sony";
}
public String toString()
{
return cam1val[0]+", "+cam1val[1];
}
}

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