<file_sep>#include "Time.h"
#include <ctime>

Time::Time()
{
        time_t now ;
        struct tm *now_tm;
        int hr,min;
        now = time(NULL);
        now_tm = localtime(&now);
        hr = now_tm->tm_hour;
        min = now_tm->tm_min;
        hours=hr;
        minutes=min;
        cout<<hours<<endl<<minutes<<endl;
}
/*Time operator+ (int shDur) //Shopping Duration
{
    Time t;
    t.hours=hours+shDur ;
    t.minutes=minutes+shDur ;
    return t ;
}*/

/*Time operator+ (int shDur) //Shopping Duration
{
    
    hours=hours+shDur ;
    minutes=minutes+shDur ;
    return *this ;
}*/
<file_sep>#include <Person.h>
#include <Time.h>

class Customer : public Person
{
    int id;
    Time arrivalTime;
    public:
        Customer();
};
<file_sep>#include "Stock.cpp"

#include <iostream>
#include <unordered_map>

using namespace std;

int main(){
    Stock s1;
    Item *t1;
    s1.sortStock();
    s1.addItem("potato", "Drinking", 2515, 222);
    t1 = s1.findItemWithName("potato");
    cout << t1->getName();
    s1.printStock();
}
<file_sep>#include "Administrator.h"

Administrator::Administrator()
{

}

void Administrator::ReportAvailableItems(int) const
{
    
}


void Administrator::AddNewItem(int, string, type, amount)
{
    
}


void Administrator::UpdateExistingItem(int)
{
    
}


void Administrator::ReportTotalRevenue()
{
    
}


int Administrator::TotalCustomer()
{
    return customerList.size();
}


double Administrator::MaxReceipt()
{
    return maxReceipt;
}


void Administrator::SaveStock()
{
    
}


void Administrator::AddCustomer( Customer c )
{
    double total = c.getTotal();
    if (total > maxReceipt) {
        maxReceipt = total
    }
    
    customerList.push_back(c);
    
}<file_sep>#include <string>

using namespace std;

class Person    //BaseClass For Admin & Customer
{
    string name,address;
    public:
        Person();
};
<file_sep>#include <ctime>
using namespace std;

class Time
{
    int hours , minutes ;
public:
    Time();
    Time operator + (int) ;
};
<file_sep>#include "Item.cpp"
#include "Time.cpp"

#include <iostream>
#include <unordered_map>

using namespace std;

int main(){
    Time t;
//   hash<string> hashItem;
//   string str; 
//   cin >> str;
//   int hashedItem = hashItem(str);
//   cout << hashedItem << endl;
}
<file_sep>#include <Person.h>
#include "Stock.h"
#include "Customer.h"
#include <vector>

using namespace std;

class Administrator : public Person
{
    Stock stock;
    vector<Customer> customerList;
    double totalRevenue;
    double maxReceipt;
    public:
        Administrator();
        void ReportAvailableItems(int) const;
        void AddNewItem(int, string, type, amount);
        void UpdateExistingItem(int);
        void ReportTotalRevenue();
        int TotalCustomer();
        double MaxReceipt();
        void SaveStock();
        void AddCustomer(Customer);
};
