Solved

Writing a C++ program

Posted on 2007-11-13
3
611 Views
Last Modified: 2008-02-01
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 allows you to set the dog's name, breed and age. Include another method which displays the dog's name, breed, age and license fee. Write code to test your class.
0
Comment
Question by:tamiko10
3 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 20277385
What is your question?

FYI:
It's against EE policy to do homework questions.

Try doing the work, and when you get stuck, post a specific question along with your code.
0
 
LVL 20

Accepted Solution

by:
ikework earned 500 total points
ID: 20278075
start to create a class Dog with the attributes (member-variables): "name, breed, age, and license fee" ..
note: "The license fee will be a set amount: $12.25, since you only need one copy of this in memory, make it static"

if you are unsure about static members have a look at this:

http://www.cplusplus.com/doc/tutorial/classes2.html#static


ike
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now