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

  Write a class that implements an ordered list of strings

In this problem you will write a class that implements an ordered list of Strings.

  Write a class that has three overloaded static methods

Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Develop a gui based java program

Designing and developing a College Registration program

  Write methods in java

1. int countVowels (String s) That for a given string s, return number of vowels in s.

  Executing stringed musical instrument class

Create and execute a stringed musical instrument class.

  Program that counts the number of occurrences of lowercase

Write a program that counts the number of occurrences of lowercase and uppercase vowels in entered lines of text. Use a two-dimensional array to store the vowel counts. The array's first column holds the counts for the lowercase vowels, and the secon..

  Write a recursive program

Write a recursive program to compute the number of ways in which an integer k can be written as sum

  Modify the scholarship application

Modify the Scholarship application so that if a user enters a grade point average under 0 or over 4.0, or a negative value for either of the activities, an error message appears.

  Object-oriented gui drawing editor

A simple object-oriented GUI drawing editor that allows a user to create, move and erase rectangles, squares, circles and lines in an interactive graphics. How can I draw move erase rectangles, squares, circles and lines in GUI/java.

  Write a program that assigns seats on an airplane

Prepare a program that teaches arithmetic to a young child. The program tests subtraction and addition. Write a program that assigns seats on an airplane.

  Java method that contains code to be executed

Write a short Java method that contains code for which it is probably impossible for that code to ever be executed, but your favorite Java compiler does not detect this fact.

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