A program is being developed to convert a volume of liquid measured in litres and millilitres into a total number of millilitres.
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.
litres = input("Please enter litres: ")
millilitres = input("Please enter millilitres: ")
totalMillilitres = .....
print(totalMillilitres)
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.