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

  Assignment covers the following eight topics and explore

assignment covers the following eight topics and explore the implementation of memory management processes and threads.

  Explain why 802.11b is the first popular standard

the first widely popular standard and still by far most used by IT industry today.

  Questionmicroprocessor - motorola 68k assembly language1

questionmicroprocessor - motorola 68k assembly language1. hardware an 8 bit printer port is at location 2000. cpu will

  What may cause the loss of one control file

Why must a business have its database in ARCHIVELOG mode?

  Obtains the choice and show action based on that choice

Implements a switch: show the user three choices, obtains the choice and display an action based on that choice. One of the actions will include an if..else. Also include a default for incorrect choices.

  Compute a discount that customers receive

find a discount that customers receive based on the value of their order. If the total amount ordered is less than $20.00, no discount will be given.

  Differences between wats and leased lines

What are some of the challenges being faced by organizations as they implement voice and data into a network.

  Write down a html script that plays a "guess the number"

The program selects the number to be guessed by selecting a random integer in the range of 1 to 1000. The script displays prompt "Guess a number between 1 and 1000" next to a text field.

  What are the differences between two standards

One recent change in web design is the shift in standards from HTML to XHTML. Describe how a web designer defines a page as "XHTML" as opposed to "HTML" and find two different types of XHTML standards. What are the differences between these two st..

  Make a visual studio 2008 asp .net web site

make a Visual Studio 2008 ASP .NET Web Site with two Web Forms. Add a DropDownList server control and a Label server control to the first Web Form.

  Bus collision avoidance protocol

Before effective Ethernet switching existed, some network designers are used an alternative bus collision avoidance protocol termed as the token bus protocol.

  Design a class named productionworker

The workday is divided into two shifts: day and night. The shift field will hold an integer value representing the shift that the employee works. The day shift is shift 1 and the night shift is shift 2. make the appropriate accessor and mutator met..

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