Question: SHOW ALL THE CODE AND CLASSES FOR THE FOLLOWING! You should work in groups of 2 or 3 for this program. No one should work
SHOW ALL THE CODE AND CLASSES FOR THE FOLLOWING! You should work in groups of or for this program. No one should
work alone.
Design and code a program that simulates an auction. You should
consider the following:
A file contains a list of a minimum of items to be auctioned. You can
decide on the format of this file and its contents. For example, the file
could look like this:
Oldsmobile, oldsmobile.gif,
World Cup soccer ticket, soccerTickets.gif,
Trip for to Rome, trip.gif,
LCD TV tvgif,
Movie night basket, basket.gif,
In the preceding file sample, each line represents an item as follows:
the first field is the items 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 items description is unique. You should
read in the contents of a file into an array.
Items are offered via an onlinelike auction. You do not need to include
any network programming; your program is a singlecomputer
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 a different name will be used each time 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 items highest bid, displayed
on the screen, should be updated if necessary.
There needs to be a button at the bottom of the page that ends the
auction. At the end of the auction, a new page should display showing
the name of the highest bidder, the details of the item and the winning
bid.
The design of your GUI is important. Use color and layouts to make it
visually appealing.
Be sure to include the name of each team member at the top of the
file.
Grading Criteria:
points Program compiles and runs
points Reads in the file and stores the data into an array
points Uses a list box or combo box to display the item with all
details
points Current highest bid is displayed
points Ability to bid on an item
points The name of the highest bidder and the highest bid
should be written to a file
points Update file each time a bid is made
points Separate screen showing winning bids at end of auction.
points Button at bottom of screen that ends auction
points Documentation
points Design Any number of points from can be
deducted for design issues.
Show the code for the question above and create a view. main, controller, and model classes. Please show every line of code needed.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
