Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

implement a c++ program for e-auction company that are selling products online. the program stores information of products, customers and sellers. e-auction company has list

implement a c++ program for e-auction company that are selling products online. the program stores information of products, customers and sellers. e-auction company has list of products available on-line by sellers which make the customer select a set of them then start bidding until time out and buy the product by higher bidding

we allready did the class part

#include #include using namespace std;

class Product { private: int barCode; double price; int quantity;

public: void setBarCode(int code) { barCode = code; } void setPrice(double p) { price = p; } void setQuantity(int q) { quantity = q; } int getBarCode() { return barCode; } double getPrice() { return price; } int getQuantity() { return quantity; } };

class Seller { private: int ID; string name; double rating; string contact;

public: void setID(int i) { ID = i; } void setName(string n) { name = n; } void setRating(double r) { rating = r; } void setContact(string c) { contact = c; } int getID() { return ID; } string getName() { return name; } double getRating() { return rating; } string getContact() { return contact; } };

class Customer { private: int ID; string name; string phone; int points;

public: void setID(int i) { ID = i; } void setName(string n) { name = n; } void setPhone(string p) { phone = p; } void setPoints(int pts) { points = pts; } int getID() { return ID; } string getName() { return name; } string getPhone() { return phone; } int getPoints() { return points; } };

class Auction { private: Product product; Seller seller; Customer customer; double eBidding; string Time;

public: void setProduct(Product p) { product = p; } void setSeller(Seller s) { seller = s; } void setCustomer(Customer c) { customer = c; } void setEBidding(double b) { eBidding = b; } void setTime(string t) { Time = t; } Product getProduct() { return product; } Seller getSeller() { return seller; } Customer getCustomer() { return customer; } double getEBidding() { return eBidding; } string getTime() { return Time; } };

(try to make it simple)we want you to do the linked list and the stack part using our class code

image text in transcribed

After developing these classes, the following four parts of the project must be implemented: Part1: Create the following Linked Lists: 1. Product list contains objects of products. 2. Seller list contains objects of Sellers and their product list for sale. 3. Customer list contains a list of product that has bidding and list of product which bought by customer. 4. Auction manage the e-Bidding system. Seller puts his product and time out for bidding then customers start their bidding until time out and sell the product by higher bidding Main Function to test the above classes and data structures must display the following menu to the user: Main menu: 1. Seller 2. Product 3. Customer 4. Auction Submenu under each item of Main Menu must have the following operations: a. Display b. Insert c. Delete d. Modify e. Find

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions