Find Jobs
Hire Freelancers

C++ Animal Daycare

$10-30 USD

Dokončeno
Zveřejněno skoro před 5 roky

$10-30 USD

Zaplaceno při doručení
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.
IČ projektu: 19321599

O projektu

6 nabídky
Vzdálený projekt
Aktivní před 5 roky

Chcete si vydělat nějaké peníze?

Výhody podávání nabídek na Freelancer

Stanovte si rozpočet a časový rámec
Získejte za svou práci zaplaceno
Načrtněte svůj návrh
Registrace a podávání nabídek je zdarma
Uděleno:
Avatar uživatele
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. So I especially like algorithm and I can write perfect codes for code quality and time. If you give me a chance, I will do my best for you and finish your project in a short time. I am ready to work for your project. Let's meet and discuss more. Thanks.
$50 USD v 1 dni
5,0 (54 recenze)
6,1
6,1
6 freelanceři nabízejí v průměru $51 USD za tuto práci
Avatar uživatele
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 test the code using g++ compiler in Linux machine.
$77 USD v 3 dnech
4,9 (125 recenze)
6,0
6,0
Avatar uživatele
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 v 1 dni
4,9 (77 recenze)
5,3
5,3
Avatar uživatele
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 v 1 dni
4,7 (37 recenze)
4,9
4,9
Avatar uživatele
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 perfect help. Looking forward to discussing more in detail via chat. Waiting for your reply. Thanks. Regards.
$111 USD v 1 dni
5,0 (3 recenze)
3,2
3,2
Avatar uživatele
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 time on many projects similar to your project - C++ Animal Daycare I am very familiar with skills such as C Programming, C++ Programming and so on.
$25 USD v 1 dni
5,0 (6 recenze)
2,8
2,8

O klientovi

Pochází z UNITED STATES
Dallas, United States
5,0
2
Ověřená platební metoda
Členem od dub 10, 2019

Ověření klienta

Další zakázky od tohoto klienta

Game of War Stack Implementation
$10-30 USD
Díky! Poslali jsme vám e-mailem odkaz pro získání kreditu zdarma.
Při odesílání e-mailu se něco pokazilo. Zkuste to prosím znovu.
Registrovaných uživatelů Zveřejněných projektů
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Načítání náhledu
Bylo uděleno povolení ke geolokaci.
Vaše doba přihlášení vypršela a byli jste odhlášeni. Přihlaste se znovu.