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

John
John, Engineer
Category: Homework
Satisfied Customers: 777
Experience:  Bachelors Degree
27270878
Type Your Homework Question Here...
John is online now
A new question is answered every 9 seconds

Exercise P20.1. Section 20.3.1 described in general terms the

Customer Question

Exercise P20.1. Section 20.3.1 described in general terms the implementation of the
vector data type. Complete the implementation of the vector by providing definitions
for the following operations:
• A default constructor, which should create a buffer with capacity 5 and size 0.
• A constructor that takes an integer argument, and creates a buffer with the
given size and capacity.
• A member function set_capacity(int), which changes the capacity to the
indicated limit, copying elements from the current buffer. If the new capacity
is larger than the current size, the size remains unchanged; otherwise the size
is made the same as the new capacity.
• The operation at, which returns the element at the given location in the buffer.
• The operation push_back, which adds the element to the end of the buffer,
increasing the size, and invoking set_capacity to increase the capacity of the
buffer if necessary.






Exercise P21.1. In Exercise P5.2 you implemented a class PEmployee that defined two
constructors, a default constructor and a constructor with explicit arguments.
Rewrite the class definition so that the default constructor uses constructor chaining
to invoke the second constructor.



Exercise P22.4. Write a program that allows an instructor to keep a grade book. Each
student has scores for exams, homework assignments, and quizzes. Grading scales
convert the total scores in each category into letter grades (e.g., 100–94 = A,
93–91 = A–, 90–88 = B+, etc.) To determine the final grade, the category grades are
converted to numeric values (A = 4.0, A− = 3.7, B+ = 3.3, etc.). Those scores are
weighted according to a set of weights (e.g., exams 40%, homework 35%, quizzes
25%), and the resulting numeric value is again converted into a letter grade. Design
a user interface that firms up the requirements, use CRC cards to discover classes
and methods, provide class diagrams, and implement your program.


Exercise P23.3. Airline seating. Design and implement a program that assigns seats
on an airplane. Assume the airplane has 20 seats in first class (5 rows of 4 seats each,separated by an aisle) and 180 seats in economy class (30 rows of 6 seats each, separated
by an aisle). Your program should take three commands: add passengers,
show seating, and quit. When passengers are added, ask for the class (first or economy),
the number of passengers traveling together (1 or 2 in first class; 1 to 3 in
economy), and the seating preference (aisle or window in first class; aisle, center, or
window in economy). Then try to find a match and assign the seats. If no match
exists, print a message. Follow the design process that was described in this chapter.
Submitted: 1 year ago.
Category: Homework
Expert:  John replied 1 year ago.
hi

thanks for your question

i will help you

when do you need this
Customer: replied 1 year ago.

Hello John,


I would need the 1st two by tomorrow afternoon i.e. Sunday 25th august 2013 and the last 2 by Tuesday 27th august 2013.

Expert:  John replied 1 year ago.
hi

ok please check tomorrow this same time , i will give the first two
Expert:  John replied 1 year ago.
hi

can you send the Exercise P5.2, then only i can complete Exercise P21.1
Customer: replied 1 year ago.

All-right, here you go:


 


Exercise P5.2. Implement a class PEmployee that is just like the Employee class except that it stores an object of type Person as developed in Exercise P5.1.


 



class PEmployee
{
public:
PEmployee();
PEmployee(string employee_name, double initial_salary);
void set_salary(double new_salary);
double get_salary() const;
string get_name() const;
private:
Person person_data;
double salary;
};

Customer: replied 1 year ago.

I am hoping to get the answers within a couple of hours maybe.


Thanks

Expert:  John replied 1 year ago.
hi

ok then
Expert:  John replied 1 year ago.
hi

the first two answers are in the given links below

http://ge.tt/7TKCNwp/v/0
http://ge.tt/3y6tNwp/v/0

hope these helps
John, Engineer
Category: Homework
Satisfied Customers: 777
Experience: Bachelors Degree
John and 7 other Homework Specialists are ready to help you
Customer: replied 1 year ago.

Any Idea when can i Get thr next two questions?

Expert:  John replied 1 year ago.
hi

ok i will send it soon
Customer: replied 1 year ago.

Ok I will wait, as I said it previously I require the other two answers by today. Also I have this question as a problem. Can You answer this as well?!


Exercise P24.14. Design a base class Shape with virtual functions
void draw(GraphicWindow& win) const;
void move(double dx, double dy);
The Circle, Line, and Message classes of Chapter 2 are not derived from the Shape class. Supply three adapter classes CircleShape, LineShape, and MessageShape. Supply a test program that populates a vector<Shape*> with adapted objects, and demonstates
the draw and move functions.

Expert:  John replied 1 year ago.
hi

ok i will answer this
before that let me compelete last two programs, third one completed, doing the last one
i will send them soon
Customer: replied 1 year ago.

ok waiting.. :)

Expert:  John replied 1 year ago.
hi

ok then
Expert:  John replied 1 year ago.
hi

the last two programs are below

http://ge.tt/9QPhUEq/v/0
http://ge.tt/8k7wUEq/v/0

hope these helps

do you need the Exercise P24.14
Customer: replied 1 year ago.

Yes, Please

Expert:  John 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.
Customer: replied 1 year ago.

It says I have already rated the expert. When do you think that you can provide me with the answer to question p24.14 ?!


I would greatly appreciate if you would speed up the process and get me the answer asap.

Expert:  John replied 1 year ago.
hi

you have to pay for this seperately
Customer: replied 1 year ago.

I will pay it as a bonus once you give me the answer.

Expert:  John replied 1 year ago.
hi

ok then
Expert:  John replied 1 year ago.
hi

send the additional details
Customer: replied 1 year ago.

there are no additional details really.

Customer: replied 1 year ago.

If you want i could give you my ebook.

Expert:  John replied 1 year ago.
hi
ok let me check it
Customer: replied 1 year ago.

Hey John,


 


I have been waiting for your answer but haven't received it as of now. Please kindly speed up your process as I would need my answers now.


Thanks

Expert:  John replied 1 year ago.
hi
you put a new question for this

Customer: replied 1 year ago.

Excuseme?! Dint I already told you that I would paying you through Bonus tab?! How many times do I have to tell you that?! I have been waiting 4 days for this?

Expert:  John replied 1 year ago.
hi

i tried this, but lost
so you open this to other experts
Customer: replied 1 year ago.

Waow so you waited for 4 days and waste my time until I asked for it?!


Horrible.

Expert:  John replied 1 year ago.
hi

sorry for this last question

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