animal kingdom 1

FIND A SOLUTION AT Academic Writers Bay

Description

This assignment is an opportunity for you to practice using virtual functions. You are to implement 7 simple classes with 0 or 1 member variable:

  1. Animal (Grandparent)
    1. Mammal (Parent)
      1. Human (Grandkid)
      2. Cat (Grandkid)
    2. Bird (Parent)
      1. Owl (Grandkid)
      2. Duck (Grandkid)

In your main.cpp, you will have the following code:

#include 
#include "animal.h"
using namespace std;

int main() {
Cat cat;
Human human("English");

Animal *animals[4];
animals[0] = new Duck;
animals[1] = new Owl;
animals[2] = cat;
animals[3] = human;

for (int i=0; i < 4; i++) {
animals[i]->make_sound();
}

delete animals[0];
delete animals[1];

return 0;
}

Expected Output

I quack
I hoot
I meow
I speak English

Given

You are given the following file:

lab15_0_animal_kingdom_main.cpp

What to Submit

Submit two files for this lab:

  1. animal.h
  2. animal.cpp

Tips

  1. For some of your classes, you will have a string member variable “sounds_made” to hold either “quack”, “hoot”, “meow”, or “speak”
  2. For the Human class, you will have a string member variable “language” which can hold the mother tongue language the human speaks.
  3. Not all classes will need to implement make_sound() function.
  4. Watch Video Lecture 15-4 for virtual function discussion.

Requirements

  1. Write as few lines of code possible, make use of the power of inheritance.
  2. Clear and concise comments and programming style.

 

“CUSTOM PAPER”
Order from Academic Writers Bay
Best Custom Essay Writing Services

QUALITY: ORIGINAL PAPER NO PLAGIARISM - CUSTOM PAPER

Why Choose Us?

  • non-plagiarized Papers
  • 24/7 /365 Service Available
  • Affordable Prices
  • Any Paper, Urgency, and Subject
  • Will complete your papers in 6 hours
  • On-time Delivery
  • Money-back and Privacy guarantees
  • Unlimited Amendments upon request
  • Satisfaction guarantee
SATISFACTION
SATISFACTION

How It Works

  • Click on the “Place Your Order” tab at the top menu or “Order Now” icon at the bottom and a new page will appear with an order form to be filled.
  • Fill in your paper’s requirements in the "PAPER DETAILS" section.
  • Fill in your paper’s academic level, deadline, and the required number of pages from the drop-down menus.
  • Click “CREATE ACCOUNT ; SIGN IN” to enter your registration details and get an account with us for record-keeping and then, click on “PROCEED TO CHECKOUT” at the bottom of the page.
  • From there, the payment sections will show, follow the guided payment process and your order will be available for our writing team to work on it.

About AcademicWritersBay.com

AcademicWritersBay.comnbsp;is an easy-to-use and reliable service that is ready to assist you with your papers 24/7/ 365days a year. 99% of our customers are happy with their papers. Our team is efficient and will always tackle your essay needs comprehensively assuring you of excellent results. Feel free to ask them anything concerning your essay demands or Order.

AcademicWritersBay.com is a private company that offers academic support and assistance to students at all levels. Our mission is to provide proficient andnbsp;high quality academic servicesnbsp;to our highly esteemed clients. AcademicWritersBay.com is equipped with competent andnbsp;proficient writersnbsp;to tackle all types of your academic needs, and provide you with excellent results. Most of our writers are holders ofnbsp;master's degreesnbsp;ornbsp;PhDs, which is an surety of excellent results to our clients. We provide assistance to students all over the world.
We provide high quality term papers, research papers, essays, proposals, theses and many others. Atnbsp;AcademicWritersBay.com, you can be sure ofnbsp;excellent gradesnbsp;in your assignments and final exams.

NO PLAGIARISM
NO PLAGIARISM
error: Content is protected !!