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

  Build impressive piece of software to explore data sets

Assemble the GUI interactors and implement the NameSurferEntry class - build an impressive piece of software to explore interesting data

  Design constraintsyour program should confirm to the

design constraintsyour program should confirm to the following constraints.nbsp it shouldinclude at least one example

  Study the code and implement the operator overloading

The Table Q3 on the next page is the code of a class named Circle. Study the code and implement the operator overloading for these relational operators ( , >=) for the Circle class. Then, write a test program that creates two instances of the Circle ..

  Write a java program that accepts a positive long integer

Write a Java program that accepts a positive long integer between 2 to 15, and then using the number, calculate its factorial (n!). Using do-while statement, make sure it only accepts a valid number (between 2 and 15) - if an invalid number is ent..

  How would you categorize this kind of script what resources

write a 200- to 300-word short-answer response to the following bull how would you classify this type of script? bull

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  You are to implement an intrusion detection system in java

you are to implement an intrusion detection system in java. we are assuming all activities are associated with the same

  Alter the prototype form page by javascript function

Alter the prototype form page so that when JavaScript function has verified that all the required fields have been filled, cookie is added to user's computer.

  Become the leading coffee shop in arlington and to be the

primarily my project involves theestablishing of a javanet cafeacute where customers would enjoy coffee as they connect

  Declare another television object called portable

Add to the comment header as indicated at the top of the program.

  Define multi-threaded programming in java using locks

Define Multi-threaded Programming in Java Using Locks, To practice programming cooperating, synchronized multiple threads of execution

  Hasanodddigit that returns whether any digit

d named hasAnOddDigit that returns whether any digit of a positive integer is odd. Your method should return true if the number has at least one odd digit and false if none of its digits are odd. 0, 2, 4, 6, and 8 are even digits, and 1, 3, 5, 7, 9 a..

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