Why is merge sort better than bubble
Has a consistent running time doesnt depend on how order original list is
Explain why using a sub program is good
Decomposes program making it easier to create/design each routine tested seperately
Easier to maintain as code easier to read as code is shorter
Reuse code
Quicker to develop
Build on ezisting work
Title=input(“enter a title”)
Year= input(“enter a year”)
Code = librarycode(title,year)
Myfile= openwrite(“bookcodes.txt”)
Text file for bookcode
Title=input(“enter a title”)
Year= input(“enter a year”)
Code = librarycode(title,year)
Myfile= openwrite(“bookcodes.txt”)
Myfile.writeline(code)
Myfile.close()
Explain difference between ascii and extended ascii
Ascii uses fewer bits, extended can represent other symbols, and represents more characters
What id a variable
Identidier for a memory location
Used to hold store a data, that can be changed while program is ran