This repository has been archived by the owner on Jan 25, 2023. It is now read-only.
forked from cop3330f19/b2b-shopping-cart-cop-3330-group-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomer.cpp
77 lines (60 loc) · 1.54 KB
/
Customer.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/*
Group 2 B2B
Customer Class Implementation
Group members:
Zahir Cooper
Eric Lampley
Amani Muller
Claressa Wilson
Date last edit: 2/24/2020
*/
#include "StringHelper.h"
#include <iostream>
#include <cmath>
#include <iomanip>
#include "Customer.h"
#include "Address.h"
#include "Product.h"
#include <fstream>
#ifndef ADDRESS
#ifndef CUSTOMER
#ifndef PRODUCT
#endif
#endif
#endif
using namespace std;
Customer:: Customer(string cus_num, string cus_name, double credit) :
customerName(cus_name), customerNum(cus_name), lineOfCredit(credit)
{
}
//Customer * asa (.....)
//asa.corperateAddress->streetAddress
Customer:: Customer()
{
}
// Set customer name
void Customer:: setCustomerName(string cus_name) { customerName = cus_name; }
// Set Customer number
void Customer:: setCustomerNum(string cus_num) { customerNum = cus_num; }
// Set Customer Credit
void Customer:: setCustomerCredit(double credit) {lineOfCredit = credit; }
// Get customer name
string Customer:: getCustomerName(){ return customerName; }
// Get Customer number
string Customer:: getCustomerNum() { return customerNum; }
// Get Customer Credit Line
double Customer:: getCustomerCredit() {return lineOfCredit; }
void Customer:: setCorperateAddress(Address * address)
{
corperateAddress = address;
}
Address * Customer:: getCorperateAddress()
{
return corperateAddress;
}
void const Customer:: print()
{
cout << "Customer Number: " << customerNum << endl;
cout << "Customer: " << customerName << endl;
cout << "Address: " << corperateAddress << " |" << endl;
}