SlideShare a Scribd company logo
Assignment 10 – OOP (Animal Daycare)
Goals
Requirements
o
o
__str__
feed
o
o
o loadAnimals
list
o displayMenu
o selectAnimal
o main
while
displayMenu
selectAnimal Animal
Animal
Extra Credit
Sample Output
Welcome to the Animal Daycare! Here is what we can do:
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 10
*Invalid selection, please try again.
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 6
Name: Ollie the Bunny
Health: 85
Happiness: 50
Hunger: 75
Energy: 60
Age: 5
********************************
Name: Murdock the French Bulldog
Health: 80
Happiness: 70
Hunger: 60
Energy: 55
Age: 3
********************************
Name: Socks the Cat
Health: 75
Happiness: 55
Hunger: 20
Energy: 70
Age: 1
********************************
Name: Peewee the Turtle
Health: 65
Happiness: 45
Hunger: 30
Energy: 15
Age: 10
********************************
Name: Milo the Labrador
Health: 70
Happiness: 75
Hunger: 40
Energy: 80
Age: 6
********************************
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 1
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 0
Invalid input, please try again!
Please select an animal from the list (enter the 1-5): 1
You played with Ollie the Bunny!
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 2
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 2
You fed Murdock the French Bulldog!
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 3
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 3
You gave Socks the Cat some medicine!
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 4
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 4
Peewee the Turtle took a nap!
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 5
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 5
Name: Milo the Labrador
Health: 70
Happiness: 75
Hunger: 40
Energy: 80
Age: 6
********************************
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 6
Name: Ollie the Bunny
Health: 85
Happiness: 60
Hunger: 80
Energy: 60
Age: 5
********************************
Name: Murdock the French Bulldog
Health: 80
Happiness: 70
Hunger: 50
Energy: 55
Age: 3
********************************
Name: Socks the Cat
Health: 95
Happiness: 35
Hunger: 20
Energy: 70
Age: 1
********************************
Name: Peewee the Turtle
Health: 65
Happiness: 45
Hunger: 30
Energy: 35
Age: 11
********************************
Name: Milo the Labrador
Health: 70
Happiness: 75
Hunger: 40
Energy: 80
Age: 6
********************************
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 3
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 1
You gave Ollie the Bunny some medicine!
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 5
1) Ollie the Bunny
2) Murdock the French Bulldog
3) Socks the Cat
4) Peewee the Turtle
5) Milo the Labrador
Please select an animal from the list (enter the 1-5): 1
Name: Ollie the Bunny
Health: 100
Happiness: 40
Hunger: 80
Energy: 60
Age: 5
********************************
1) Play
2) Feed
3) Give Medicine
4) Sleep
5) Print an Animal's stats
6) View All Animals
7) Exit
Please make a selection: 7
Goodbye!
Deliverables and Submission Instructions
ITP115_a#_lastname_firstname
ITP115_a#_lastname_firstname.zip
Grading
Item Points
Animal class 20
loadAnimals method 4
displayMenu method 4
selectAnimal method 4
main method 3
Total* 35
Assignment 10 – OOP (Animal Daycare) Goals   .docx

More Related Content

More from braycarissa250

1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx
1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx
1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx
braycarissa250
 
1.Being sure that one has the resources necessary to accomplish the .docx
1.Being sure that one has the resources necessary to accomplish the .docx1.Being sure that one has the resources necessary to accomplish the .docx
1.Being sure that one has the resources necessary to accomplish the .docx
braycarissa250
 
1.Based on how you will evaluate your EBP project, which indepen.docx
1.Based on how you will evaluate your EBP project, which indepen.docx1.Based on how you will evaluate your EBP project, which indepen.docx
1.Based on how you will evaluate your EBP project, which indepen.docx
braycarissa250
 
1.Be organized. 2.   Spend less time doing a summary, but more o.docx
1.Be organized. 2.   Spend less time doing a summary, but more o.docx1.Be organized. 2.   Spend less time doing a summary, but more o.docx
1.Be organized. 2.   Spend less time doing a summary, but more o.docx
braycarissa250
 
1.After discussion with your preceptor, name one financial aspec.docx
1.After discussion with your preceptor, name one financial aspec.docx1.After discussion with your preceptor, name one financial aspec.docx
1.After discussion with your preceptor, name one financial aspec.docx
braycarissa250
 
