Constructs

EasyMediumHard
123456789101112131415161718192021222324252627282930
Question 7
Medium

A local library uses an automated system to determine the loan duration of a book based on its category.

  • If the category is "Bestseller", the loan duration is "7 days".
  • If the category is "New Release", the loan duration is "14 days".
  • For all other categories, the loan duration is "28 days".

The system inputs the book category into the variable book_category.

Complete the flowchart by providing the missing statements and decisions for the labels A, B, C, D, E, and F.

A flowchart determining loan periods. It begins with a 'Start' terminal symbol pointing to a parallelogram labelled 'A'. 'A' points to a decision diamond labelled 'book_category == "Bestseller"?'. The 'Yes' branch of this diamond points to a parallelogram 'B'. The 'No' branch points to a decision diamond 'C'. The 'Yes' branch of diamond 'C' points to a parallelogram 'D'. The 'No' branch of diamond 'C' points to a parallelogram 'E'. All three parallelograms (B, D, and E) point to a terminal symbol 'F'.

[6]

Constructs Questions

  1. GCSE
  2. /Computer Science
  3. /Constructs