Past-paper question · 2016 May-June · Paper 43 · Q3(b)

Question 3(b) 2016 · May-June · Paper 43 · 5 marks

Original past-paper question for 3(B)
Original past-paper question for 3(B)
Original past-paper question for 3(B)
Reveal official mark-scheme answer Official mark-scheme answer for 3(B)

Official answer for Question 3

Part (b)

Part (b)

Question 5

✓
Mark as follows:
✓
Selection symbol x 2 (Car-hire / No car-hire)

Question 1

✓
Labelling for CAR_HIRE / NO_HIRE (accept similar labels*)

Question 1

✓
Labelling for Car registration and Car total / Total hires

Question 1

✓
Iteration symbol for HIRE (accept in HIRE_LIST as a BOD)

Question 1

✓
Labelling for start date and number of days (as per diagram)

Question 1

✓
* For CAR_HIRE label:
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge International A Level – May/June 2016
✓
9608

Question 43

✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s16_ms_43.pdf →

Show text version of question

Question 3

Part (b)

Question 3

A car hire company hires cars to customers. Each time a car is hired, this is treated as a transaction.

For each transaction, the following data are stored.

For the customer:

  • customer name
  • ID number

For the hire:

  • car registration
  • hire start date
  • number of days hired

The transaction data are stored in a text file HIRE-TRANS. The file is made up of a file body, F_BODY, and a file trailer, F_TRAILER.

F_BODY has one transaction, TRANS, on each line.

Part (b)

The computer system will produce many printed reports.

One report is CAR_REPORT. This displays all hire data for all cars.

For each car, the following data are displayed:

  • the car data
  • a list of all the hires
  • the total number of hires
A
car with zero hires is not included on the report.

Complete the following CAR_REPORT JSP data structure diagram.

CAR_REPORT

* CAR

No hires One or more hires

HIRE_LIST

HIRE

[5]

Question 8

Topic relevance

Why this question appears here

71% assigned-topic match · Hardware › Logic gates and logic circuits

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9608_s16_qp_43.pdf

Keep practising this topic