Create a java class named headphone

Assignment Help JAVA Programming
Reference no: EM13841066

Create a Java class named HeadPhone to represent a headphone set. The class contains:

? Three constants named LOW, MEDIUM and HIGH with values of 1, 2 and 3 to denote the headphone volume.

? A private int data field named volume that specifies the volume of the headphone. The default volume is MEDIUM.

? A private boolean data field named pluggedIn that specifies if the headphone is plugged in. The default value if false.

? A private String data field named manufacturer that specifies the name of the manufacturer of the headphones.

? A private Color data field named headPhoneColor that specifies the color of the headphones.

? getter and setter methods for all data fields.

? A no argument constructor that creates a default headphone.

? A method named toString() that returns a string describing the current field values of the headphones.

? A method named changeVolume(value) that changes the volume of the headphone to the value passed into the method

Create a TestHeadPhone class that constructs at least 3 HeadPhone objects. For each of the objects constructed, demonstrate the use of each of the methods. Be sure to use your IDE to accomplish this assignment. 

Submission requirements: Your deliverables include your Java files (.java) and a single word document. The Java files should be
named appropriately for your applications. Your word document should include screen shots showing the successful compiling and running of each application, and a detailed description of the test plan for each application. The screen shots should document your successful use of the IDE. The test plan should include the input, expected output, actual output and if the test case passed or failed. Submit your files to the Homework 3a assignment area no later than the due date listed in the calendar.

Reference no: EM13841066

Questions Cloud

Cost structures of various modes of transportation : Discuss how you will apply what you have learned from the article in a professional setting. How does the article relate to real world applications or your business?
Why is an organised communication always more effective : Why is an organised communication always more effective than an unorganised one? Identify and discuss the advantages of organisation and planning in effective communication.
The firm estimates the unique-event risk : Disston Precision is trying to decide whether to use one or two suppliers for the motors than go into the chain saws that the company produces. The firm wants to use local suppliers because it runs a JIT operation. The firm estimates the "unique-even..
Calculate the bullwhip measure for the manufacturer : Consider a supply chain where a manufacturer sells to a distributor who sells to a wholesaler who sells to a retailer. Last year, the retailer's weekly variance of demand was 4000 units. The weekly variance of orders was 5000; 8000; 12,000; and 17,00..
Create a java class named headphone : Create a Java class named HeadPhone to represent a headphone set. The class contains: ? Three constants named LOW, MEDIUM and HIGH with values of 1, 2 and 3 to denote the headphone volume.
Demonstration of cohesive and integrated discussion : Critical evaluation of an epidemiological study design - Demonstration of cohesive and integrated discussion
Theme of the message be for this particular audience : For this assignment, think of a message you would communicate to a group of your employees. (If you are not employed at the moment, then use a hypothetical situation.) As you know, memo format is usually appropriate for communicating to an internal a..
Nutrient sources and their role in health and disease : Nutrient Sources and Their Role in Health and Disease
Estimate the number of repetitions that new service worker : Estimate the number of repetitions that new service worker Irene will require to achieve “standard” if the standard is 19 minutes per repetition. She took 30 minutes to do the initial repetition and 25 minutes to do the next repetition.

Reviews

Write a Review

JAVA Programming Questions & Answers

  What is abstract class and how it differ from regular class

What is an abstract class and how does it differ from a regular class? Why are abstract class constructors defined as protected

  Littlest rebel starring shirley temple

Compare the novel Little Women by Louisa May Alcott and the film The Littlest Rebel starring Shirley Temple. How do these two intertwine or influence each other?

  Develop a graphical user interface

For this assignment, you are required to develop a Graphical User Interface (GUI) Java Program to demonstrate you can use Java constructs including input/output via a GUI.

  Implement all the methods in each of the classes

You need to have an array for this database, the size of this database is given by MAX. You may simply set MAX to be 8 to save your effort in filling information.

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

  What extent do images and themes of daughterhood

What extent do images and themes of daughterhood from your 19th century text influence each other?

  The 7th test of credits

The 7th test of credits? this is the 7th test of credits? this is the 7th test of credits? this is the 7th test of credits?this is the 7th test of credits?this is the 7th test of credits?this is the 7th test of credits?this is the 7th test of credits..

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class library with thousands of predefined classes

The Java Application Programming Interface is a Java class library with thousands of predefined classes

  Once getting into student information menu

Once getting into student information menu, you should be able to see a full list of students' information (first name, last name, SSN, DOB, year and major).

  Create bean jsp program which will compute simple interest

Create the bean which will compute Simple Interest. Use bean in JSP program. Accept details of saving like principal amount, rate of interest, period-in years from user and show amount

  Create the java code for a generic class

Create the Java code for a generic class. The class should contain at least one private data member of a generic type, a constructor which initializes the private data member to the value of a passed in argument, and a getter and setter for the ge..

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