Questionplan and implement a stringed musical instrument

Assignment Help Computer Engineering
Reference no: EM13349433

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: EM13349433

Questions Cloud

Question mary louise and nell each have their own computer : question mary louise and nell each have their own computer equipment and retail store. they purchase a plant together
Question1 write down a program with a function that returns : question1. write down a program with a function that returns a random integer between 0 and an integer supplied as an
Question 1part adescribe change discriminate clearly : question 1part adescribe change. discriminate clearly between deliberate change and accidental change.change is often
Question a school district gets a grant from the federal : question a school district gets a grant from the federal government to support programs directed at special needs
Questionplan and implement a stringed musical instrument : questionplan and implement a stringed musical instrument class using following guidelines-a. data fields for your
Question1 decrypt the following encrypted quotation by : question1. decrypt the following encrypted quotation by shakespeare.fqjcb rwjwj vnjax bnkhj whxcq nawjvnfxdu mbvnu
Question given the subsequent list of accounts determine : question given the subsequent list of accounts determine total assetsaccounts receivable - 5000capital stock -
Questionuse jsp to prepare an amortization table for a loan : questionuse jsp to prepare an amortization table for a loan. create a html form that uses-1. textbox to enter loan
Questionprogramming assignment on bstthis program requires : questionprogramming assignment on bstthis program requires you to apply a binary search tree with the following

Reviews

Write a Review

Computer Engineering Questions & Answers

  Questiona consider on how you would know if a computer were

questiona. consider on how you would know if a computer were thinking like a humanb. someone with very little knowledge

  Difference between encapsulation and information hiding

define the difference between encapsulation and information hiding. In addition, I need to explain the role both of these concepts play in helping to make designs more robust and extensible.

  Create an application for a furniture company

Write down an application for a furniture company; the program determinds the price of a table, Ask the user to choose 1 of pine, 2 of oak, or 3 of mahogany.

  Write a program called a2p1 to run in the lc-3 simulator

Write a program called A2P1 to run in the LC-3 simulator. The program asks for the user to type in his or her UPI. Then the program asks for the age of the user and prints the UPI out that many times.

  Analyze running time of algorithm

Analyze running time of algorithm

  Generate a unique identification number for each object

Generate a unique identification number for each object instantiated from this class. Use a static data member to keep track of the identification number last assigned to an object so that duplications will not occur.

  Valuing the health care

Find the best way in order to leverage value from the health IM / IT investments in today’s health care environment. Give some specific examples in order to support your response.

  Use the master theorem to solve bound

Prove bound is right using the substitution (induction) method

  What cryptographic technology is used to verify an identity

What cryptographic technology is used to verify an identity and provide asurance that encryption keys provided in a message belongs to the verified individual?

  Indicating the main factors that influenced policy decision

Hardware maintenance is usually provided by a defined service contract negotiated between the organization purchasing the hardware and the vendor selling the hardware.

  How to create a javascript program

Create a JavaScript program that declares and prints an array that contains at least 20 of your favorite songs. For each song, determine the best means for storing the year it was published.

  Thadvantages and disadvantages of using pass by reference

Discuss the pros and cons of static and dynamic allocation of memory in embedded applications. Be certain to address the circumstances under which there might be potential problems.

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