ExamBank Scot · N5 Computing Science question bank · All N5 Computing Science questions
10 marks · User-interface design
A program is being developed that will allow applicants to complete an electronic application form. They must enter their name, age and the job they want to apply for. Once this information is entered, the interview date for the chosen job is displayed. Design a user‑interface for the: input for this program output for this program. There were 84 applicants. The applicants’ ages are stored in a data structure called ages. Identify the most suitable data structure and data type for ages. Data structure Data type Using a programming language of your choice and the data structure ages, write the code to calculate and display the average age of applicants. The launch speed of a rocket is 7.83 kilometres per second. This value would be stored in a computer system using floating‑point representation as shown below: 0.783 × 10¹ Identify the mantissa and exponent in the above floating‑point representation. Mantissa Exponent Scottish Space Agency is recruiting staff for its space exploration project.
User instruction and input area for all three: • name • age • job Input area and user instruction for text entry may be combined within one box for a single input. Award 0 marks if the candidate has designed a program (pseudocode, flow chart, structure diagram) rather than a user interface. Ignore any additional objects/text/buttons that may have been added to the user interface. • labelled output area for interview date • array • integer • loop for each applicant/84 times • add the provided value from the ages array to the total within the loop • use of incrementing array index in running total • calculate the average using a calculated total and display average Award bullet 3 if candidates uses a collection loop (for age in ages) rather than using an index. If ages array overwritten do not award bullet point 2. • Mantissa: 783 • Exponent: 1