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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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