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

  Related to the polygon

Assume n=3 and P has positive area. Explain how to determine efficiently whether exactly one of the point’s q and r falls inside of P. Analyze how much time is utilized.

  Transforming infix to reverse polish

Transform the following formulas from infix to the reverse Polish: A + B + C + D - E, (A - B) x (C +D) + E

  How to write a report on object-oriented systems

How to write a report on Object-Oriented Systems?

  Key elements of an entry strategy

Write down the key elements of an entry strategy, especially for the high-tech environment? The answer requires to be of at least 300 words. Also include any references

  Determining the bmi

Develop a modular system which determines and display a person’s body mass index (BMI). The BMI is often used to calculate whether a person with the sedentary lifestyle is overweight or underweight for their height.

  Why didn''t the vendor just bid fewer disks

Why didn't the vendor just bid fewer disks

  Designing the decision table

Design a decision table to represent the kind of treatment to be given to the customer of Eye Tunes Music Club. Produce a structured English version on the basis of following dialogue obtained by Systems Analyst from client interview.

  Conducting the forensic investigation

Describe the purpose of several initial reviews being conducted by forensics investigator (e.g., time lines, technical skills, procedures).

  Write a program that reads in a list of positive integers

Write a program that reads in a list of positive integers. Write down a program which asks user to respond to a question by entering either 1 for yes or 2 for no.

  Quantifying the software development

This organization is interested in quantifying its software development. Write down a report proposing suitalbe metrics and propose how these can be collected.

  Average access time of memory system

The access time to cache is 30 nanoseconds. The access time to memory is 120 nanoseconds. The data bus between cache and main memory is 128 bits wide. The hit rate on cache is 95%. 25% of the cache blocks are dirty.Specify the average access time o..

  Centralized and distributed data processing

Discuss in detail the difference between the centralized and the distributed data processing.

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