// @topic W11-2-010 pet license application
// @brief C++ header with class declarations
#ifndef PET_LICENSE_H_INCLUDED_
#define PET_LICENSE_H_INCLUDED_
#include <string>
#include <vector>
#include <iostream>
class Pet {
friend class PetLicense;
std::string name;
char type;
int age;
std::string color;
bool adoption;
public:
// constructors
Pet(
std::string name,
char type,
int age,
std::string color,
bool adoption
);
// operations
void print();
};//class Pet
class PetOwner {
friend class PetLicense;
public:
static const int SENIOR_CITIZEN_AGE = 65;
private:
std::string name;
int age;
std::string address;
std::vector< Pet > pets;
public:
// constructors
PetOwner(
std::string name,
int age,
std::string address
);
// operations
void add( Pet const& ref_pet );
void print();
bool is_senior_citizen();
};//class PetOwner
class PetLicense {
const int cats_per_license = 3;
const double license_fee = 6.00;
const double processing_fee = 5.00;
const double donation_fee = 1.00;
const double state_fee = 1.00;
const double tag_fee = 2.00;
const double discount_fee = 5.00;
PetOwner* powner;
double total_fee;
int license_number;
public:
// constructors
PetLicense( PetOwner* powner );
// operations
double calculate_fee();
void print();
};//class PetLicense
#endif //PET_LICENSE_H_INCLUDED_