ExamBank Scot · Higher Computing Science question bank · All Higher Computing Science questions

Higher Computing Science 2018 Question 12 (CfE)

13 marks · Testing and evaluation

The developers of the app are using agile methodologies. They employ usability testing as part of this. Describe how usability testing influences the development of the app. The app will have information on the top 100 movies of all time including the studio that made the movie, fan ratings and takings at the box office. For example: Title Studio Rating (out of 100) Takings ($m) The Matrice Nightworks 85 6.7 The Home Route Gateway 42 0.4 Freezing Aurora 95 12.5 .... ..... ...... ...... Using pseudocode or a programming language of your choice, define a suitable record data structure for the movie data above. Using pseudocode or a programming language of your choice, declare the variable which can store the details of the top 100 movies. Your answer should use the record data structure created in part (i). Using pseudocode or a programming language of your choice, write an algorithm which: • asks for a studio name • totals the number of movies that the studio has in the top 100 • saves the studio name and total to file. A new app is being developed for movie fans.

Marking scheme

• Create prototypes/wireframes/ design of user interface. • Prospective users perform tasks. • Developers observe/interview/ discuss scenarios with users. • Obtain feedback to influence changes. 1 mark for each bullet. Maximum 3 marks Record name and appropriate start/end eg { } (1 mark) Four fields with correct data types (1 mark) RECORD movie IS { STRING title, STRING studio, INTEGER rating, REAL takings } Array of 100. (1 mark) Data type matching answer in (a). (1 mark) DECLARE topMovies AS ARRAY OF movie INITIALLY[]*99 Initialise and increment count. (1 mark) Loop that traverses array. (1 mark) If condition with: • correct use of array variable (1 mark) • comparing current value of studio field to target (1 mark) Open/Create & Close file. (1 mark) Write target & count to file. (1 mark) (Referring to b part (i) and (ii) may be helpful) DECLARE count INITIALLY 0 RECEIVE target FROM KEYBOARD FOR index FROM 0 TO 99 DO IF topMovies(index).studio = target THEN count=count+1 END IF END FOR OPEN “highest.txt” WRITE target, count CLOSE “highest.txt”

Previous question: Higher Computing Science 2018 Question 11 (CfE)

Next question: Higher Computing Science 2018 Question 13 (CfE)