Specify, design and implement a class

Assignment Help JAVA Programming
Reference no: EM13167809

Specify, design and implement a class that can be used to hold information about a musical note. Test it with an appropriate driver program.

A programmer should be able to set and retrieve the length of the note and the value of the note. The length of a note may be a sixteenth note, eight note, quarter note, half note, or a whole note.

A value is specified by indicating how far the note lies above or below the A note that orchestras use in tuning. in counting "how far", you should include both the while and black notes on a piano.

 

+ The default constructor should set a note to a middle C quarter note.

+ Include methods to set a note to a specified length and value.

+ Write methods to retrieve information about a note, including methods to tell you the letter of     the note (A, B , C)

+ Whether the note is natural or sharp (i.e.. white or black on the piano), and the frequency of the note in hertz.
+ To calculate the frequency, use the formula 440 x 2^(n/12) where n is the note number.

 

 

Reference no: EM13167809

Questions Cloud

How many are taking english : In a group of 97 students, the number taking English is twice the number of those taking Math. 53 students are taking one of these subjects and 15 are taking neither. How many students are taking math? How many are taking English?
Define molecules escape from the surface of a liquid : During evaporation, molecules escape from the surface of a liquid and enter the gas phase. This physical change requires an energy input: a molecule cannot become gaseous unless it has sufficient energy to break free of its interactions with neigh..
Describe the changes- shifts made to the graph : Provide an equation with real-number values of a, h, and k, so that your classmates can describe the changes/shifts made to the graph of y = x².
It would be cool if a device was actually part : Have you ever been low on cash and couldn't go beyond a certain dollar limit when shopping? You sort of need a calculator in your head. It would be cool if a device was actually part of the cart and as you add an item into the cart it would increm..
Specify, design and implement a class : Specify, design and implement a class that can be used to hold information about a musical note. Test it with an appropriate driver program.
Describe the ph of a buffer solution consisting : Describe the pH of a buffer solution consisting of 100 mL containing 0.1M CH3COOH and 0.125M CH3COO- , both before and after addition of 10 mL of 0.25M HCl. Ka = 1.8 x 10-5.
Index of the system : I get the critical points are(0,0) and(-2^1/5, 4^1/5). Then I get det(0,0)=2 and det(-2^1/5, 4^1/5)=-10, so index of the system is -8 and the index of periodic orbit is 1, so there's no periodic orbit.
What is the laboratory air pressure in atm : The air in a laboratory was measured with a barometer to be 7.40 x 102 mm Hg. What is the laboratory air pressure in atm?
Determine the variation of temperature within the wall : determine the variation of temperature within the wall and the value of temperature at x=0.1m.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Allows the user to specify a triangle with three mouse press

Write a program that allows the user to specify a triangle with three mouse presses. After the first mouse press, draw a small dot. After the second mouse press, draw a line joining the first two points. After the third mouse press, draw the entir..

  Insert uml design diagrams, use case, classes

Insert UML design diagrams here (use case, class, and sequence diagram).

  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..

  Writing a program that parses

The programming project involves writing a program that parses, using recursive descent, a GUI definition language defined in an input file and generates the GUI that it defines.

  Write a java program using array to auto-grade exams

Write a JAVA program using 2D Array to auto-grade exams. For a class of N students, your program should read letter answers (A, B, C, D) for each student.

  Java-s ability to derive new fonts from existing ones

Find out where on your system these font libraries are located. When you do, please specify the operating system and the location (folder/directory) where you found them. Discuss Java's ability to derive new fonts from existing ones.

  Sequence of method in vector class

Construct a Vector class implementing a number of vector operations as methods along with a testing program to verify the class is working.

  Java application that reads a date in numeric form

Designand write a java application that reads a date in numeric form from a set of three fields and displays it in English within a label. Use appropriate buttons. For Example:

  Write java program that writes names to text file

Create an empty text file called myfile.txt. Write a Java program that writes your names to the text file created. If the file does not exist, include an exception handler for that error.

  Write a class to represent a credit card.

write a class to represent a credit card.

  Design an abstract data type in java

Design an abstract data type in Java that represents a musical pitch

  Define get and set functions and two constructors

Create a class called Building. It will have one data member of type string (used for a postal address). Define get and set functions and two constructors.

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