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

  Predicate color and action paint using situation calculus

Predicate color and action paint using situation calculus

  Briefly describe the concept of queues

Briefly describe the concept of queues.

  Program on inline internal procedures deposit and withdraw

Program on Inline internal procedures deposit and withdraw.

  How to make an xml file in visual studio

How to make an xml file in Visual Studio

  Write pseudo code - program and draw flow chart

Write pseudo code, program and draw flow chart for programs

  Program for dissimilar values for real numbers

Program for dissimilar values for real numbers

  What is proficient by page buffering

What is proficient by page buffering

  Recognize how to locate fsmo roles

Recognize how to locate FSMO roles?

  Security policy document project

Analyze security requirements and develop a security policy

  Explain in details what are structures

Explain in details what are structures.

  Produce the context diagram for system

Produce the context diagram for system.

  Write a program that mimics a flop-turn-river of poker game

Write down a program that mimics a flop-turn-river of a poker game. I must have three buttons titled Deal, Shuffle and Start Over.

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