A simple C++ project that models a basic negotiation system using three values: the item market price, the seller's ask, and the buyer's offer. It demonstrates how a purchase decision can be evaluated by comparing those values in a lightweight command-line workflow.
This project provides a minimal negotiation engine where:
- The market price is established for the item
- The seller sets an asking price
- The buyer submits an offer
- The system compares the buyer's offer against the seller's ask and the market price to determine the negotiation outcome
The system is intentionally simple and beginner-friendly, making it suitable for learning about decision logic, input handling, and iterative state management in C++.
- Tracks the market price of the item
- Stores the seller's ask
- Accepts the buyer's offer
- Compares the buyer's offer to the seller's ask and the market price to decide whether the deal is favorable, acceptable, or rejected
- Command-line interface
- Easy to extend with more negotiation rules or AI behavior
- The system starts with a known market price for the item.
- The seller provides their ask.
- The buyer enters an offer.
- The system evaluates the offer relative to the seller's ask and the market price.
- The negotiation loop continues until the process ends.
Item Market Value: $50
Set your asking price: 70
Buyer: That's a fair deal. I'll take it!
System: Transaction completed.
Balance: $70
Compile the project with a C++ compiler, for example:
g++ main.cpp -o negotiation
./negotiation- Add scoring or utility-based decision making based on the difference between market price, ask, and offer
- Support multiple negotiation rounds with history tracking
- Implement structured data models for market price, ask, and offer
- Add a graphical or web-based interface
- Add or Make a better AI model for the negotiator
This project is a foundational example of a negotiation system built around market price, seller ask, and buyer offer, and it can be expanded into a more advanced trading or bargaining simulation.
made by Ayaan Dhalait