Computer Science pre-releaseWatch this thread
Can anyone help me to create a pseudocode for the 2019 May-June pre-release? i have no idea to doing it....
In preparation for the examination candidates should attempt the following practical tasks by writing
and testing a program or programs.
An auction company has an interactive auction board at their sale rooms, which allows buyers to place
bids at any time during the auction. Before the auction starts, the sellers place their items in the sale
room with a unique number attached to each item (item number). The following details about each item
need to be set up on the interactive auction board system: item 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 items in the sale room and then place a bid on the interactive
auction board at the sale room. Each buyer is given a unique number for identification (buyer number).
All the buyer needs to do is enter their buyer number, the item number and their bid. Their bid must be
greater than any existing bids.
At the end of the auction, the company checks all the items and marks those that have bids greater
than the reserve as sold. Any items sold will incur a fee of 10% of the final bid to be paid to the auction
Write and test a program or programs for the auction company.
• Your program or programs 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 tested.
Task 1 – Auction set up.
For every item in the auction the item number, description and the reserve price should be recorded.
The number of bids is set to zero. There must be at least 10 items in the auction.
Task 2 – Buyer bids.
A buyer should be able to find an item and view the item 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 item is increased by one.
Buyers can bid for an item many times and they can bid for many items.
Task 3 – At the end of the auction.
Using the results from TASK 2, identify items that have reached their reserve price, mark them as sold,
calculate 10% of the final bid as the auction company fee and add this to the total fee for all sold items.
Display this total fee. Display the item number and final bid for all the items with bids that have not
reached their reserve price. Display the item number of any items that have received no bids. Display
the number of items sold, the number of items that did not meet the reserve price and the number of
items with no bids.
If you write it using a real programming language, you can run the program and see what happens.
The question has already broken down the problem - start out by attempting the first task and work from there. You can break down the problems further still - the key to solving programming problems is divide-and-conquer until you have something small enough that you can solve on its own.
Read the problem carefully, check the wording of the problem to see which clues it gives you about the programming concepts you need - variables, if/else logic, lists, loops, etc. Those are 'building blocks' that you can use to put a program together.