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

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. 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!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  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.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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