Prompt: Create a virtual pet care game where players can choose a cute pet and then feed, train, or play-with it. The game is based on a simple game loop, where at the beginning of each loop, the game notifies the player of the current pet status (hungry, sleepy, bored, etc.) The player should then select the corresponding actions to improve the status of the pet. After each action, the game loop is repeated and the pet values are updated. The status should be displayed along with the corresponding messages as well as the menu of actions. Design Requirements: Implement the Pet class Create the base Pet class. It should manage variables that keep track of the pet's state, such as how hungry/sleepy/bored/happy the pet is currently. Include a function that updates the pet's state values to reflect the passage of time.  If any of the variables are above some threshold (such as 40 out of 100), the function should output the corresponding message such as " is hungry!" Each Pet class should have a method to save and load all of its data onto or from a file, to allow the player to continue with an existing pet. Implement Types of Pets Create at least three (3) new child classes that inherits from the above Pet class.  Implement the Game Loop After the game starts, the player should be presented with a menu to load a pet, or to create a new pet from the list of available pet types to choose from (perhaps with a brief description). After choosing a new pet type, the player should be asked to give it a name and it may be assigned some random starting attributes.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Prompt: Create a virtual pet care game where players can choose a cute pet and then feed, train, or play-with it. The game is based on a simple game loop, where at the beginning of each loop, the game notifies the player of the current pet status (hungry, sleepy, bored, etc.) The player should then select the corresponding actions to improve the status of the pet. After each action, the game loop is repeated and the pet values are updated. The status should be displayed along with the corresponding messages as well as the menu of actions.

Design Requirements: Implement the Pet class Create the base Pet class. It should manage variables that keep track of the pet's state, such as how hungry/sleepy/bored/happy the pet is currently. Include a function that updates the pet's state values to reflect the passage of time.  If any of the variables are above some threshold (such as 40 out of 100), the function should output the corresponding message such as "<Pet name> is hungry!" Each Pet class should have a method to save and load all of its data onto or from a file, to allow the player to continue with an existing pet.


Implement Types of Pets Create at least three (3) new child classes that inherits from the above Pet class. 

Implement the Game Loop After the game starts, the player should be presented with a menu to load a pet, or to create a new pet from the list of available pet types to choose from (perhaps with a brief description). After choosing a new pet type, the player should be asked to give it a name and it may be assigned some random starting attributes. 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 7 images

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY