Utilize linked stack class to support an application

Assignment Help Computer Engineering
Reference no: EM133069

Question

Utilize Linked stack class to support an application that tracks the status of an online auction. Budding starts at 1(dollars, pounds, euro's, or whatever) and proceeds in increments of at least 1. If a bid arrives that is less than the current bid, it is discarded. If a bid arrives that is more than the current bid, but less than the maximum bid by present high bidder, then the current bid for the present high bidder is increased to match it and the new bid is discarded. If a bid arrives that is more than the utmost bid for the current high bidder, then the new bidder becomes the current high bidder, at a bid of one more than the previous high bidder's maximum. When the auction is over (the end of the input is reached), a history of the actual bids (the ones not discarded), from high bid to low bid, should be displayed. Such as-

New proposal Result High Bidder High Bid Maximum Bid
7 John New high bidder john 1 7
5 Hank High bid increased john 5 7
10 Jill New high bidder Jill 8 10
8 Thad no change Jill 8 10
15 joey New high bidder joey 11 15
The proposal history for this auction would be
Joey 11
Jill 8
John 5
John 1

Input or output details can be determined by you or your tutor. In any case, as input precedes the current status of the auction have to be displayed. The final output must include the bid history as describe.

Reference no: EM133069

Questions Cloud

Execute the boolean functions : Execute the Boolean functions
Problem on bubble sort algorithm : Problem on Bubble sort algorithm
Write down a user-defined function : Write down a user-defined function
Critically explain the four goals of social work practice : Critically explain the four goals of social work practice as laid down by the National Association of Social Workers.
Utilize linked stack class to support an application : Utilize Linked stack class to support an application
Examine marxs concept of alienation : Examine Marx's concept of alienation Discuss the views of Marx, Weber and Durkheim on modernity
Which would create a better product : Which would create a better product
Discuss the use of counselling in mental health institutions : Discuss the use of counselling in mental health institutions Explain how mental illnesses are viewed across cultures?
Explain how a packet is encapsulated : Explain how a packet is encapsulated

Reviews

Write a Review

Computer Engineering Questions & Answers

  Program that displays information about a family member

Program that displays information about a family member

  Recognize how to locate fsmo roles

Recognize how to locate FSMO roles?

  How can sophie use applocker

How can Sophie use AppLocker.

  What is total capacity of a track

What is total capacity of a track

  Calculate average time in a linear search

Calculate average time in a linear search

  Find minimal cover and identify all possible candidate keys

Find minimal cover and identify all possible candidate keys - Functional Dependencies

  How to produce an average class with a public data

How to produce an Average class with a public data Produce an Average class with a public data member to collect the sum of integer entries and a public data member to hold the double average of the sum of the 10 integers.

  What is response time

What is response time

  What is dft of a pure cosine wave cos

What is DFT of a pure cosine wave cos(t) sampled at n equally spaced points on the interval [0, 2π)?

  How to write a report on object-oriented systems

How to write a report on Object-Oriented Systems?

  Plan the decision table with all possibilities

Plan the decision table with all possibilities

  Description of problems and business impacts

Description of problems and business impacts

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd