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

  List the top advantages of migrating to ipv6

List the top advantages of migrating to IPv6

  Program to evaluate case statement

Program to evaluate case statement

  Analysis of network

You are a $10 million consulting company responding to the Request for Proposal for a prospective client. The client seeks an analysis of its existing network in the anticipation of a large merger.

  Write a research report on design of a cisco router

Systems research and investigate novel ideas and applications.

  Providing overview of lane

Describe in scholarly detail an overview of the LANE and explain its place in an organization's network strategy. Answer should be of 300 words and also provide reference.

  Load the file into the parallel arrays

Load the file into the parallel arrays and show the list of customers` names and phone numbers in the alphabetical order.

  How to create a database for music

How to create a database for music? Other entities will be Artist/Group - Attributes will be Name, Year Founded, Origin, Tones and Biography, Track - Attributes will be Number and User's Recommendation and finally Song - Attributes will be Name, ..

  Tcp and udp

UDP and TCP utilize the 1s complement for their checksums. Assume you have the following three 8-bit bytes: 01010101, 01110000, 01001100. Along with the 1s complement schema, how does receiver detect the errors?

  How to produce a function mult-stream

How to produce a function mult-stream.

  The ways to depict constraint graph

The ways to depict constraint graph? illustrate how splitting a domain can be used to solve this problem.

  Mathematics in computing

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

  Write program to calculate pay of different types of employe

Write program to calculate pay of different types of employe

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