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,501
Experience: Expert in C, C++, Java, DOT NET, Python, HTML, Javascript, Design.
Verified

Hi

Ask Your Own Programming Question
Customer reply replied 4 months ago
hi
Zip all files
Upload to wikisend.com and post download link here
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,501
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 4 months 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 4 months ago
one hour :(
I'll try my best what ever I canprovide
Ask Your Own Programming Question
Customer reply replied 4 months 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 4 months ago
just the code without the main class

PLease wait for few minutes

Ask Your Own Programming Question
Customer reply replied 4 months 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 4 months ago
Thank you so much !
It looks good :)

Welcome

have a good time ahead :)

Ask Your Own Programming Question
Customer reply replied 4 months ago
you too SIr!

Thanks

Ask Your Own Programming Question
Was this answer helpful?

How JustAnswer works

step-image
Describe your issueThe assistant will guide you
step-image
Chat 1:1 with a programmerLicensed Experts are available 24/7
step-image
100% satisfaction guaranteeGet all the answers you need
Ask LogicPro Your Own Question
LogicPro
LogicPro
LogicPro, Computer Software Engineer
Category: Programming
Satisfied Customers: 13,501
13,501 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,501 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

848 satisfied customers

Extensive Knowledge in PHP, MYSQL, CSS & Javascript

< Previous | Next >

Related Programming Questions
I have 2,5 hours to complete a final on java programming. 24
i have 2,5 hours to complete a final on java programming. 24 multiple choice and 7 short answer. Can this get done? … read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,501 satisfied customers
1. (TCO 1) Object-oriented programming does not generally focus
1. (TCO 1) Object-oriented programming does not generally focus on _____. (Points : 5) A. data abstraction B. cutting down on the lines of code C. client side access to implementation details D. infor… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
1. (TCO 1) Object-oriented programming generally focuses on
1. (TCO 1) Object-oriented programming generally focuses on _____. (Points : 5) A. separating the interface from the implementation. B. client side access to implementation details. C. creating as man… read more
procoder
procoder
Bachelor\u0027s Degree
8 satisfied customers
For this programming assignment, you will create 3 classes
Attachment: 2012-02-19_221202_files_for_programming_question.zip For this programming assignment, you will create 3 classes from scratch: Cat, Dog, and LoudDog. You will then test that you correctly c… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,501 satisfied customers
// This interface represents linear distance public interface
// This interface represents linear distance public interface Distance { public int getFeet(); public int getYards(); public int getMiles(); public Distance add(Distance other); public String toString… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
Your supervisor has asked you to educate your programming team
Your supervisor has asked you to educate your programming team on this concept at the next staff meeting. Take some time to do some research on ADTs, and prepare your thoughts on the following topics … read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
4. Assume we want to implement a system for managing car licensing.
4. Assume we want to implement a system for managing car licensing. Write and test a Car class which has (a) Three instance variables: i. Car type which is a String ii. License plate id which is a Str… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
Assume we want to implement a system for managing car licensing.
Assume we want to implement a system for managing car licensing. Write and test a Car class which has (a) Three instance variables: i. Car type which is a String ii. License plate id which is a String… read more
unvadim
unvadim
Computer Software Engineer
Diplom
1,168 satisfied customers
Your IT supervisor is working on a project to implement storage
Your IT supervisor is working on a project to implement storage for information related to the study of retirement benefits, and these data will eventually be sorted. Your supervisor needs the applica… read more
jatechexpert
jatechexpert
Master\u0027s Degree
1 satisfied customers
ALTPROG later today around 2 EST i will have the questions.
ALTPROG later today around 2 EST i will have the questions. Have a quick question for you though...... Have to make my own subclass of the Vehicle and want to make sure i am doing it right off the tea… read more
ATLPROG
ATLPROG
Computer Software Engineer
Master's Degree
7,677 satisfied customers
Your IT supervisor is working on a project to implement storage
Your IT supervisor is working on a project to implement storage for information related to the continuing educational of employees, and these data will eventually be sorted. Your supervisor needs the … read more
Alex
Alex
Sr. Software Engineer
Bachelor\u0027s Degree
332 satisfied customers
Your IT supervisor is working on a project to implement storage
Your IT supervisor is working on a project to implement storage for information related to the continuing educational of employees, and these data will eventually be sorted. Your supervisor needs the … read more
Alex
Alex
Sr. Software Engineer
Bachelor\u0027s Degree
332 satisfied customers
Implement the Java code for the eFax subscription inheritance
Implement the Java code for the eFax subscription inheritance hierarchy in DB2. Write a test application that instantiates at least one of each subclass type and prints the contents. Use an overridden… read more
LogicPro
LogicPro
Computer Software Engineer
Bachelor of Technology
13,501 satisfied customers
Create a new class BookList that contains a list of Books.
Create a new class BookList that contains a list of Books. The following code provides a starting point: import java.util.*; public class BookList { private ArrayList books; public BookList() { //Writ… read more
bryanh77
bryanh77
Software Engineer
Bachelor\u0027s Degree
67 satisfied customers
Hi I need help with this assigment DescriptionThis lab
Hi I need help with this assigment: Description This lab is based on the material in weeks 1 and 2: OOP Review, Inheritance, Polymorphism, Abstract Classes, Interfaces, method overriding. In this proj… read more
Jeff Micono
Jeff Micono
Bachelor\u0027s Degree
199 satisfied customers
This involves creating a couple of Java classes; the first
This involves creating a couple of Java classes; the first is the class Account that models a bank account, while the second class is Transaction that models typical operations (transaction processes)… read more
procoder
procoder
Bachelor\u0027s Degree
8 satisfied customers
Due Date 9/7/2009 11 59XXXXX Modify the application
Due Date: 9/7/2009 11:59XXXXX Modify the application in the previous task to use the principle of polymorphism to provide implementation for the calculateFees() method for each Online Fax Subscription… read more
Raj
Raj
SAP ABAP Consultant
Master\u0027s Degree
841 satisfied customers
TO RAFAEL MARTINS.Problem StatementImplement classes
TO RAFAEL MARTINS. Problem Statement Implement classes to represent 1) a lottery game, and 2) a lottery game card. public class LotteryGame represents a lottery game that may be either Lotto or Fantas… read more
Rafael Martins
Rafael Martins
System Developer
449 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