Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

Homework
This answer was rated:

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

implementation of the vector data type...
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.
Show More
Show Less
Ask Your Own Homework Question
Answered in 6 minutes by:
8/24/2013
John
John, Engineer
Category: Homework
Satisfied Customers: 798
Experience: Bachelors Degree
Verified
hi

thanks for your question

i will help you

when do you need this
Ask Your Own Homework Question
Customer reply replied 4 years 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.

hi

ok please check tomorrow this same time , i will give the first two
Ask Your Own Homework Question
hi

can you send the Exercise P5.2, then only i can complete Exercise P21.1
Ask Your Own Homework Question
Customer reply replied 4 years 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 reply replied 4 years ago

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


Thanks

hi

ok then
Ask Your Own Homework Question
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
John, Engineer
Category: Homework
Satisfied Customers: 798
Experience: Bachelors Degree
Verified
John and 87 other Homework Specialists are ready to help you
Ask your own question now
Customer reply replied 4 years ago

Any Idea when can i Get thr next two questions?

hi

ok i will send it soon
Ask Your Own Homework Question
Customer reply replied 4 years 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.

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
Ask Your Own Homework Question
Customer reply replied 4 years ago

ok waiting.. :)

hi

ok then
Ask Your Own Homework Question
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
Ask Your Own Homework Question
Customer reply replied 4 years ago

Yes, Please

This answer is protected
Would you like to ask this question?
If you've already paid for this answer, simply Login.
Customer reply replied 4 years 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.

hi

you have to pay for this seperately
Ask Your Own Homework Question
Customer reply replied 4 years ago

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

hi

ok then
Ask Your Own Homework Question
hi

send the additional details
Ask Your Own Homework Question
Customer reply replied 4 years ago

there are no additional details really.

Customer reply replied 4 years ago

If you want i could give you my ebook.

hi
ok let me check it
Ask Your Own Homework Question
Customer reply replied 4 years 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

hi
you put a new question for this

Ask Your Own Homework Question
Customer reply replied 4 years 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?

hi

i tried this, but lost
so you open this to other experts
Ask Your Own Homework Question
Customer reply replied 4 years ago

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


Horrible.

hi

sorry for this last question
Ask Your Own Homework Question
Ask John Your Own Question
John
John
John, Engineer
Category: Homework
Satisfied Customers: 798
798 Satisfied Customers
Experience: Bachelors Degree

John 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:

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

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.

DianeDallas, TX

< Previous | Next >

Meet the Experts:

LogicPro

LogicPro

Engineer

5,731 satisfied customers

Expert in Java C++ C C# VB Javascript Design SQL HTML

Manal Elkhoshkhany

Manal Elkhoshkhany

Tutor

4,551 satisfied customers

More than 5000 online tutoring sessions.

Linda_us

Linda_us

Finance, Accounts & Homework Tutor

3,138 satisfied customers

Post Graduate Diploma in Management (MBA)

Chris M.

Chris M.

M.S.W. Social Work

2,636 satisfied customers

Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

F. Naz

F. Naz

Chartered Accountant

2,161 satisfied customers

Experience with chartered accountancy

Bizhelp

Bizhelp

CPA

1,887 satisfied customers

Bachelors Degree and CPA with Accounting work experience

Seanna

Seanna

Tutor

1,781 satisfied customers

3,000+ satisfied customers, all topics, A+ work

< Previous | Next >

