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 LogicPro Your Own Question
LogicPro
LogicPro, Engineer
Category: Homework
Satisfied Customers: 12938
Experience:  Expert in Java C++ C C# VB Javascript Design SQL HTML
29751445
Type Your Homework Question Here...
LogicPro is online now
A new question is answered every 9 seconds

1. Design a class of type family and define an object from

This answer was rated:

1. Design a class of type family and define an object from this class.

a. Include in the class:
■ private members of strings for husband, wife, son, daughter1, daughter2, and a pointer to family. (Hint regarding the private pointer to family: All you are doing is making a pointer to a class family. By making it private you are deciding that you cannot change the class.)
■ public void function without arguments called initialize.
■ void friend function called output with a pointer to family as an argument.
b. Declare a void function prototype (that will be used for output) for output. Have the output function output on the screen husband is xxxx, wife is xxxx, son is xxxx, daughter1 is xxxx, and daughter2 is xxxx on separate lines. (The xxxx are the respective names used in initialize below.)
c. Declare a family type object called Simpson.
d. Include all of the above in a function that uses the public function initialize in Simpson to initialize the pointer to the address of Simpson, and initializes husband as "Donald Simpson," wife as "Shirley Simpson," son as "Horatio Simpson," daughter1 as "Harriet Simpson," and daughter2 as "Hillary Simpson." Also include in the public function family:
i. initialize the output function.
e. Run the program. Explain in a comment at the top of your program why the program would not work as is if the output function was private and not a friend.
Hi,
Welcome to JustAnswer.
My name is XXXXX XXXXX I will help you.
What is the deadline?
Customer: replied 3 years ago.

Tomorrow.

If you have any file(s), Zip all files, upload the zipped file to http://wikisend.com and post download link here.
Customer: replied 3 years ago.

Hello?

If you have any file(s), Zip all files, upload the zipped file to http://wikisend.com and post download link here.
Customer: replied 3 years ago.

http://wikisend.com/download/954544/WA4 B1.zip


 

ok, I will review it and reply you ASAP.
THIS ANSWER IS LOCKED!

You need to spend $3 to view this post. Add Funds to your account and buy credits.
LogicPro and 3 other Homework Specialists are ready to help you

Related Homework Questions