Course Solutions Uncategorized (Solved) : C Question Writing Rather Primitive Online Store Simulator Three Classes Product Customer Q27476891 . . . .

(Solved) : C Question Writing Rather Primitive Online Store Simulator Three Classes Product Customer Q27476891 . . . .

 

C++ Question

You will be writing a (rather primitive) online store simulator.It will have three classes: Product, Customer and Store. To makethings a little simpler for you, I am supplying you with the three.hpp files. You will write the three implementation files. Youshould not alter the provided .hpp files.

Here are the .hpp files: Product.hpp, Customer.hpp andStore.hpp.

#ifndef PRODUCT_HPP
#define PRODUCT_HPP
#include <string>
class Product
{
private:
std::string idCode;
std::string title;
std::string description;
double price;
int quantityAvailable;
public:
Product(std::string id, std::string t, std::string d, double p,int
qa);
std::string getIdCode();
std::string getTitle();
std::string getDescription();
double getPrice();
int getQuantityAvailable();
void decreaseQuantity();
};
#endif

#ifndef CUSTOMER_HPP
#define CUSTOMER_HPP
#include <vector>
#include “Product.hpp”
class Customer
{
private:
std::vector<std::string> cart;
std::string name;
std::string accountID;
bool premiumMember;
public:
Customer(std::string n, std::string a, bool pm);
std::string getAccountID();
std::vector<std::string> getCart();
void addProductToCart(std::string);
bool isPremiumMember();
void emptyCart();
};
#endif

#ifndef STORE_HPP
#define STORE_HPP
#include <vector>
#include <string>
#include

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Required information [The following information applies to the questions displayed below. The following financial statements and a(Answered) : Required information [The following information applies to the questions displayed below. The following financial statements and a

Required information [The following information applies to the questions displayed below. The following financial statements and additional information are reported IKIBAN INC. Comparative Balance Sheets June 30, 2017 and 2016

(Solved) : One Following Software Design Activity O Architectural Design O Interface Design O Databas Q34306183 . . . .(Solved) : One Following Software Design Activity O Architectural Design O Interface Design O Databas Q34306183 . . . .

1)<br/><img src="https://media.cheggcdn.com/media%2F102%2F1028e90f-7706-466a-9c47-94ec969913ac%2Fimage.png" alt="Which one of the following is NOT a software design activity? O Architectural design o Interface design o Database design O Requirement design" aria-describedby="d3f"/><img src="https://media.cheggcdn.com/media%2F602%2F60222239-a0af-4117-9679-dcdd03c3e87d%2Fimage.png" alt="object. The data