Create a class named musicalinstrument

Assignment Help Computer Engineering
Reference no: EM131270160

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. Design and implement a musical instrument class along with 4 subclasses using the following guidelines:

1. Create a class named MusicalInstrument and its four subclasses named Woodwind, Brass, String and Percussion.

2. The MusicalInstrument has a name, isPlaying, and isTuned data fields. It also has methods for setting and getting the values of each of the fields along with a method to display how the instrument is played. A constructor that sets the isTuned and isPlaying fields to false is also included in the MusicalInstrument class.

3. When you create your Woodwind, Brass, String and Percussion classes set the name and how to play the instrument as follows

Class Name Method to Play
Woodwind Woodwind Reeds
Brass Brass Mouth piece
String String Pluck and bow
Percussion Percussion Hit

1. Your app shoud include: a) a constructor that creates one instance of each instrument, b) methods for tuning your instruments, c) print the name of your instrument d) print how you play your instrument

2. Your programs should compile and run without errors.

Submission requirements:

Your deliverable is a Java file which will create an instance of each instrument, and will include the methods (isPlaying and isTuned). Zip and submit your entire Java project file. Your zipped project file should be submitted to your LEO Project 1 assignment area no later than the due date listed in the syllabus. Your zipped project folder should be named lastnameProject1.zip

Reference no: EM131270160

Questions Cloud

How much of the drug is eliminated during the first hour : The rate at which the body eliminates a certain drug.-  How much of the drug is eliminated during the first hour after it was administered? During the fourth hour?
What is the net effect on society : Who are the winners and losers? What is the size of their gains and losses? What is the net effect on society?
What is the duration of the critical path : Draw the network diagram. Which activities form the critical path? How much slack exists at activities A and F? What is the duration of the critical path?
Discuss the interview in an organized paper : Choose a person to interview. This person should have experience with race, gender, and/or occupational stratification, either as a human resources manager, a hiring manager, or someone similar, OR you may choose someone who personally experienced..
Create a class named musicalinstrument : Design and implement a musical instrument class along with 4 subclasses using the following guidelines: Create a class named MusicalInstrument and its four subclasses named Woodwind, Brass, String and Percussion.
Determine optimum order size and time between orders : A TV manufacturing company uses speakers at the rate of 8000/mo. When it places an order for speakers it incurs a fixed cost of $1200. The monthly interest rate for keeping a speaker in stock is assessed at 1%/mo. The cost of the speaker depends on t..
Determining the great recession : In recent years the US has seen what has been called the Great Recession. What active stabilization policies were used and how important were they. Do you believe such economic policies kept this from becoming the second Great Depression. Why?
Create an accessor and mutator function for field age : What is static property? What is the difference between static property and non-static property? You are given a class below, create an accessor and mutator function for field age.
Market for possible replacement for the existing system : The Chief Information Officer (CIO) at Old Dominion University –ODU- is trying to improve the university’s information network security. The CIO is trying to evaluate a new intrusion detection technology in the market for possible replacement for the..

Reviews

Write a Review

Computer Engineering Questions & Answers

  1 search the web mainly ieee and acm publication databases

1. search the web mainly ieee and acm publication databases to find a recent article on a biomedical application using

  Recognize the factors other than price an organization

identify the factors other than price an organization must consider when evaluating whether to build or buy a software

  The advantages and disadvantages of using functions

Show how you might write the "case" statement using only the "if" statement in its place an actual case statement. Hint: Nested if statements. Explain your code.

  Explain federal laws that address protecting individuals pii

Describe the federal laws that address protecting an individual's PII. Suggest three measures organizations and individuals should take to protect their PII.

  Write down an account class

Write down an Account Class.

  Find which statement is true and which statement is false

Two cells within a Karnaugh map are adjacent if only one variable is different between the coordinates of the two cells - Find which statement is true and which statement is false.

  How to create another c-sharp project

make  a C-Sharp project that stores personal information for a little electronic "black book". The fields in the file should include name, phone number, pager number, cell phone number, voice mail number, and e-mail address. Use text boxes to ente..

  Write a client-server program

Write a client-server program. The server has the following properties: It wait for requests at port 12345. It will create a thread to serve one incoming request

  Visual logic assignment

Write down a program having a procedure that draws a shape of your choice. The program must call the procedure 10 times in order to draw the shape at 10 random locations.

  What is the variety of addresses available in each networks

What is the variety of addresses available in each  networks

  Which would be the first place that you would look at for

users from the finance department access an oracle server for their operations. the computers on the finance department

  Organizational charts organizational chart and a project

it project organization submit a word document of the it project organization. use apa formatting.as well as outside

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