HELPPPPPPPPPPPPPPPPPPPPPPPPPPPP

Scenario:
You are a recent college graduate who has been hired by a shipping company. The shipping company operates in the United States and currently all of their clients reside in the U.S. The company ships packages to any part of the world.
It charges a flat fee of $10.00 for domestic packages weighting less than 10.01 lbs. If a package is over 10 lbs., an additional charge of $0.50 per pound is added to the cost.
For international packages it charges a flat fee of $15 for packages weighting less than 5.01 lbs. and an additional charge of $2.75 per pound is added to the cost.
The senior lead programmer of the company asks you to write the implementation for the classes to be used in a program that will handle clients and packages.
He provides you with classes’ definitions and you are required to write the implementation for those classes and also make sure they work before he bundles them with the main program.

Here are the class
#ifndef Client_H
#define Client_H

#include "CustomerBase.h"
#include "DomesticPackage.h"
#include "InternationalPackage.h"
#include <fstream>
#include <vector>

class Client : public CustomerBase
{
friend ostream& operator<<(ostream& out, Client& object);
friend ifstream& operator>>(ifstream& in, Client& object);
friend istream& operator>>(istream&, Client&);
friend void readClientFile(ifstream&, vector<Client>&);
public:
Client();
~Client();
double getTotalSpent();
void InsertDomesticPackage();
void InsertDomesticPackage(DomesticPackage&);
void InsertInternationalPackage();
void InsertInternationalPackage(InternationalPackage&);
void DisplayPackages();
void MinimalDetails();
void Display();
//overloaded operators
bool operator<(const Client&) const;
bool operator<(const string) const;
bool operator>(const Client&) const;
bool operator>(const string) const;
bool operator==(const Client&) const;
bool operator==(const string) const;
const Client& operator=(const Client& rhsObject);

private:
string Address;
string City;
string State;
string Zip;
string Telephone;
vector<DomesticPackage> Domestic;
vector<InternationalPackage> International;
};
class CustomerBase
{
public:
CustomerBase();
~CustomerBase();
virtual double getTotalSpent() = 0;
virtual void DisplayPackages() = 0;
protected:
string ClientId;
string Name;
};

class DomesticPackage : public PackageBase
{
friend ostream& operator<<(ostream&, DomesticPackage&);
friend istream& operator>>(istream& in, DomesticPackage& object);

public:
DomesticPackage();
~DomesticPackage();
double getRate();
void setRate(double _weight);
void changeRecipient(string Name);
// overloaded operators
bool operator==(const DomesticPackage&) const;
bool operator>(const DomesticPackage&) const;
bool operator<(const DomesticPackage&) const;

private:
string Address;
string City;
string State;
string Zip;
string Country;
double Rate; // to be multiplied by weight
double Weight; // in lbs
};
class InternationalPackage : public PackageBase
{
friend ostream& operator<<(ostream&, InternationalPackage&);
friend istream& operator>>(istream&, InternationalPackage&);

public:
InternationalPackage();
~InternationalPackage();
double getRate();
void setRate(double _weight);
void changeRecipient(string Name);
// overloaded operators
bool operator==(const InternationalPackage&) const;
bool operator>(const InternationalPackage&) const;
bool operator<(const InternationalPackage&) const;

private:
string Address1;
string Address2;
string Address3;
string Country;
double Rate; // to be multiplied by weight
double Weight; // in lbs
};
class PackageBase
{

public:
PackageBase();
~PackageBase();
virtual double getRate()=0;
virtual void changeRecipient(string Name) = 0;
protected:
string TrackNumber;
string Recipient;
};


//Here is the .txt file

73141
John Lebowitz
134 Glenfield Court
Danbury
CT 06810
(203) 458-7898
10258
Michelle Ironwood
32 Greenville Pl
Pasadena
CA 91103
(916) 781-4579
11334
Samuel Lizboach
123 Rowland Street
Blue Mountain
MS 38610
(662) 987-6473
99382
Claudio Stolz
2487 Clyde Hill Rd.
Fort Ransom
ND 58033
(701) 476-5813
33109
Cynthia Rutgers
12-75 Lynbrook Ave.
Daytona Beach
FL 32120
(386) 720-1973
21897
Louis Bellmore
2437 Park Ave.
New York
NY 10105
(212) 345-7105
34189
Jose Maldonado
298 Borland Ave
Central Islip
NY 11722
(631) 347-7852
31873
Carlos Arroyo
44 Carman St.
Patchogue
NY 11772
(631) 698-7084
47200
Elizabeth Clementine
1085 Rhinelander Ave.
Bronx
NY 10454
(347) 780-4391
18278
Martin Pedreguas
23 E 195th St.
Bronxville
NY 10708
(914) 278-0072
84502
Jorge Redondo
1389 Market St.
Perth Amboy
NJ 08862
(782) 863-0507

The output have to look like this :
*** Rapid Package Delivery, Inc ***

1. Enter a new client
2. Search for a client
3. Send domestic package
4. Send international package
5. Print client's list
6. Print a specific client history
7. Print an income summary report
0. Exit the program

Make a selection :.

If you need more information please contact me,i have the executable .I need this program right away if u can.
thank you
What is your question?
i need to implement those classes pleaseeee !!!!!
I am not good with overloading operators
Here is some info on operator overloading:
http://cplusplus.com/doc/tutorial/classes2/
Topic archived. No new replies allowed.