Computer systems June 2025, Question 4 19 marks
Also involves High-level and low-level languages
Kofi is a software engineer and has been asked to write some code using the Little Man Computer (LMC) instruction set.
State the LMC command that would be used for each description given in the table.
Reveal mark scheme
Kofi has been asked to write a program that inputs two numbers and then outputs the largest of the two numbers.
Write the code for this program using the LMC instruction set.
You can assume that the two numbers will always be different.
Reveal mark scheme
* Kofi is working on a number of projects. These include:
• project 1 – Writing a mobile phone app to look at the news
• project 2 – Writing software to send temperature readings from an embedded heat sensor to other devices
• project 3 – Writing an image editing application for a desktop computer
• project 4 – Writing software to calculate the results of a physics experiment that produces terabytes of data
• project 5 – Writing a new device driver for a new piece of hardware.
Discuss which of these projects should be written in a high level programming language and which should be written in a low level language.
You should include the following in your answer:
• what is meant by high level programming language and low level language
• which projects are suitable for high level and which are suitable for low level languages
• a conclusion that justifies why these different languages are needed.
Reveal mark scheme