Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Auction Management System
   Summary:
   A console application for auctions.
   Details:
   Write a function-based C++ program which provides the following functionalities to sellers and buyers.
   Sellers
   • Sign up.
   First name, last name, user name (it should be unique), CNIC, password, confirm password.
   • Sing in.
   User name, password
   • Sign out.
   • Exit.
   • Change password.
   • Post item.
   Item name, description, posting date, deadline to bid, and minimum bid value. All new items have their statuses
   set as available by default which means they are visible to the buyers and they can place their bids. A unique
   item ID is automatically assigned to it which can’t be modified by the seller.
   • Modify item details.
   • View list of posted items.
   Show item ID, item name, minimum price, number of people who made bid on that item, maximum bid value
   and the buyer ID who placed this maximum bid, and item status.
   • Sell item
   Change item status to sold. The item gets sold to the buyer with maximum bid.
   • Close item
   Change item status to close. Buyer can no longer place bids on the item.
   Buyers
   • Sign up.
   First name, last name, user name (it should be unique), CNIC, password, confirm password
   • Sing in.
   User name, password
   • Sign out.
   • Exit.
   • Change password.
   • View available items
   Display each item’s item ID, item name, description, deadline to bid, total number of bids, and maximum bid. In
   case of 0 bids, maximum bid is the minimum bid set by the seller.
   • Place bid
   The bid placed must be greater than the maximum bid. User can place multiple bids on a same item.
   • View list of bid items.
   Item ID, item name, total bids, maximum bid, item status.
   • View list of bought items.
   Item ID, item name, total bids, maximum bid.
       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
Posted
Updated 24-Jun-20 6:14am
v3
Comments
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:
Summary:
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.
Sellers
• Sign up.
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.
 
Share this answer
 
Comments
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:

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