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 ATLProg Your Own Question

ATLProg
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8647
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
44910485
Type Your Homework Question Here...
ATLProg is online now
A new question is answered every 9 seconds

I am taking my final, and was hoping to get some help with

Customer Question

I am taking my final, and was hoping to get some help with it...Is anyone available?


 


I really need help with these:


 









1. (TCO 2) Explain the terms Encapsulation and Data/Information Hiding in object-oriented programming. How do they differ?
(Points : 18)


      
      



 









2. (TCO 2) Keeping in mind all object-oriented programming best practices, create a class for a Bookcase, with the following specifications:


1. Specify two data members


2. Default Constructor


3. Overloaded Constructor which takes both data member values as input.


4. Generate a unique identification number for each object instantiated from this class. Use a static data member to keep track of the identification number last assigned to an object so that duplications will not occur. 


5. Show a statement which instantiates an object of this class using the overloaded constructor.


You do not need to provide any accessor/mutator methods or other methods.


(Points : 18)


      
      



 









3. (TCO 2) Given the following list of classes, attributes and methods, 
 
- identify which items are classes, which items are attributes and which items are methods;
 
- identify which class each attribute and method belongs to; and
 
- suggest a class hierarchy given your list of classes.
 
*Note - no particular capitalization scheme is used in the list below to differentiate between classes, methods and attributes.
 
Brew, DecreaseTemperature, Manufacturer, MinCups, Price, TurnOff, Oven, MaxTemperature, BrewStrength, NumberOfRacks, IncreaseTemperature, TurnOn, StartTimer, CoffeeMaker, KitchenAppliance, MaxCups, YearBuilt, Grind (Points : 18)


      
      



 









4. (TCO 2) Briefly describe what an interface is and how it can be used in an object-oriented program. Provide example pseudocode showing how an s Interface might be constructed.  (Points : 18)


      
      



 









5. (TCO  7) How do you make an abstract method? When a class contains abstract method, what will happen? Can we still treat the class like a normal class?  Provide pseudocode that represents an abstract class with at least one abstract method. (Points : 18)


      
      



 









6. (TCO 2) Define and implement the overloaded constructors that support the following test function for a Rectangle class. The data members for the Rectangle class are length and width. Both are integer data types.
 
public static void main(String args[])

            //r1 will take all default value
Rectangle r1 = Rectangle();        
 
//r2 will take all supplied value
            Rectangle r2 = Rectangle(4, 5);  
 
//r3 will take supplied length.  width will take default value
            Rectangle r3 = Rectangle(10);    
 
//r4 will take the same value of r2
Rectangle r4= r2;           
 
//the rest of the code
}
(Points : 18)


      
      



 









7. (TCO 7) Create a Java Interface called Animal that contains two method declarations: run and sit.  Create a Java class called Dog that implements the Animal interface and includes two attributes: name and breed. Finally, show an instantiation of the Dog class that sets the Dog's name to Ralph and breed to poodle.
(Points : 22)


      
      



 

Submitted: 1 year ago.
Category: Homework
Expert:  ATLProg replied 1 year ago.
Hello Welcome. Thank you for your question, I’m ATLProg and I’ll try to help you.
Customer: replied 1 year ago.

Thanks! I appreciate it. I have about 2 hours and 45 minutes left to take this...

Expert:  ATLProg replied 1 year ago.
let me see what is can do this is Java correct or c++
Customer: replied 1 year ago.

This is Java.

Expert:  ATLProg replied 1 year ago.
got it
Customer: replied 1 year ago.

Cool and thanks again!

Expert:  ATLProg replied 1 year ago.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
ATLProg, Software Engineer
Category: Homework
Satisfied Customers: 8647
Experience: Expert in Java C++ C C# VB Javascript Design SQL HTML
ATLProg and 7 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

Thank you... Would you be able to check some of my multiple choice answers?

Expert:  ATLProg replied 1 year ago.
Please create new question requesting me

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:

 
 
 
  • 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
< Last | Next >
  • 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!!!! Alex Los 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. GP Hesperia, CA
  • I couldn't be more satisfied! This is the site I will always come to when I need a second opinion. Justin Kernersville, 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. Esther Woodstock, 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. Robin Elkton, Maryland
  • He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here. Diane Dallas, TX
 
 
 

Meet The Experts:

 
 
 
  • Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
< Last | Next >
  • http://ww2.justanswer.com/uploads/BU/BusinessTutor/2012-2-2_115741_Kouki2.64x64.jpg Manal Elkhoshkhany's Avatar

    Manal Elkhoshkhany

    Tutor

    Satisfied Customers:

    4520
    More than 5000 online tutoring sessions.
  • http://ww2.justanswer.com/uploads/LI/lindaus/2012-6-10_04811_IMG20120609164157.64x64.jpg Linda_us's Avatar

    Linda_us

    Finance, Accounts & Homework Tutor

    Satisfied Customers:

    3121
    Post Graduate Diploma in Management (MBA)
  • http://ww2.justanswer.com/uploads/ComputersGuru/2010-02-13_051118_Photo41.JPG LogicPro's Avatar

    LogicPro

    Engineer

    Satisfied Customers:

    3035
    Expert in Java C++ C C# VB Javascript Design SQL HTML
  • http://ww2.justanswer.com/uploads/lanis/2009-4-1_233717_phput9xef_c1pm.jpg Lani S.'s Avatar

    Lani S.

    Tutor

    Satisfied Customers:

    2457
    Registered Nurse, Internet Researcher, Private Tutor
  • http://ww2.justanswer.com/uploads/chooser77/2009-08-18_162025_Chris.jpg Chris M.'s Avatar

    Chris M.

    M.S.W. Social Work

    Satisfied Customers:

    2341
    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)
  • http://ww2.justanswer.com/uploads/JawaadAhmed/2009-6-27_12137_SIs_SHadi.jpg F. Naz's Avatar

    F. Naz

    Chartered Accountant

    Satisfied Customers:

    1975
    Experience with chartered accountancy
  • http://ww2.justanswer.com/uploads/JK/jkcpa/2011-1-16_182614_jkcpa.64x64.jpg Bizhelp's Avatar

    Bizhelp

    CPA

    Satisfied Customers:

    1873
    Bachelors Degree and CPA with Accounting work experience