Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Implement this below mentioned program in any object oriented programming language

Implement this below mentioned program in any object oriented programming language

Computer Science

Implement this below mentioned program in any object oriented programming language.

 

 

Problem:

An auction firm has an interactive auction committee at their auction center that lets buyers to place bids at any time during the auction. Before starting of the auction, the seller is required to keep their products in the sale center with a unique number attached to each product (product _number). The following details about each product

need to be set up on the interactive auction board system: product number, number of bids, description

and reserve price. The number of bids is initially set to zero.

During the auction, buyers can look at the products in the sale center and then place a bid on the interactive auction board at the sale center. Each buyer is given a unique number for identification (buyer number).

All the buyer needs to do is enter their buyer number, the product number and their bid. Their bid must be greater than any existing bids.

At the end of the auction, the firm checks all the products and marks those that have bids greater

than the reserve as sold. Any products sold will incur a fee of 10% of the final bid to be paid to the auction firm.

Task 1 - Auction set up [2.5]

For every product in the auction the product number, description and the reserve price should be recorded. The number of bids is set to zero. There must be at least 10 products in the auction.

Task 2 - Buyer bids [2.5]

A buyer should be able to find an product and view the product number, description and the current highest bid. A buyer can then enter their buyer number and bid, which must be higher than any previously recorded bids. Every time a new bid is recorded the number of bids for that product is increased by one. Buyers can bid for an product many times and they can bid for many products.

Task 3 - At the end of the auction [2.5]

Using the results from TASK 2, identify products that have reached their reserve price, mark them as sold, calculate 10% of the final bid as the auction firm fee and add this to the total fee for all sold products. Display this total fee. Display the product number and final bid for all the products with bids that have not reached their reserve price. Display the product number of any products that have received no bids. Display the number of products sold, the number of products that did not meet the reserve price and the number of products with no bids.

Task 4 - Utility class [2.5]

Write utility class to create the objects of the auction class designed, in order to test that the tasks are fully implemented.

Guidelines:

·        Your program must include all the required constructors and getter setter methods.

·        Your program must include appropriate prompts for the entry of data, data must be

validated on entry.

·        Error messages and other output need to be set out clearly and understandably.

·        All variables, constants and other identifiers must have meaningful names.

You will need to complete these three tasks. Each task must be fully implemented.

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Related Questions