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

Previous Q& A

  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

  What are the main ethical issues of marketing

What are the main ethical issues of marketing Identify and explain the various steps in the marketing research process

  Evaluate the economic order quantity for glass

Determine total annual cost of ordering and carrying the glass. Evaluate the Economic Order Quantity for glass.

  Law and legal methods

mechanisms of ADR, judicial review, subsidiary legislation, valid contract, types of contract, Judicial Review Action

  Evaluate the brocks individual tax return

Evaluate the Brock's individual tax return

  Calculate the die cost

Calculate the die cost

  Estimated federal tax payments

Prepare a seven - year forecast of net operating income for the Sated Satyr Apartments

Reviews

Write a Review

 

Similar Q& A

  Prepare a use case diagram

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

  How to compare and evaluate speeds of dsl and cable modem

How to compare and evaluate speeds of DSL and cable modem Make a diagram of the DSL and Cable Modem connections to your ISP, cable organization, and telecom to your home router using Visio or its open source another software.

  Program on strings s1 and s2

Program on strings s1 and s2.

  What are the errors

What are the errors

  Identify connectivity of each relationship

Identify connectivity of each relationship

  What are three goals of safety in computing?

What are three goals of safety in computing?

  Write down a program on visual basic format

Write down a program on visual basic format

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

  What is the goal to exercises in the bluej textbook

What is the goal to exercises in the BlueJ textbook? For the remains of the course, you will answer the questions posed by BlueJ textbook-you will not require downloading an additional worksheet and filling it in as you did for first four units.

  What is best-case complexity of the algorithm

What is best-case complexity of the algorithm?

  Create a program that displays all of numbers in the file

Create a program that displays all of numbers in the file

  Illustrate a 4-d hypercube network

Illustrate a 4-D hypercube network

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