Explore BrainMass
Share

Explore BrainMass

    Class for Dog Information

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    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.

    © BrainMass Inc. brainmass.com October 9, 2019, 11:31 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/class-dog-information-258855

    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 ...

    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.

    $2.19