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

  Describe a mechanism to access the customer records

Describe a mechanism to access the telephone customer records by telephone #. Assume that we have a huge data in hand; say a million records or so.

  Define a class

Using object oriented programming, define a class, and present what constructors would be necessary.

  Create a program that calculates fat grams and calories

john raymond was so pleased with the program you created for his clients that he regers you to his coworker,a nutrionist in the same facility.

  Define your ideal home network configuration in detail

explain your ideal home network configuration in detail. In this description, include the costs of all components such as routers, computers, printers, and back-up drives.

  After initial review of the existing systems you have

within the discussion board area write 600-800 words that respond to the following questions with your thoughts ideas

  Appraise the individual and organizational consequences of

compare and contrast the mis in place in two distinctly different organizations.nbspcompare each organizations usenbsp

  Algorithm for carrying out concatenation operation

Develop an algorithm that concatenates T1 and T2 into the single binary search tree. The worst case running time must be O(h), where h is the maximum of h1 and h2, the heights of T1 and T2.

  Identify a problem that may benefit froma sofware

identify a problem that may benefit froma sofware solutionit solution. the staps in the process shoud include1. systems

  Design program that will read a message string

Write down a JavaScript program that will read a message string and a number from text boxes on a Web page. The program will then use those values to display some information to the user.

  Write a java program that creates an array of integers

Write a java program that creates an array of integers

  How may a project manager be sure

How can a project manager be sure that he or she has selected the correct metrics to assess project performances? Give three examples.

  Construct e-r diagram for a car insurance company

Construct E-R diagram for a car insurance company whose customers own one car or more cars each. Each car with it zero to any number of recorded accidents.

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