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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

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

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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