Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

Task: Create an Object Oriented Java application to model a band competition.

Please make sure that your application meets all of the following requirements:

  • Your program should have an App class that contains you rmain() method, and a Band class as described below.
  • Create an array of 5 Band objects in your main() method.
  • For each Band, call it'scompete()method, which will assign a random score between 0 and 20 to to that band.
  • Calculate the top 3 finishers and write their information to a "winners.txt" file.
  • Create a UML Class Diagram for your Band class

Note:

  • Your Band class must be properly encapsulated
  • You must use a for loop somewhere in your project

For the sake of simplicity, you may assume that each band has:

  • A singer
  • A guitar player
  • A bassist
  • A drummer

In addition to the name of each player in the band, your Band class should store each band's:

  • Home town
  • Annual income from record sales
  • Genre of music (e.g. rock, punk, reggae, jazz)
  • Score in the competition (an integer between 0 and 20)

Your Band class must include the following methods:

  • constructor, which sets all of the values of each attribute.
  • A  compete() method, which creates a random value between 0 and 20 and assigns it to that band's score attribute.
  • getInfo() method, which returns all of the information about that band

Your App class must calculate the top 3 finishers (i.e. bands with the highest score attribute), and write all of their information to a file.

Note: You do not need to use the Scanner class to input information about the bands from the user.  You may hard code all of this information in your main() method, but you should not hard code any band information (names, etc.) in your Band class itself.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92191560
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Computer Engineering

Nbspa senior collected data concerning the amount of time

A senior collected data concerning the amount of time students had to wait when adding or dropping courses at the beginning of the semester. The student then built a model of the behavior and experimented different strat ...

Suppose that we reconsider our student example and the only

Suppose that we reconsider our STUDENT example and the only attributes of STUDENT are student number and name. Let us suppose that we have another entity called HIGH SCHOOL, that is going to be the high school from which ...

Select one of the discussion topics and respond begin your

Select one of the discussion topics and respond. Begin your response by indicating which question you chose. Discussion topics: Section 1 Can we distinguish between knowing someone in the sense of knowing the habits or t ...

What strategies might help redirect a disruptive student

What strategies might help redirect a disruptive student? What strategies might help an unmotivated student?

Question suppose we want to build a b tree that has space

Question : Suppose we want to build a B+ tree that has space for 200,000 data entries in its leaf pages. Each data entry is made up of a key and its corresponding data value. Let us assume the following specifications. E ...

You have 2 tasks to createer-modeling in ms visio simple

You have 2 tasks to createER-Modeling in MS visio. Simple jab for the database expert that would take him 30 min to finish. My requirement not only for the expert to get the task done. I need to do it myself. Then he cor ...

Questionhow can you start business by mobile application

Question How can you start business by Mobile Application Development ? Discuss the testing process of Mobile Applications in detail ? List important steps for publishing an app in the Target Market ?

Suppose you are given a connected graph g with edge costs

Suppose you are given a connected graph G, with edge costs that are all distinct. Prove that G has a unique minimum spanning tree.

Question in a sequence diagram how do you represent a newly

Question : In a sequence diagram, how do you represent a newly created object? What is the difference between components and artifacts?

In the spring of 2015 three utility companies in the

In the Spring of 2015, three utility companies in the Ukraine received email purporting to come from Ukraine's parliament, the Rada. It was addressed to employees that were used to receiving communications from the Rada ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As