Implementing stringed musical instrument class

Assignment Help Computer Engineering
Reference no: EM1321626

1) Develop and implement the stringed musical instrument class utilizing the following guidelines:

a) Data fields for your instrument must involve the number of strings, an array of string names representing the string names (e.g.E,A,D,G), and boolean fields to estimate if the instrument is tuned, and if the instrument is presently playing. You are welcome to add the additional data fields if you like.

b) A constructor method which set the tuned and currently playing fields to false.

c) Other methods 1) to tune the instrument, 2) to begin the instrument playing, and 3) to stop the instrument from playing.

d) Any other methods as you observe as fit (Add at least one unique method).

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 each of your classes.

3) Create Java classes for your instruments. Be sure that your code matches your design 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 example:

public void playviolin() {
System.out.println("The violin is now playing.");
}

4) Write down the output from your Instrument class methods in order to text file that a user entered from command line arguments (e.g. java Mynamep3tst myfilename.txt). This enables your program in order to accept the filenames from the user through a command line argument.

5) Finally, generate a Java test class which simulates utilizing your instrument class. a) Construct 10 examples of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments.

Reference no: EM1321626

Questions Cloud

Determine an expression for the number of cycles to failure : Determine an expression for the number of cycles to failure, Nf if the initial crack size is a0. State any assumptions you make.
Biggest impact on the demand products : Illustrate what variables other than cost appear to have the biggest impact on the demand products
Proportion test using large sample test : To test whether the significant difference between two proportion test using large sample test.
Properties of a discrete probability distribution : Illustrate that probability distribution of X satisfies properties of a discrete probability distribution.
Implementing stringed musical instrument class : Generate a Java test class which simulates utilizing your instrument class. a) Construct 10 examples of your instrument, b) tune your instruments, c) Start playing your instrument, d) Call your unique method, and e) Stop playing your instruments.
Case study on abercrombie & fitch : Using the objectives below discuss how those objectives apply to Abercrombie & Fitch or any Fashion industry. How has it struggled or succeeded relative to those objectives.
Assumed that brian will spend at least four hours per week : Notice it is assumed that Brian will spend at least 4 hours per week studying each of the 3 courses.
Test statistic value-mean tests in large sample : Find the test statistic value for two mean tests in large sample.
The benefits of outsourcing scm out-shadow the risks : The benefits of outsourcing SCM out-shadow the risks: Hence, the continuous adoption of the outsourcing strategies in modern retail sectors, for improved responsiveness and effectiveness, and increased performance. What is your opinion?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

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

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  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?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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