A program is being developed to help the manager of a shop control the stock.
- (a)An identifier table has been used during the design stage. Complete the identifier table: Example value Explanation Variable name Data type "Fruit" a category of stock that is sold in the shop 20/02/2025 when an item was sold 12.67 the cost of an item TRUE to indicate if an item is in stock[4]
- (b)A module Sales () is part of the stock control program. The table contains pseudocode extracts from the module Sales() Each extract may include all or part of: • assignment • selection • iteration (repetition). Complete the table by placing one or more ticks (✔) in each row: Pseudocode extract Assignment Selection Iteration Result ← CalculateTotal() WHILE IsClosed REPEAT INPUT Value UNTIL Sales[4] > Value IF Sales[Current] <= 150 THEN Discount ← TRUE ENDIF CASE OF Option[5]
- (c)Decomposition has been used to design the program to help the shop manager control the stock. Describe decomposition.[3]
Mark scheme
Marking points from the official mark scheme (May/June 2025). The mark or mark type is shown in brackets.
- [4] Category STRING
- [4] DateSold DATE
- [4] (Item)Cost/Price REAL
- [4] (Item)InStock BOOLEAN
- [1] Result ← CalculateTotal() Assignment: ✔
- [1] WHILE IsClosed Iteration: ✔
- [1] REPEAT ... UNTIL Sales[4] > Value Assignment: ✔ Iteration: ✔
- [1] IF Sales(Current) <= 150 THEN ... ENDIF Selection: ✔
- [1] CASE OF Option Selection: ✔
- [1] Breaking down a problem into sub problems
- [1] In order to explain / understand the process/task of how a (stock control) can be managed in more detail
- [1] Leading to the concept of the program designed as a series of modules / procedures / functions // or by example of different stock control modules
- [1] Makes the program easier to test / debug
Write your answer and get it marked
On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.
Sign up free →