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

  Record managing system application

Build a student record managing system application

  Implement avl tree

Implement AVL trees that allows both iterative traversal and recursive traversal.

  Insert uml design diagrams, use case, classes

Insert UML design diagrams here (use case, class, and sequence diagram).

  Design a course registration system

Create an application which represents a simplified course registration system using ArrayLists and HashMaps.

  A jsp expression can contain any java expression

A JSP expression can contain any Java expression that evaluates to a

  Design and implement a small and simple email server

Design and implement a small and simple email server

  Print the contents of the array

Prepare a second loop that prints the contents of the array

  Please write the code in java

Please write the code in java for  Recursion,  Sorting and Searching

  Write a java program to register students for a college

Project is for designing and developing a College Registration program. Write a Java program to register students for a college

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

  Java class, array, link list , generic class

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

  Solving programming problems

Write a computer program that will figure out the total of an order when given the amount of the order ($1000) and a sales tax rate of eight percent.

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