Executing stringed musical instrument class

Assignment Help JAVA Programming
Reference no: EM1345880

This project focuses on demonstrating your understanding of classes and objects. Before attempting this project, be sure you have completed all of the reading assignments listed in the syllabus to date, participated in the weekly conferences, and thoroughly understand the examples throughout the chapters. The project requirements include:

1. Create and execute a stringed musical instrument class using the following guidelines:

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

b. A constructor method 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 (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 the output from your Instrument class methods to a text file that a user entered from the command line arguments (e.g. java Mynamep3tst myfilename.txt). This allows your program to accept filenames from the user via a command line argument.

5. Finally, create a Java test class that simulates using your instrument class. In your test class be you should 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. (Hint: Arrays and Loops will make your job easier and result in more efficient code!)

6. Your programs should compile and run without errors.

7. Be sure to test your program carefully. Provide a list of comprehensive test cases used to validate your application and include these test cases in your word document containing your UML diagrams and descriptions. Similar to Project 1, your test data can be shown in a table that includes input data, expected output, actual output and pass/fail results from the test.

Reference no: EM1345880

Questions Cloud

Analyzing the financial performance of the city : You are in a new city council person for the City of Scottsdale, Arizona. You are aware that many cities have been in the news recently for financial crises for which the council or board is being held accountable.
What constant torque will be required to bring it up : A sanding disk with rotational inertia 8.1 x 10-3 kg·m2 is attached to an electric drill whose motor delivers a torque of magnitude 20N·m about central axis of the disk. About that axis and with torque applied for 29 ms, what is the magnitude of (..
Question based onintercultural communication : Intercultural Communication: Interpreting Phrases In Different Languages - explain how can someone in a non-dominant culture interpret the squeaky wheel gets the grease
Multiple choice questions on managerial finance : What yearly rate of return would Grandma Zoe need to earn if she deposits dollar 1,000 per month into an account starting one month from today in order to have a total of $1,000,000 in thirty years ?
Executing stringed musical instrument class : Create and execute a stringed musical instrument class.
Explain how fast will the electron be moving : A charge of -3.80 nC and a charge of -6.00 nC are separated by a distance of 60.0 cm. Find out the position at which a third charge of +7.30 nC could be placed so that the net electrostatic force on it is zero.
Foreign exchange rates and us interest rates : Assume the Federal Reserve Bank of US unexpectedly raises interest rates in US. How do you think this will impact foreign-exchange market?
Direct impact on ethical climate of organization : Leaders must understand their actions have a direct impact on the ethical climate of the organization please describe
Find the standard deviation of the return : The expected return on market is 12 percent and the risk free rate is 7 percent. The standard deviation of the return on the market is 15 percent. Ones investor creates a portfolio on the efficient frontier with an expected return of 10 percent.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Enterprise java beans (ejb) in software development

Enterprise Java Beans (EJB) in software development, EJB technology, EJB application, Stateless Session Beans (SLSB), Stateful Session Beans (SFSB), Message Driven Bean (MDB), Entity Bean

  Implementation activities of software development

Analysis, design, and implementation activities of software development

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Create a recursive factorial program

Assignment 1: Create a recursive factorial program that prompts the user for an integer  N  and writes out a series of equations representing the calculation of  N !. For example, if the input is 4, the output could be:

  Represent one book in java

Represent one book in java

  Uml exercise

UML Exercise: Automated Teller Machine (ATM),   1. To allow authorized card holders to make transactions,   Brief Summary of Requirements:

  Mean and standard deviation using using eclipse

Java programming to calculate Mean and standard deviation using Using Eclipse.

  Java program to declares integer array

Write a complete Java program to declares integer array, intArray, and initialize it to {1, 2, 3, 4, 5, 6, 7}.

  Java problem - g queue

A queue is an ordered collection of items in which the removal of items is restricted to the FIFO ( rst in rst out) principle.

  Data structures and algorithms

Code analysis and programming.

  Record managing system application

Build a student record managing system application

  Create four classes

Create four classes: Account.java, Checking.java, Savings.java, and AccountArray.java.

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