Purchase Solution

Class for Dog Information

Not what you're looking for?

Ask Custom Question

Please help with the following problem.

Write a class called Dog which keeps track of the dog's name, breed, age, and license fee. The license fee will be a set amount: $12.25, since you only need one copy of this in memory, make it static. Include a method which prompts a user to set the dog's name, breed and age at the command line. The dog's name and breed can have spaces in the name. Include another method which displays the dog's name, breed, age and license fee.

Purchase this Solution

Solution Summary

This solution helps write a class program called Dog that keeps track of the dog's name, breed, age and license fee. The program is provided in an attached file.

Solution Preview

Please see the attachment.

Problem: Write a class called Dog which keeps track of the dog's name, breed, age, and license fee. The license fee will be a set amount: $12.25, since you only need one copy of this in memory, make it static. Include a method which prompts a user to set the dog's name, breed and age at the command line. The dog's name and breed can have spaces in the name. Include ...

Purchase this Solution


Free BrainMass Quizzes
C# variables and classes

This quiz contains questions about C# classes and variables.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C++ Operators

This quiz tests a student's knowledge about C++ operators.