How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask Raj Your Own Question

Raj
Raj, Engineer
Category: Homework
Satisfied Customers: 1282
Experience:  4 + Experiance in IT Industry
16752232
Type Your Homework Question Here...
Raj is online now
A new question is answered every 9 seconds

How do I fix this programming error below? MusicalEntertainment.java:5:

This answer was rated:

How do I fix this programming error below?
MusicalEntertainment.java:5: MusicalEntertainment is not abstract and does not override abstract method setEntertainmentFee() in Entertainment
public class MusicalEntertainment extends Entertainment
^
Hi There,

I will be helping you with the requirment.
To view the problem I will have to look at the code that you are trying to compile and run along with the requirement file.

Can you please provide me the code files to review along with the requirement file in form of PDF or MS Word file?

Thank you
Customer: replied 3 years ago.

 


import


 


javax.swing.*;
publicclass MusicalEntertainment extends Entertainment
{
private String typeOfMusic;

public MusicalEntertainment()
{
super();
setTypeOfMusic();
}

publicvoid setTypeOfMusic()
{
typeOfMusic = JOptionPane.showInputDialog (
null, "What kind of music does this act play? ");
}

publicvoid setEntertainment()
{
fee = 600;
}


public String toString()
{
return(entertainer + " features " + typeOfMusic + " music; the fee is $ " + fee + " per event. ");
}
}


 


 


import


 


 


 


javax.swing.*;
publicabstractclass Entertainment
{
protected String entertainer;
protectedint fee;
public Entertainment()
{
setEntertainerName(); setEntertainmentFee();
}

public String getEntertainerName()
{
return entertainer;
}

publicdouble getEntertainmentFee()
{
return fee;
}
publicvoid setEntertainerName()
{
entertainer = JOptionPane.showInputDialog(
null, "Enter name of enterainer ");
}
publicabstractvoid setEntertainmentFee();
}


 


 

Can you pleae compress all the files you have all together into one file and than post it using the steps below and provide me the information i have highlighted in BOLD in STEP 3 below:

STEP 1: GOTO Website www.wikisend.com
STEP 2: Upload your file there.
STEP 3: When Upload is 100% Complete it will provide the following details for the file:
FILE ID and Download Link
STEP 4: Copy both the details and post them here.

Thank You.
Customer: replied 3 years ago.


Hi Raj,


 


I post the abstract file and the extends of the abstract


 


Abstract ( Entertainment.java) ID 111796


extends (MusicalEntertainment.java) ID 450086

Ok Give me few min to analyze them and I will provide you the compiling version of the code.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
Raj and 2 other Homework Specialists are ready to help you
Customer: replied 3 years ago.


Thank you very much!


 


I really forgot that part of my list.


For some reason.


The example in the book did not include that as part of the program example.

You are welcome and No problem.

If you want any help in future than just begin your question with TO RAJ followed by the question.

Have a good day.