Related Homework Questions
5 - 5 x 5 +5. What is the answer to 5 - 5 x 5 + 5? Only that
no, only that two people using order of operations keeps getting different answers… read more
GLENN
GLENN
Master of Mathematics
339 satisfied customers
Only for F.Naz Tutor. Kindly help with a research report,
Only for F.Naz Tutor.Kindly help with a research report, the links is http://www.mediafire.com/file/bmcea6dt278nw8w/report.txt… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
If I did not look at the description which says 4 cpu cores
if I did not look at the description which says 4 cpu cores and 6 gpu core to make TEN I wonder if you can bundle the two to make an advertisement that says 10 core I also have others in the same fiel… read more
Pete
Pete
Engineer
Bachelor\u0027s Degree
1,123 satisfied customers
Below is the Sketch of the improved parking lot from 36
Below is the Sketch of the improved parking lot from 36 available parking spaces to 51 total parking spaces with 15 newly added parking spaces. The design was 4 rows were made from previously 3 rows. … read more
GLENN
GLENN
Master of Mathematics
339 satisfied customers
1. You've formatted the first paragraph of a document. What
1. You've formatted the first paragraph of a document. What button can you use to apply the formatting from the first paragraph to the next paragraph in the document? A. Cut B. Paste C. Copy D. Format… read more
Cher
Cher
JustAnswer Expert & Mentor;Teacher/Tutor
Masters Degree
1,381 satisfied customers
Question 3 of 20: Select the best answer for the question.
Question 3 of 20 : Select the best answer for the question. 3. Circular errors are caused by adding the cell name of a/an _______ cell to a formula. A. adjacent B. absolute C. active D. relativeQuesti… read more
Chris M.
Chris M.
M.S.W. Social Work
Master's Degree
2,636 satisfied customers
Are u able to help me do this question in raptor The Dash
are u able to help me do this question in raptorThe Dash Cell Phone Company charges customers a basic rate of $5 per month to send text messages. Additional rates are as follows: l The first 60 messag… read more
LogicPro
LogicPro
Engineer
Bachelor of Technology
5,731 satisfied customers
I need to do a research project for school. I want to see if
I need to do a research project for school. I want to see if motor proteins will carry their cargo to its destination under different conditions; different drugs. If they do in what condition is the c… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
I am attempting to do a netbeans java assignment and need
I am attempting to do a netbeans java assignment and need help implementing the overridden method… read more
Ingo U
Ingo U
Master\u0027s Degree
357 satisfied customers
This assignment is due by next Tuesday by midnight. Is this
Hello David! This assignment is due by next Tuesday by midnight. Is this a good amount of time for you?Complete the following questions in an MS Word Document in APA format. Double space your work and… read more
David L.
David L.
Bachelor\u0027s Degree
6 satisfied customers
NOTE: This question is a homework given by the same
NOTE: This question is a homework given by the same professor. It does not violate any honor code because same question is repeatedly asked different students. DO NOT FLAGCase Study #1: Technology & P… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
Exam Number: 584001RR Lesson Name: Microsoft Word 2016 1.
Exam Number: 584001RR Lesson Name: Microsoft Word 2016 1. Add a _______ to manually force text from one page to the next page. A. header B. blank page C. footer D. page break2. Tab stops are very usef… read more
Chris M.
Chris M.
M.S.W. Social Work
Master's Degree
2,636 satisfied customers
Penn college need answer now plz Microsoft Word 2016 1. Font
Penn foster college need answer now plz Microsoft Word 2016 1. Font size, font style, and _______ are all aspects of character formatting. A. typeface B. indentation C. line spacing. D. alignment 2. W… read more
GLENN
GLENN
Master of Mathematics
339 satisfied customers
Adrianna, a local retired music teacher and amateur concert
Adrianna, a local retired music teacher and amateur concert violinist, has recently died. Her will contains the following provisions: (i) £150,000 on trust to be shared equally between those pupils to… read more
F. Naz
F. Naz
Chartered Accountant
CA Finalist & Completed B.com
2,161 satisfied customers
When Boyajian purchased her home in Yosemite Sky Park, a
When Boyajian purchased her home in Yosemite Sky Park, a residential subdivision created for owners of small airplanes, the deed transferring title from San Joaquin Development Corporation to her incl… read more
Steven, M.Acc.
Steven, M.Acc.
Instructor
Master\u0027s Degree
252 satisfied customers
Ovid owned 40 acres of timberland in the mountains just east
Ovid owned 40 acres of timberland in the mountains just east of La Sierra State Park. His property began at the western terminus of County Road 69. He used the property for camping and fishing, and bu… read more
Steven, M.Acc.
Steven, M.Acc.
Instructor
Master\u0027s Degree
252 satisfied customers
I didn't pass 2 exams for penn human relations an I need
I didn't pass 2 exams for penn foster human relations an I need help … read more
GLENN
GLENN
Master of Mathematics
339 satisfied customers
8. In spite of the difficulties that ABC... 8. In spite of
8. In spite of the difficulties that ABC... 8. In spite of the difficulties that ABC has caused the company, DEF still thinks that ABC makes the best gaskets in the world. Since the client doesn't wan… read more
Ray
Ray
Lawyer
Doctoral Degree
30,821 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