Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Design and code a program that simulates an auction. You should consider the fol

ID: 3531587 • Letter: D

Question

Design and code a program that simulates an auction. You should consider the following:

A file contains a list of items to be auctioned. You can decide on the format of this file and it's contents. For example, the file could look like this:

Oldsmobile, oldsmobile.gif, 100

World Cup soccer ticket, soccerTickets.gif, 50

Trip for 2 to Rome, trip.gif, 100

In the preceding file sample, each line represents an item as follows:

the first filed is the item's description, the second field is the name of a file containing an image of the item, and the third field is the minimum bid. You can assume that each item's description is unique.

Items are offered via an online-like auction. (You do not need to include any network programming; your program is a single-computer program.) Users of the program can choose which item to bid on from a list or a combo box. Along with displaying the description of the item, your program should show a picture of the item and the current highest bid (at the beginning, the current highest bid is the minimum bid). Users bid on an item by selecting the item, typing their name (you can assume that all users have a different name), and entering a price for the item. Your program should remember the highest bidder and the highest bid for each item by writing the information to a file. Furthermore, each time a bid is made, the item's highest bid, displayed on the screen, should be updated if necessary.

In addition to the requirements above:

1. Add a date field to each item that indicates when the auction for that item will end. When you display the item(s) available indicate how many days until the auction for that item ends. The value displayed should automatically adjust for each passing day. Unlike ebay you just need to work in days and do not need to worry about the time of day.

2. Add a separate interface that will let the owner of the auction to manage and review the list of items being offered.

3. Provide the owner of the auction the ability to review all of the bids each item. This information should include who make a bid for an item, the date the bid is made, and the amount of the bid.

4. You may add any additional fields to the data file that you need.

5. As describe in the text you can assume that each item name and each bidder name is unique.

Explanation / Answer



Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote