A program is being developed to convert a distance run measured in kilometres and metres into a total number of metres.
The developer wants to create a subprogram (function) to perform this calculation.
The program has been started but is not complete.
Complete the program design by filling in the blanks.
kilometres = input("Please enter kilometres run: ")
metres = input("Please enter metres run: ")
totalMetres = .....
print(totalMetres)
function .....
.....
.....
.....
.....
endfunction
95 exam-style questions on OCR GCSE Computer Science Programming fundamentals. Each one has a worked solution and a mark scheme showing where the marks go.