Завершено

C++ Animal Daycare

The first step to this program is to read in the list of animals that are currently in the system

already. You must use command line arguments to provide the file name of the input file you

are reading in.

Here is an example input file:

[login to view URL]

Each line contains information about one animal.

The Animals

As part of this program, you are required to use inheritance and polymorphism. To do so you

will implement an Animal base class that contains information that pertains to all animals. In

your shelter ALL animals have a name, an age, and a dailyFee that represents the fee for

keeping the animal at daycare. The fee for each animal is as follows:

Cat: $25

Dog: $50

Rabbit: $15

Your derived classes will be the specific types of animals housed in your daycare: Cat, Dog and

Rabbit. Each animal has additional data that only corresponds to that specific animal.

A Cat has a property called isOutdoor. This value will be true if the cat is an outdoor cat and

false if the cat is an indoor cat.

The input line for a cat is: cat,<name>,<age>,<isOutdoor>

cat,Elroy,1,false

dog,Charlie,2,bone

rabbit,Squeekers,3,5

A Dog has a property called favoriteToy. This value is a string that will hold the name of his

favorite toy (Ex: A bone, A ball, etc)

The input line for a dog is: dog,<name>,<age>,<favoriteToy>

A Rabbit has a property called numberOfCarrots. This value is an integer that represents the

number of carrots a rabbit is allowed to be fed per day.

The input line for a rabbit is: rabbit,<name>,<age>,<numberOfCarrots>

Pet Daycare User Interface

After reading in the input file, you will prompt the use to select from a list of options:

Option ‘0’ – when the user enters 0 (zero) the program will end.

Option ‘1’ – when the user enters 1, the user will be given a list of all animals currently at the

shelter.

Option ‘2’ – When the user enters 2, the user will be prompted for what type of animal they are

dropping off (c/d/r) and then provide the information for that animal. You may assume that a

user will enter in the correct information in the correct format for each animal type (cat, dog,

rabbit).

Once the user submits the information you will create a new animal of that type and add it to

the linked list that contains all the animals in the shelter. If the user selects option 1 again, they

should be provided with an updated list of all animals plus the ones the user has just entered

appended to the end of the list.

Option ‘3’.- When the user enters 3, the user will be prompted for the cage number of the

animal that they are picking up. When the user enters the number that animal will be removed

from the linked list.

In your Animal class, you will need to define a virtual print method that will be overridden in

your derived classes (Cat,Dog,Rabbit). Each one of these classes should provide their own print

method that will be called when iterating through the linked list to print out all animals in the

shelter.

Other specifications:

All data members in your class definitions must be private or protected. No public data

members are allowed! This means that you must provide getters and setters for your data

members so that you may access them outside of your class definition and implementation.

In your program you will be storing all animals in your own custom Linked List. You may NOT

use the list ADT provided by the C++ STL. For your linked list implementation you will at a

minimum need an insert method, a removeAt method, and a print method. If implemented as a

class you must also include a separate .h and .cpp file for your LinkedList class.

Квалификация: Программирование на С, Программирование на C++

Показать больше doggie daycare center columbus, best dog daycare columbus ohio, dog daycare las vegas, doggie daycare westerville, dog hotel, dog daycare near me, doggy day care grandview ohio, city dog daycare, parsing user agent string aspnet logfile, free flash templates animal pet, prompt user write string integer using assembly, asp sql connection string user variable, convert string nice day ascii code, input string java user enter quit, java linkedlist day, layout plan pet day care center, maximum user order creation day magento website internet, search pet safe user gide, small animal pet coloring, user select time day web design

О работодателе:
( 2 отзыв(-а, -ов) ) Dallas, United States

ID проекта: #19321599

Поручен:

fastestJohn

Hello. I have just read your proposal in detail. I am very interested in your project. I am a C and C++ expert as you can see through my reviews. I have rich experiences and have taken part in programming contests. Больше

$50 USD за 1 день
(41 отзывов(-а))
5.7

7 фрилансеров(-а) в среднем готовы выполнить эту работу за $47

koustav2006

Hi..i am proficient in C/C++ programming with good concepts on object oriented programming and can help you write the animal management system program as console application as per given instructions. I will write and Больше

$77 USD за 3 дней(-я)
(122 отзывов(-а))
6.0
usamamw141

Hey there, I will do this C++ work within an hour. Feel free to inbox me now so that we can discuss further. Thank you.

$20 USD за 1 день
(76 отзывов(-а))
5.3
lashabuxo

Hello, I am experienced in this field, check my profile for sure. If I take a project, it will be done soon according to your requirements.

$25 USD за 1 день
(37 отзывов(-а))
4.9
ducdac

Dear you. I've read carefully your project description, so that I think it's perfectly suit for me. I've strong experience in C++ programming with data structure and algorithm, and I do look forward to meeting u in c Больше

$20 USD за 1 день
(17 отзывов(-а))
4.0
grigorywazin

Hi. I worked on similar projects when i was going to college. I am a Senior Software Engineer with 10+ years of rich experience in C/C++ development. I am very confident about this job and I can provide you with perf Больше

$111 USD за 1 день
(3 отзывов(-а))
3.2
superbpartner

Hi,sir, I'm sure that I can be a excellent candidate for your project. Please contact me, so that we can discuss more over chat. I value my credits from clients. Thank you for your reading. I have worked for a long ti Больше

$25 USD за 1 день
(6 отзывов(-а))
2.8