2. Specify, design, and implement a “Note" class that can be used to hold information about a musical note. 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, eighth note, quarter note, half note, or 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 white and black notes on a piano. For example, the note (value) numbers for the octave beginning at middle C are shown as integers here: -8 -6 -3 -1 1 田田 D ED G At BD CDEFGAB -9 -7 -5 -4 -20 2 Write a complete Java program. - 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: a) The letter of the note (A, B, C, ..., G) b) Whether the note is a natural (white key) or a sharp (black key) on the piano c) The frequency of a note in hertz. In order to calculate the frequency, use the formula: 440 * 2n12, where n is the note number.
2. Specify, design, and implement a “Note" class that can be used to hold information about a musical note. 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, eighth note, quarter note, half note, or 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 white and black notes on a piano. For example, the note (value) numbers for the octave beginning at middle C are shown as integers here: -8 -6 -3 -1 1 田田 D ED G At BD CDEFGAB -9 -7 -5 -4 -20 2 Write a complete Java program. - 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: a) The letter of the note (A, B, C, ..., G) b) Whether the note is a natural (white key) or a sharp (black key) on the piano c) The frequency of a note in hertz. In order to calculate the frequency, use the formula: 440 * 2n12, where n is the note number.
Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
Related questions
Question
Can you send output screenshots too please
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY