Java class that represents your favorite musical instrument

Assignment Help JAVA Programming
Reference no: EM131104543

Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 5 private data fields, getters and setters for each private data field, a to String() method, and three additional methods of your choice. Create a test class that constructs at least 5 of your musical instrument 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. You can pick any instrument you want. When designing your class, think about what would make sense to describe and use the instrument. For example, if you selected a trumpet, you might need to provide the number of valves, the manufacturer, if the instrument is using a mute, the volume or even notes the trumpet is playing. Make this your own creation and have fun with it.

Reference no: EM131104543

Questions Cloud

A maintenance problem with the control panel : The Avery Co. factory has been having a maintenance problem with the control panel for one of its production processes. This control panel contains four identical electromechanical relays that have been the cause of the trouble.
How does intra period tax allocation affect the reporting : Jose Deleon Investments reported an unusual gain from the sale of certain assets in its 2004 income statement. How does intra period tax allocation affect the reporting of this unusual gain?
Determine the moment about o of the tension t : 2/50 The mechanism of Prob. 2/16 is repeated here. For the conditions () = 40°, T = 150 N, and r = 200 mm, determine the moment about O of the tension T applied by cable AB to point A.
Employee health insurance experience on a spreadsheet : Look ahead at the scenario described in. Obtain a close estimate of the expected cost of insurance coverage for the corporation's employees by performing 500 iterations of a simulation of an employee's health insurance experience on a spreadsheet.
Java class that represents your favorite musical instrument : Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 5 private data fields, getters and setters for each private data field, a to String() method, and three ad..
Ridership demand with the increase : A bus traveling on the HOT lane currently charges $1.50 and has 100,000 riders per day. The transit agency is planning to raise fares to $2.00 and knows that the price elasticity for the bus is -0.21. What is the expected change in ridership deman..
Federov corporation has eight expense accounts : Should Federov report these eight expenses separately in its income statement or simply report one total amount for selling expenses?
Involves trying to find the probability that a project : Reconsider Prob. 10.4-3, which involves trying to find the probability that a project will be completed by the deadline. Assume now that the duration of each activity has a triangular distribution that is based on the three estimates in the manner..
Business practices in the future : What new technologies do you find most fascinating? How might they effect business practices in the future?

Reviews

Write a Review

 

JAVA Programming Questions & Answers

  Design a program that extends the definition of the class

Design a program that extends the definition of the class JFrame to display a window on the screen. Name your class PropertyTax1, title your window "Calculation of Property Taxes," set the window's width to 400 pixels and height to 300 pixels, and te..

  How to link different classes forms

How to link different classes forms. When a person clicks on A, B, or C the program will go to the addEmployee form or Punch In/Out form in Java.

  Which collection class allows you to access its elements

Which collection class allows you to access its elements by associating a key with an element's value, and provides synchronization?

  How can i stop tomcat from spilling off its own detail file

I've setup Tomcat 3.1 with Apache on my web server to serve JSP pages. How can I stop tomcat from spilling off its own detail file path on the server.

  Write an application that enables users to enter student ID

Write an application that enables users to enter student ID and three exam scores. Provide a method to compute and returnthe overall exam average.  Provide another method that prints all scores and the average value formatted with no digits to the ri..

  Javascript validation - cgi program

CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310

  Write a class named test scores

Write a class named TestScores.The class constructor should accept an array of test scores as an argument.The class should have a method that returns the average of the test scores.

  Write java program to evaluate postfix expressions

Write a java program to evaluate postfix expressions containing complex numbers using a stack. This program should contain two classes.

  Reads contents of two vectors

Write a program that reads contents of two vectors, and then displays the sum of these two vectors. The program should prompt the user to enter the size of the vectors first.

  Write a calculator program for integer numbers in java

Write a calculator program for integer numbers in java. The calculator should be able to do addition, subtraction, multiplication, and division for integer numbers.

  Implement a class datetypethat manages a calendar

Implement a class dateTypethat manages a calendar

  Defined the class person to store the name of a person

The methods that we included merely set the name and print the name of a person. Redefine the class Person so that, in addition to what the existing class does

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