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

  Create a table that depicts the runtime for arrays

Create a table that depicts the runtime for arrays of length 1 to 10. Would you expect the general runtime to be O(n), O(n2), O(n3), or some other function of n? Explain

  Design a small wbis using elements from the disciplines

Design a small WBIS using elements from the disciplines of web design, database design, software engineering and object modelling;be able to develop a small WBIS using HTML forms, Java Servlets and cookies.

  Employee type and the number of hours

Write a program that calculates the salary for the employee. The hourly rate for permanent staff (P) is 200, contract staff (C) is 150 and temporary staff (T) is 100. The program accepts the employee type and the number of hours the employee work.

  Java code that needs to be coded-complex number class

Just a Java Code that needs to be coded. Your given the design, just needs the methods and such to be fixed. This is for a Complex Number class.

  Write a recursive public method

Write a recursive public method in our BST class that returns a reference to the information in the node containing the smallest value in the tree. The signature of the method is

  Task 1a define and describe the steps to program

task 1a. define and describe the steps to program development.b. what is an algorithm? discuss and provide examples

  Write a java program called numbers

Methods Lab   1. Write a Java program called Numbers that calls the following methods and displays the returned value: o Write a method called cubeIt that accepts one integer parameter and returns the value raised to the third power as an integer.

  Define a car structure type

For this assignment you will write a program that determines which of a set of rental cars the user can rent for a user-specified rental rate. The rental car data is contained in a text file which will be fed into your program using stdin redirect..

  1 comparing portions of strings write an application that

1. comparing portions of strings write an application that uses string method region-matches to compare two strings

  Implement the lexical and syntactic analysis

Implement the lexical and syntactic analysis of Minifun programming language.

  Most of the companies use virtualization to make test

write a 200- to 300-word short-answer response to the following many companies use virtualization to create test

  Aims1 to understand actual communication with an smtp

aims1. to understand actual communication with an smtp server can be achieved using tcp sockets.2. to understand the

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