Click here to Skip to main content
14,845,769 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
  1  Auction Management System
  2     Summary:
  3     A console application for auctions.
  4     Details:
  5     Write a function-based C++ program which provides the following functionalities to sellers and buyers.
  6     Sellers
  7     • Sign up.
  8     First name, last name, user name (it should be unique), CNIC, password, confirm password.
  9     • Sing in.
 10     User name, password
 11     • Sign out.
 12     • Exit.
 13     • Change password.
 14     • Post item.
 15     Item name, description, posting date, deadline to bid, and minimum bid value. All new items have their statuses
 16     set as available by default which means they are visible to the buyers and they can place their bids. A unique
 17     item ID is automatically assigned to it which can’t be modified by the seller.
 18     • Modify item details.
 19     • View list of posted items.
 20     Show item ID, item name, minimum price, number of people who made bid on that item, maximum bid value
 21     and the buyer ID who placed this maximum bid, and item status.
 22     • Sell item
 23     Change item status to sold. The item gets sold to the buyer with maximum bid.
 24     • Close item
 25     Change item status to close. Buyer can no longer place bids on the item.
 26     Buyers
 27     • Sign up.
 28     First name, last name, user name (it should be unique), CNIC, password, confirm password
 29     • Sing in.
 30     User name, password
 31     • Sign out.
 32     • Exit.
 33     • Change password.
 34     • View available items
 35     Display each item’s item ID, item name, description, deadline to bid, total number of bids, and maximum bid. In
 36     case of 0 bids, maximum bid is the minimum bid set by the seller.
 37     • Place bid
 38     The bid placed must be greater than the maximum bid. User can place multiple bids on a same item.
 39     • View list of bid items.
 40     Item ID, item name, total bids, maximum bid, item status.
 41     • View list of bought items.
 42     Item ID, item name, total bids, maximum bid.
 43         Save all required data in text file(s). Use appropriate menus where ever they are required.

What I have tried:

i am unable to do this question, i am trying but i cant make any logic for this question. I WILL UPLOAD MY CODE which i tried after 2 days
Updated 24-Jun-20 6:14am
MadMyche 23-Jun-20 11:26am
Can you do any part of this task? Or do you just want someone to write out all of the code for you?
NaumanMalik 23-Jun-20 12:26pm
i will do like whole code? i was using this site for first time so i thought no one will help so im doing code now and will upload it after 2 days for checking

1 solution

We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

Start by reading the question carefully, and work out for the first part what you do and don't know how to do.
For the stuff you do know, you're fine.
For the stuff you don't, break it down into simpler steps. Then repeat the process: separate what you know how to do from what you don't. Keep repeating the "simplification" process and eventually you should find the whole thing is "stuff you know how to do".
So do it. Test it, and be sure it works.
For example:
  1  Summary:
  2  A console application for auctions in Pakistan.
You know how to create a new Console project in Visual studio.
So do it. Give it an appropriate name, and that bit is done.

Move on to the second bit and do the same thing.
  1  Sellers
  2  • Sign up.
  3  First name, last name, user name (it should be unique), CNIC, password, confirm password.
Not complicated - it's telling you what you need to store, and giving you some limits.
You need to write a method that does a sign up, and returns the info - probably in a class instance - to the caller.
You know how to write a function, so create a bare-bones function to do it.
Now start filling it in.

Keep doing it in little bits - testing thoroughly as you go - and the whole thing should work at the end.
NaumanMalik 23-Jun-20 12:24pm
well, Neither i'm getting paid nor its part of my grades. actually i am practicing on dynammic memory ... so i was doing this i can do functions pointers etc but i dont know how to verify it :( may be it is leaking memory or idk? so if i do all the code would check it for me? and tell me if there is any mistake? i will upload my cpp about after 1-2 days.?
Richard MacCutchan 23-Jun-20 12:48pm
There are much simpler ways to practice using dynamic memory.
NaumanMalik 23-Jun-20 18:40pm
My teacher said in last semester try these projects in vacations. the bigger programs you do the maximum you will learn.
OriginalGriff 23-Jun-20 21:04pm
Yes, but the important bits of that are "you" and "learn".
Us doing it for you doesn't teach you anything!

So if the project is too big, try a smaller one - it takes practice to get your "mental fitness" up to the point where larger projects are feasible - just like it takes practice to get your "physical fitness" up to the point where you can run a marathon.
You can't jump into a large project from a couple of hundred lines of code max, any more than you can run a marathon on the basis of surviving a 100m sprint ... :laugh:
NaumanMalik 23-Jun-20 21:11pm
you are right but i can do it and i am doing it ... its just that i want some one to check it and to tell me my mistakes only :) :Thankfully:
OriginalGriff 23-Jun-20 21:27pm
Except you aren't making mistakes - you aren't doing anything!

In order to make mistakes - and they are an important part of learning - you have to try to do it for yourself. "i am unable to do this question, i am trying but i cant make any logic for this question" does not produce any code at all, so it isn't a "mistake" we can correct.
NaumanMalik 24-Jun-20 7:14am
im working on it i will complete it and then upload it
NaumanMalik 24-Jun-20 7:17am
kindly check this code... if you dont mind ;(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900