1.A 52-year-old obese Caucasian male presents to the clinic wit.docx
1.A 52-year-old obese Caucasian male presents to the clinic wit.docx1.A 52-year-old obese Caucasian male presents to the clinic wit.docx
1.A 52-year-old obese Caucasian male presents to the clinic wit.docx
braycarissa250
 
1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx
1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx
1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx
braycarissa250
 
1.4 Participate in health care policy development to influence nursi.docx
1.4 Participate in health care policy development to influence nursi.docx1.4 Participate in health care policy development to influence nursi.docx
1.4 Participate in health care policy development to influence nursi.docx
braycarissa250
 
1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx
1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx
1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx
braycarissa250
 
1.5 Pages on the following topics Diversity, Race and Gender Equity.docx
1.5 Pages on the following topics Diversity, Race and Gender Equity.docx1.5 Pages on the following topics Diversity, Race and Gender Equity.docx
1.5 Pages on the following topics Diversity, Race and Gender Equity.docx
braycarissa250
 
1.0. Introduction Effective project management is consid.docx
1.0. Introduction Effective project management is consid.docx1.0. Introduction Effective project management is consid.docx
1.0. Introduction Effective project management is consid.docx
braycarissa250
 
1.1 What is the OSI security architecture1.2 What is the differ.docx
1.1 What is the OSI security architecture1.2 What is the differ.docx1.1 What is the OSI security architecture1.2 What is the differ.docx
1.1 What is the OSI security architecture1.2 What is the differ.docx
braycarissa250
 
1.1 What is the OSI security architecture      1.2 What is th.docx
1.1 What is the OSI security architecture      1.2 What is th.docx1.1 What is the OSI security architecture      1.2 What is th.docx
1.1 What is the OSI security architecture      1.2 What is th.docx
braycarissa250
 
1..the Term Great Recession suggests that the continual decline with.docx
1..the Term Great Recession suggests that the continual decline with.docx1..the Term Great Recession suggests that the continual decline with.docx
1..the Term Great Recession suggests that the continual decline with.docx
braycarissa250
 
1.1 What is the OSI security architecture1.2 What is the di.docx
1.1 What is the OSI security architecture1.2 What is the di.docx1.1 What is the OSI security architecture1.2 What is the di.docx
1.1 What is the OSI security architecture1.2 What is the di.docx
braycarissa250
 
1.)  In 500 words or more, compare DNS failover and cloud failov.docx
1.)  In 500 words or more, compare DNS failover and cloud failov.docx1.)  In 500 words or more, compare DNS failover and cloud failov.docx
1.)  In 500 words or more, compare DNS failover and cloud failov.docx
braycarissa250
 
1.  your thoughts  Do incentives carry an ethical risk If so how .docx
1.  your thoughts   Do incentives carry an ethical risk If so how .docx1.  your thoughts   Do incentives carry an ethical risk If so how .docx
1.  your thoughts  Do incentives carry an ethical risk If so how .docx
braycarissa250
 
1.  Where is the Parthenon located To whom was it dedicated Why E.docx
1.  Where is the Parthenon located To whom was it dedicated Why E.docx1.  Where is the Parthenon located To whom was it dedicated Why E.docx
1.  Where is the Parthenon located To whom was it dedicated Why E.docx
braycarissa250
 
1.  The short-run Phillips Curve is a curve that shows the relat.docx
1.  The short-run Phillips Curve is a curve that shows the relat.docx1.  The short-run Phillips Curve is a curve that shows the relat.docx
1.  The short-run Phillips Curve is a curve that shows the relat.docx
braycarissa250
 
1.(200 words response)  Detail the components of state bureaucra.docx
1.(200 words response)  Detail the components of state bureaucra.docx1.(200 words response)  Detail the components of state bureaucra.docx
1.(200 words response)  Detail the components of state bureaucra.docx
braycarissa250
 

More from braycarissa250 (20)

1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx
1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx
1.Choose a writer; indicate hisher contribution to the Harlem Renai.docx
 
1.Being sure that one has the resources necessary to accomplish the .docx
1.Being sure that one has the resources necessary to accomplish the .docx1.Being sure that one has the resources necessary to accomplish the .docx
1.Being sure that one has the resources necessary to accomplish the .docx
 
1.Based on how you will evaluate your EBP project, which indepen.docx
1.Based on how you will evaluate your EBP project, which indepen.docx1.Based on how you will evaluate your EBP project, which indepen.docx
1.Based on how you will evaluate your EBP project, which indepen.docx
 
1.Be organized. 2.   Spend less time doing a summary, but more o.docx
1.Be organized. 2.   Spend less time doing a summary, but more o.docx1.Be organized. 2.   Spend less time doing a summary, but more o.docx
1.Be organized. 2.   Spend less time doing a summary, but more o.docx
 
1.After discussion with your preceptor, name one financial aspec.docx
1.After discussion with your preceptor, name one financial aspec.docx1.After discussion with your preceptor, name one financial aspec.docx
1.After discussion with your preceptor, name one financial aspec.docx
 
1.A 52-year-old obese Caucasian male presents to the clinic wit.docx
1.A 52-year-old obese Caucasian male presents to the clinic wit.docx1.A 52-year-old obese Caucasian male presents to the clinic wit.docx
1.A 52-year-old obese Caucasian male presents to the clinic wit.docx
 
1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx
1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx
1.1Arguments, Premises, and ConclusionsHow Logical Are You·.docx
 
1.4 Participate in health care policy development to influence nursi.docx
1.4 Participate in health care policy development to influence nursi.docx1.4 Participate in health care policy development to influence nursi.docx
1.4 Participate in health care policy development to influence nursi.docx
 
1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx
1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx
1.5 - 2 pages single-spaced. Use 1-inch margins, 12 font, Microsoft .docx
 
1.5 Pages on the following topics Diversity, Race and Gender Equity.docx
1.5 Pages on the following topics Diversity, Race and Gender Equity.docx1.5 Pages on the following topics Diversity, Race and Gender Equity.docx
1.5 Pages on the following topics Diversity, Race and Gender Equity.docx
 
1.0. Introduction Effective project management is consid.docx
1.0. Introduction Effective project management is consid.docx1.0. Introduction Effective project management is consid.docx
1.0. Introduction Effective project management is consid.docx
 
1.1 What is the OSI security architecture1.2 What is the differ.docx
1.1 What is the OSI security architecture1.2 What is the differ.docx1.1 What is the OSI security architecture1.2 What is the differ.docx
1.1 What is the OSI security architecture1.2 What is the differ.docx
 
1.1 What is the OSI security architecture      1.2 What is th.docx
1.1 What is the OSI security architecture      1.2 What is th.docx1.1 What is the OSI security architecture      1.2 What is th.docx
1.1 What is the OSI security architecture      1.2 What is th.docx
 
1..the Term Great Recession suggests that the continual decline with.docx
1..the Term Great Recession suggests that the continual decline with.docx1..the Term Great Recession suggests that the continual decline with.docx
1..the Term Great Recession suggests that the continual decline with.docx
 
1.1 What is the OSI security architecture1.2 What is the di.docx
1.1 What is the OSI security architecture1.2 What is the di.docx1.1 What is the OSI security architecture1.2 What is the di.docx
1.1 What is the OSI security architecture1.2 What is the di.docx
 
1.)  In 500 words or more, compare DNS failover and cloud failov.docx
1.)  In 500 words or more, compare DNS failover and cloud failov.docx1.)  In 500 words or more, compare DNS failover and cloud failov.docx
1.)  In 500 words or more, compare DNS failover and cloud failov.docx
 
1.  your thoughts  Do incentives carry an ethical risk If so how .docx
1.  your thoughts   Do incentives carry an ethical risk If so how .docx1.  your thoughts   Do incentives carry an ethical risk If so how .docx
1.  your thoughts  Do incentives carry an ethical risk If so how .docx
 
1.  Where is the Parthenon located To whom was it dedicated Why E.docx
1.  Where is the Parthenon located To whom was it dedicated Why E.docx1.  Where is the Parthenon located To whom was it dedicated Why E.docx
1.  Where is the Parthenon located To whom was it dedicated Why E.docx
 
1.  The short-run Phillips Curve is a curve that shows the relat.docx
1.  The short-run Phillips Curve is a curve that shows the relat.docx1.  The short-run Phillips Curve is a curve that shows the relat.docx
1.  The short-run Phillips Curve is a curve that shows the relat.docx
 
1.(200 words response)  Detail the components of state bureaucra.docx
1.(200 words response)  Detail the components of state bureaucra.docx1.(200 words response)  Detail the components of state bureaucra.docx
1.(200 words response)  Detail the components of state bureaucra.docx
 

Recently uploaded

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
Celine George
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17How to Make a Field invisible in Odoo 17
How to Make a Field invisible in Odoo 17
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

Assignment 10 – OOP (Animal Daycare) Goals   .docx

  • 1. Assignment 10 – OOP (Animal Daycare) Goals Requirements o
  • 5. while displayMenu selectAnimal Animal Animal Extra Credit Sample Output Welcome to the Animal Daycare! Here is what we can do: 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals
  • 6. 7) Exit Please make a selection: 10 *Invalid selection, please try again. 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals 7) Exit Please make a selection: 6 Name: Ollie the Bunny Health: 85 Happiness: 50 Hunger: 75 Energy: 60
  • 7. Age: 5 ******************************** Name: Murdock the French Bulldog Health: 80 Happiness: 70 Hunger: 60 Energy: 55 Age: 3 ******************************** Name: Socks the Cat Health: 75 Happiness: 55 Hunger: 20 Energy: 70 Age: 1 ******************************** Name: Peewee the Turtle
  • 8. Health: 65 Happiness: 45 Hunger: 30 Energy: 15 Age: 10 ******************************** Name: Milo the Labrador Health: 70 Happiness: 75 Hunger: 40 Energy: 80 Age: 6 ******************************** 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats
  • 9. 6) View All Animals 7) Exit Please make a selection: 1 1) Ollie the Bunny 2) Murdock the French Bulldog 3) Socks the Cat 4) Peewee the Turtle 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 0 Invalid input, please try again! Please select an animal from the list (enter the 1-5): 1 You played with Ollie the Bunny! 1) Play 2) Feed 3) Give Medicine 4) Sleep
  • 10. 5) Print an Animal's stats 6) View All Animals 7) Exit Please make a selection: 2 1) Ollie the Bunny 2) Murdock the French Bulldog 3) Socks the Cat 4) Peewee the Turtle 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 2 You fed Murdock the French Bulldog! 1) Play 2) Feed 3) Give Medicine 4) Sleep
  • 11. 5) Print an Animal's stats 6) View All Animals 7) Exit Please make a selection: 3 1) Ollie the Bunny 2) Murdock the French Bulldog 3) Socks the Cat 4) Peewee the Turtle 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 3 You gave Socks the Cat some medicine! 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals
  • 12. 7) Exit Please make a selection: 4 1) Ollie the Bunny 2) Murdock the French Bulldog 3) Socks the Cat 4) Peewee the Turtle 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 4 Peewee the Turtle took a nap! 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals 7) Exit
  • 13. Please make a selection: 5 1) Ollie the Bunny 2) Murdock the French Bulldog 3) Socks the Cat 4) Peewee the Turtle 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 5 Name: Milo the Labrador Health: 70 Happiness: 75 Hunger: 40 Energy: 80 Age: 6 ******************************** 1) Play 2) Feed
  • 14. 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals 7) Exit Please make a selection: 6 Name: Ollie the Bunny Health: 85 Happiness: 60 Hunger: 80 Energy: 60 Age: 5 ******************************** Name: Murdock the French Bulldog Health: 80 Happiness: 70 Hunger: 50
  • 15. Energy: 55 Age: 3 ******************************** Name: Socks the Cat Health: 95 Happiness: 35 Hunger: 20 Energy: 70 Age: 1 ******************************** Name: Peewee the Turtle Health: 65 Happiness: 45 Hunger: 30 Energy: 35 Age: 11 ********************************
  • 16. Name: Milo the Labrador Health: 70 Happiness: 75 Hunger: 40 Energy: 80 Age: 6 ******************************** 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals 7) Exit Please make a selection: 3 1) Ollie the Bunny 2) Murdock the French Bulldog
  • 17. 3) Socks the Cat 4) Peewee the Turtle 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 1 You gave Ollie the Bunny some medicine! 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals 7) Exit Please make a selection: 5 1) Ollie the Bunny 2) Murdock the French Bulldog 3) Socks the Cat 4) Peewee the Turtle
  • 18. 5) Milo the Labrador Please select an animal from the list (enter the 1-5): 1 Name: Ollie the Bunny Health: 100 Happiness: 40 Hunger: 80 Energy: 60 Age: 5 ******************************** 1) Play 2) Feed 3) Give Medicine 4) Sleep 5) Print an Animal's stats 6) View All Animals 7) Exit
  • 19. Please make a selection: 7 Goodbye! Deliverables and Submission Instructions ITP115_a#_lastname_firstname ITP115_a#_lastname_firstname.zip Grading Item Points Animal class 20 loadAnimals method 4 displayMenu method 4 selectAnimal method 4 main method 3 Total* 35