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

  Windows live id and skydrive account

Suppose there are 1 million books within your campus library. Approximate (to the nearest order of magnitude) how several bytes of the data there are in case all these books were stored online and accessible across the computer network.

  Ethical dialectical process of thinking state

Ethical Dialectical Process of Thinking state

  Preparing a copy of hard drive

After we have the target media prepared and assembled along with all our tools assembled for investigation we should now make a copy of hard drive.

  Public vs. private or regulated vs. non regulated indust

Explain the differences in the information policy for a small organization vs. a large one? Whether you think an information policy may be different in a public vs. private or the regulated vs. non regulated industry?

  Prove correctness for following

Prove correctness for following

  Library management system

Prepare a module which can exhibit the Library Management System

  Similarities and differences to issue of regulation

Describe the relevance of each of these similarities and differences in order to issue of regulation of the Internet.

  Structured query language

Structured Query Language (SQL) refers to the accepted non-procedural language used in order to communicate with all the relational databases.

  Recognizing the instruction format

Memory unit of the computer has 256K words of 32 bits each. The computer has an instruction format along with the four fields: an operation code field, a mode field, to state one of seven addressing modes, a register address field.

  How to generate a hub-and-spoke network

How to generate a hub-and-spoke network

  Determining occurance as incident or disaster

Categorize the following occurrences as an incident or disaster. If an occurrence is a disaster, find whether or not business continuity plans would be called into play.

  Recognizing the threats in the code

State two recent virus threats; whether they are minor or the major threats?

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