Reference no: EM133384
Question
Plan and implement a stringed musical instrument class using following guidelines-
a. Data fields for your instrument have to include number of strings, an array of string names representing string names (e.g. E, A, D, G), and Boolean fields to decide if the instrument is tuned, and if instrument is currently playing. You are welcome to add other data fields if you like.
b. A constructor technique that set the tuned and currently playing fields to false.
c. Other methods
1) To tune the instrument,
2) To start the instrument playing, and
3) To stop the instrument from playing.
d. Other methods as you see fit.
2. Create a UML class diagram using a diagram tool (e.g. PPT, Visio) of your choice. Prepare the diagrams and place them in a word document along with a brief description of your class.
3. Create a C# class for your instrument. Be sure that your code matches your propose specifications and some minimal functionality is included. For example, if you called the violin.play() method, you should at least print that the violin is playing. Similar functionality should be supplied when you stop playing, tune or call any of your methods. For case-
public void playviolin() {
Console.WriteLine("The violin is now playing.");
}
4. At last, create a C# test class that simulates using your instrument class. In your test class be you must at a minimum: a) Construct 10 instances of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments.
5. Your programs should compile and run without errors.
6. be sure to test your program suspiciously. Provide a list of comprehensive test cases used to validate your application and include these test cases in your word document containing your UML class diagram and descriptions. Your test data be able to be shown in a table that contains input data, expected output, actual output and pass or fail results from test.
Is the plant a partnership for federal income tax purposes
: Consider the plant may elect out of Subchapter K...are mary, louise and nell subject to the self-employment tax on their distributive shares of the plants earnings, considering the output was purchased by mary, louise and nell rather than being di..
|
Program with a function that returns a random integer
: Program with a function that returns a random integer
|
Describe change
: effective change management, Marvin Weisboard's Six Box Organisation Model, theories of motivation, ‘person' variables affect behaviour in organisations' skills, attitudes, personalities, perceptions, attitudes and values, group
|
What factors influenced your decision
: In which fund or funds, would you report the transactions related with the federal grant and school district match? Would they be accounted for in the same fund? What factors influenced your decision?
|
Plan and implement a stringed musical instrument class
: Plan and implement a stringed musical instrument class
|
How to create an encryption absolutely unbreakable
: How to create an encryption absolutely unbreakable
|
What is the increase or decrease in liabilities
: What is the increase or decrease in liabilities of Hodges as of October 31, 2013?
|
Use jsp to prepare an amortization table for a loan
: Use JSP to prepare an amortization table for a loan
|
Program on bst
: Program on BST
|