Question 5

AQA Computer Science June 2018 Paper 1GCSE7 marks

On the specification

3.1 Fundamentals of algorithms3.2 Programming3.3 Fundamentals of data representation
Question text

5 The subroutine CHAR_TO_CODE(character) returns the integer ASCII value of a character. For example, CHAR_TO_CODE('a') returns the value 97 CHAR_TO_CODE('z') returns the value 122 CHAR_TO_CODE('`') returns the value 96 CHAR_TO_CODE('{') returns the value 123 Develop an algorithm, using either pseudo-code or a flowchart, that: • asks the user to enter a character • outputs 'LOWER' if the user has entered a lowercase character • outputs 'NOT LOWER' if the user has entered any other character. You must use the built-in CHAR_TO_CODE subroutine in your answer. [7 marks]