1. Select the appropriate programming languages for the following applications o
ID: 3796283 • Letter: 1
Question
1. Select the appropriate programming languages for the following applications out of high level, assembly and machine/binary. Justify your answers.
a. An open source compiler that the users can download from the internet. The program should install itself as soon as the user double clicks it
b. A software package for high school students to be used in field visits. The program should identify the direction of travel based on a GPS system and indicate a warning if the students are traveling more than 2 miles away from the starting point.
c. An online housing form application, which the users need to fill up. The application should be compatible with any browser and with any operating system
d. An Android emulator for Windows operating system. A purpose of an emulator is to create a virtual platform. For an example once the android emulator is installed in Windows, you may run android applications on that platform.
e. A webpage
Explanation / Answer
a. An open source compiler that the users can download from the internet. The program should install itself as soon as the user double clicks it
-->Compiler can be written in High level languages. High level languages provide more facilities to compiler code. Text manipulation , finding errors, pattern matching and many more tasks become tedious on other languages.
so it is advised to write compilers in High level languages.
b. A software package for high school students to be used in field visits. The program should identify the direction of travel based on a GPS system and indicate a warning if the students are traveling more than 2 miles away from the starting point.
--> Machine language can be used to perform this task. The only task to perform is to track using a GPS system and give signal when needed. Embedded software can be implemented using machine language.
Machine languages can be used to configure some physical devise or some subsystem. We can have GPS hardware running machine code inside it. and that makes it faster also. if assembly code or high level language is used then there is a need to convert it into machine code and then run on devise. but machine code is easy to run in such cases.
c. An online housing form application, which the users need to fill up. The application should be compatible with any browser and with any operating system
-->Assembly language and machine language are not platform independent. Those depends on instruction set and processor. So higher level language has to be used to make an application that is compatible with all browsers with any OS.
d. An Android emulator for Windows operating system. A purpose of an emulator is to create a virtual platform. For an example once the android emulator is installed in Windows, you may run android applications on that platform.
--> Android emulator for a particular windows platform can be created in assembly language. There are two options to create emulator :1) high level languages like C 2) assembly language.
assembly language doesn't work emulator need to run on all type of platforms but here we need emulator which can run on windows only. So we can use assembly language for it. because it is relatively faster than C code. as C code will also be converted into assembly.
hence assembly language can be used to write android emulator that works on windows.
e. Webpage has to be loaded on all type of browsers and OS. so we need high level language for webpages.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.