Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9133798

Have any Question?


Related Questions in Computer Engineering

Case study 1 user interfacesearly user interfaces were

Case Study 1: User Interfaces Early user interfaces were designed with little or no consideration for the end user. This was largely due to technical and hardware limitations. The poor interface design required a specifi ...

List the common development failures and errors that

List the common development failures and errors that results from poor software security efforts

Directionspick one topic for word and one topic

Directions Pick one topic for Word and one topic for PowerPoint to discuss. Word Watermark: What is the purpose of watermark for a document? What do you consider when you work on a watermark in Word? Newsletter: What are ...

Discuss the importance of using an access control model in

Discuss the importance of using an access control model in determining how employees in an organization should gain access to resources.

A five question multiple choice statistics quiz is given

A five question multiple choice statistics quiz is given. Each question has 3 possible choices, only one of which is correct. calculate the probability that of receiving a passing grade on the quiz, by randomly guessing ...

Sql transactions exercisesfor the universal relation rwxyz

SQL Transactions Exercises For the universal relation R(w,x,y,z), consider the decomposition D consisting of R1(w,y,z) and R2(x,y), and the set F of functional dependencies { y->xz ; yz->w ; x->w }. Recall that the proje ...

What are some of the basic principles involved with

What are some of the basic principles involved with utilizing the ADT stack? What are some applications that could effectively utilize a stack?

A researcher knows that the average distance commuting

A researcher knows that the average distance commuting students live from campus was previously 8.2 miles. Because of the rising prices of gasoline, the research wants to test the claim that commuting students now live c ...

Question suppose a payroll system secretly leaks a list of

Question : Suppose a payroll system secretly leaks a list of names of employees earning more than a certain amount each pay period. Who would be harmed by such a vulnerability? How could such a vulnerability come about? ...

For each of the following situations indicate the

For each of the following situations indicate the appropriate distribution to model the random variable, X. 1. Five cards are selected randomly, with replacement from a deck of 52 cards. Let X= the number of kings select ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As