Question
JAVA CODING NEEDED. This program will let us see how a stack is used in an actual application. Using a stack to keep track of
JAVA CODING NEEDED.
This program will let us see how a stack is used in an actual application. Using a stack to keep track of an online auction can be really helpful as the ADT of the data structure maps well to the actual bidding process.
1) Create a class called Bid that contains the user's name, current bid, and max bid. Then, you can store items of the class Bid on your stack. You should only have one stack in your program that manages objects of type Bid. Let the stack do the bulk of the work in this program.
2) Let the stack do the work for you. Use one of the book's stack implementations and implement the bid logic on top of that. You are only storing data in the Stack. You should not need to modify the book's stack code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started