Programming

Programming questions? Ask a programmer for answers ASAP

Ask a Computer Expert,
Get an Answer ASAP!

This answer was rated:

Suppose that you are required to write an application to…

Suppose that you are required...
Suppose that you are required to write an application to model interns and supervisors in a company.
1- Define an abstract superclass called Staff to store two properties as:
String name;
String address;
[4 points] Provide (only one) constructor which sets the name and address properties.
[6 points] Provide getters & setters and toString() methods for the class Staff.
2- Define:
[2 points] Two subclasses of Staff, one named Intern and one Supervisor.
[3 points] Both classes, Intern and Supervisor must implement the interface StaffInfo, provided below.
3- Requirements for the class Intern:
• should maintain a list of tasks taken and the respective hours for each task.
• an intern cannot have more than 10 tasks
• should also provide a method to add a task with hours
• print all tasks taken with task description and hours
• calculate the average hours of the tasks assigned
[5 points] Intern(…) constructor calling the parent constructor
[5 points] private instance variables: numTasks, taskList[], hourList[], MaxNumTasks=10
[5 points] toString() method to describe itself. Add the string “Intern: ” to the beginning.
[5 points] addTaskHours(task, hours) adds a task and its hours. Validate that task description is not null and hours are greater than zero
[5 points] // printHours() prints all Tasks taken and their hour
[5 points] // getAverageHour() computes the average hour
4- Requirements for the class Supervisor:
• should maintain a list of tasks they currently supervise
• be able to add or remove a task supervised
• assume that a supervisor cannot supervise more than 5 tasks
[5 points] private instance variables: numTasks, taskList[], MaxNumTasks=5
[5 points] Supervisor (…) constructor calling the parent constructor
[5 points] toString() method to describe itself. Add the string “Superviser: ” to the beginning.
[5 points] addTask(task) adds a task to task list. Returns false if task already in the list.
[5 points] removeTask (task) removes a task from task list. Returns false if task not found.
Note: Your program solution may only be uploaded in .jar format. No other format will be graded.
Interface to be implemented by the Intern & the Supervisor class as described in item 2 above.
/**************************************************
* StaffInfo interface declaration.
**************************************************/
public interface StaffInfo {
// Returns (String “Supervisor” or “Intern”), name + address of the staff
String getStaffInfo();
}
Show More
Show Less
Ask Your Own Programming Question
Answered in 2 hours by:
3/23/2018
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,427
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified

Hi

Ask Your Own Programming Question
Customer reply replied 1 month ago
hi
Zip all files
Upload to wikisend.com and post download link here
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,427
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified
LogicPro and 87 other Programming Specialists are ready to help you
Ask your own question now
Customer reply replied 1 month ago
we can just do it here. I already sent question
http://wikisend.com/download/594330/question.docx
What is the deadline?
Ask Your Own Programming Question
Customer reply replied 1 month ago
one hour :(
I'll try my best what ever I canprovide
Ask Your Own Programming Question
Customer reply replied 1 month ago
ok Thank you

Welcome

Ask Your Own Programming Question

Do you have any test/Main/Driver class?

If not, you want me to write one or you don't need it just the code without main class?

Ask Your Own Programming Question
Customer reply replied 1 month ago
just the code without the main class

PLease wait for few minutes

Ask Your Own Programming Question
Customer reply replied 1 month ago
ok

http://www.wikisend.com/download/248056/Staff.zip

Just posted the answer Link

Let me know once you get it

Please consider adding bonus by using the "Write a review or give a bonus" button on your question pages.

http://ww2.justanswer.com/help/what-if-expert-does-really-fantastic-job-hl

You can ask me again using "For LogicPro only" at the start of your questions like other customers to get instant answers. It will ensure that question is for me.

Please bookmark my profile page:

http://www.justanswer.com/homework/expert-logicpro/

so you can come back and ask me a question anytime.

Thank you for using this site!

Ask Your Own Programming Question
Customer reply replied 1 month ago
Thank you so much !
It looks good :)

Welcome

have a good time ahead :)

Ask Your Own Programming Question
Customer reply replied 1 month ago
you too SIr!

Thanks

Ask Your Own Programming Question
Was this answer helpful?
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,427
13,427 Satisfied Customers
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

LogicPro is online now

A new question is answered every 9 seconds

How JustAnswer works:

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

JustAnswer in the News:

Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
Web sites like justanswer.com/legal
...leave nothing to chance.
Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
I will tell you that...the things you have to go through to be an Expert are quite rigorous.

What Customers are Saying:

My Expert answered my question promptly and he resolved the issue totally. This is a great service. I am so glad I found it I will definitely use the service again if needed.

One Happy CustomerNew York

Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

Mary C.Freshfield, Liverpool, UK

This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

AlexLos Angeles, CA

Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

GPHesperia, CA

I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

JustinKernersville, NC

Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

EstherWoodstock, NY

Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

RobinElkton, Maryland

< Previous | Next >

Meet the Experts:

ATLPROG

ATLPROG

Computer Software Engineer

7,677 satisfied customers

MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML

LogicPro

LogicPro

Computer Software Engineer

13,427 satisfied customers

Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.

unvadim

unvadim

Computer Software Engineer

1,168 satisfied customers

Good knowledge of OOP principles. 3+ years of programming experience with Java and C++. Sun Certified Java Programmer 5.0.

lifesaver

lifesaver

Computer Software Engineer

950 satisfied customers

Several years of intensive programming and application development experience in various platforms.

ehabtutor

ehabtutor

Computer Software Engineer

936 satisfied customers

Bachelor of computer science, 5+ years experience in software development, software company owner

TheDoctor

TheDoctor

Software Engineer

893 satisfied customers

M.S. in Internet Information Systems

The-PC-Guy

The-PC-Guy

Software Engineer

800 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I have a worksheet with rankings for an award. Each nominee
I have a worksheet with rankings for an award. Each nominee is ranked 1-5. I want to awards points, 6,4,3,2,1 for places 1-5. How do I set up a formula to do this for me? … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,395 satisfied customers
I was trying to run an SQL Between AND statement in Java
Hi I was trying to run an SQL Between AND statement in Java Netbeans. It is connected to mySQL. It says my SQL syntax is wrong. I was just wondering the proper way to write it … read more
LogicPro
LogicPro
Computer Software Engineer
13,427 satisfied customers
Its an excel specific quesion...is there a reasource for
its an excel specific quesion...is there a reasource for that? … read more
Michael Rademacher
Michael Rademacher
MBA
6 satisfied customers
I renewed my software but cant use it. Microsoft word,
I renewed my software but cant use it JA: Which software or app can I help with? Customer: Microsoft word, excel, publisher, access etc JA: What have you tried so far with your Word? Customer: Can not… read more
Elgin Vega
Elgin Vega
IT Consultant
Science Bachellor
129 satisfied customers
How do I find my workbook online. I updated one sent to me
how do I find my workbook online. I updated one sent to me on email and it said it was saved but when I opened it again from the email, it was not updated. … read more
Michael Rademacher
Michael Rademacher
MBA
6 satisfied customers
I need to renew my domain name with you. Sorry I dont
I need to renew my domain name charleychopchop.com … read more
Fran
Fran
IT Consultant
Associate Degree
166 satisfied customers
I'm trying to write this python to test average and grade
Hi, I'm trying to write this python to test average and grade but I can calculate my average. … read more
LogicPro
LogicPro
Computer Software Engineer
13,427 satisfied customers
I cannot add a photo to an excel document from my Mac book
I cannot add a photo to an excel document from my Mac book air … read more
Kamil Anwar
Kamil Anwar
IT Consultant / Systems Engineer
Bachelor\u0027s Degree
459 satisfied customers
Pick ONE of the following: 1. Ten CodeLab exercises for
Pick ONE of the following:1. Ten CodeLab exercises for STRUCTURES2. Textbok p. 652, problem 3:Corporate Sales Data Write a program that uses a structure to store the following data on a company divisi… read more
LogicPro
LogicPro
Computer Software Engineer
13,427 satisfied customers
I have a program need corection. Phyton. Make it correct I
I have a program need corection JA: Is there a specific language you're coding in? Customer: phyton JA: What's your objective? How can we solve this for you? Customer: make it correct I am missing som… read more
LogicPro
LogicPro
Computer Software Engineer
13,427 satisfied customers
From the below Java code, extend it and create a few
From the below Java code, extend it and create a few derivative classes, i.e. a Router, a Switch, a Server, a PSU (Power Supply Unit) etc. Each of those new classes has to be declared as extending the… read more
LogicPro
LogicPro
Computer Software Engineer
13,427 satisfied customers
I am trying to see how to get rid of the last few charaters
I am trying to see how to get rid of the last few charaters upto and including the dash in the following 2141B-DNM-4 3157E-FC-14 3157E-FC-10/12 3157E-FC-7/8 2157E-FC-6 … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
I have a very simple question about a calculation/formula
I have a very simple question about a calculation/formula that I am trying to set up in Excel 16. … read more
Richard
Richard
IT Manager
IT Manager, Consultant
3,395 satisfied customers
Is this wordpress support? I have one site on Blue Host and
I have one site on Blue Host and could not get support there, … read more
Jinsmn
Jinsmn
Systems Administrator
Diplom
1,260 satisfied customers
I can't get the bar at the top of the sheet to show content.
I can't get the bar at the top of the sheet to show content … read more
The-PC-Guy
The-PC-Guy
Software Engineer
Bachelor's Degree
800 satisfied customers
Trying to make a chess board. Trying to reduce the code and
trying to reduce the code and add a function, im using python … read more
Ingo U
Ingo U
Master\u0027s Degree
358 satisfied customers
How do I fill an avery form 8660 address labels from an
how do I fill an avery form 8660 address labels from an excel spread sheet … read more
Michael Rademacher
Michael Rademacher
MBA
6 satisfied customers
How can I change a column of text to numbers? Just reguar
Highlight the column and change and change the format to number. … read more
Jeevan DSouza
Jeevan DSouza
Professor
PhD
3 satisfied customers
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

Show MoreShow Less

Ask Your Question

x