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

  How to name the associative entities

How to name the associative entities

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Security vulnerability

What is the security vulnerability of this solution

  Illustrate the system processed from the viewpoint

Illustrate the system processed from the viewpoint

  Create an employee class with enough numbers

Create an Employee class with enough numbers.

  Is it right that rbac functionality is complicated

Is it right that RBAC functionality is complicated

  Can you suggest process for choosing appropriate data-mining

Consider on how you would know if a computer were thinking like a human.

  What is advantage of payroll scheme approach for the project

What is advantage of payroll scheme approach for the project? What do you think is the most suitable Life Cycle Approach?

  What are prospect trends for healthcare informatics

What are prospect trends for healthcare informatics.

  What is online analytical processing system

What is online analytical processing system

  Write down a program that has a function named presentvalue

Write down a program that has a function named presentValue

  Write a program on simple game

Write a program on simple game.

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