Computer Science pre-release

Watch this thread
hou huei pin
Badges: 1
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#1
Report Thread starter 3 years ago
#1
Can anyone help me to create a pseudocode for the 2019 May-June pre-release? i have no idea to doing it....
Last edited by hou huei pin; 3 years ago
0
reply
hou huei pin
Badges: 1
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#2
Report Thread starter 3 years ago
#2
(Original post by hou huei pin)
Can anyone help me to create a pseudocode for the 2019 May-June pre-release? i have no idea to doing it....
here is the question
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
company.
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.
0
reply
username3093384
Badges: 18
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#3
Report 3 years ago
#3
Is this A-Levels? can we have a link to the question or an image
0
reply
winterscoming
Badges: 19
Rep:
? You'll earn badges for being active around the site. Rep gems come when your posts are rated by other community members.
#4
Report 3 years ago
#4
If you don't like pseudocode, write it using a real programming language like Python instead - most of the exam boards generally don't care whether you use their pseudocode, or Python/VB/Java/etc, or whether you invent your own pseudocode style (as long as that style is something which resembles a programming language).

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.
Last edited by winterscoming; 3 years ago
0
reply
X

Quick Reply

Attached files
Write a reply...
Reply
new posts
Back
to top
Latest
My Feed

See more of what you like on
The Student Room

You can personalise what you see on TSR. Tell us a little about yourself to get started.

Personalise

Y13's - If you haven't confirmed your firm and insurance choices yet, why is that?

I am waiting until the deadline in case anything in my life changes (24)
18.75%
I am waiting until the deadline in case something else changes (e.g. exams/pandemic related concerns) (14)
10.94%
I am waiting until I can see the unis in person (9)
7.03%
I still have more questions before I make my decision (22)
17.19%
No reason, just haven't entered it yet (33)
25.78%
Something else (let us know in the thread!) (26)
20.31%

Watched Threads

View All