
12.18 Exercises,Problems,and Projects 939
EXERCISES,PROBLEMS, AND PROJECTS
12.18.9 Group Project (for a group of 1,2, or 3 students)
74. 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 for-
mat of this file and its 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 field is the item’s description, the second field is the name of
a file containing an image ...