Question: You are to create a class called Mouse. You should create the definition of the class Mouse in a file mouse.h and the functions for

You are to create a class called Mouse. You should create the definition of the class Mouse in a file mouse.h and the functions for Mouse in mouse.cpp. You will also create a main program to be housed in mousemain.cpp. A Mouse will have attributes of Breed (string) Weight (float) Name (string) Gender (m or f) Favorite Food (string) Color description (this could be more than a single word) Other comments (also more than a single word) A Mouse will have the following methods Accessors for all attributes Mutators for all attributes A default constructor that sets all data elements to 0 or blank text as appropriate A fully specified constructor that allows defining values for all attributes A printinfo method that will display all the info for a mouse in a logical and well formatted way including labels for each of the attribute fields mousemain.cpp should perform the following actions Dynamically allocate an array of 6 Mice Prompt the user for information about each of the six mice and store that information in one of the array elements Print the information for each Mouse Clean up all allocated space

Please in C++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!