Plan and implement a stringed musical instrument class

Assignment Help Computer Engineering
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.

Reference no: EM133384

Questions Cloud

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

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Designing a solution to the problem

Designing a solution to the problem and implementing the design using principles of correct syntax

  Make an employee class with enough numbers of data members

Make an Employee class with enough numbers of data members

  Generate a class name that starts with string variable

Generate a class Name that starts with string variable

  Execute the boolean functions

Execute the Boolean functions

  Write a program based on encryption scheme

Write a program based on encryption scheme.

  What is essential address field width

What is essential address field width

  Describe the term tco

Describe the term TCO

  What does this following algorithm calculate

What does this following algorithm calculate

  Write down an sql statement

Write down an SQL statement

  What is steady-state cpi

What is steady-state CPI

  Prepare a use case diagram

Prepare a Use Case Diagram based on the given problem description.

  What is response time

What is response time

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