a. How does the way computer engineers think about computer architecture and imp
ID: 3869761 • Letter: A
Question
a. How does the way computer engineers think about computer architecture and implementation relate to pianos? Specifically, how are the concepts of architecture and implementation each involved?
b. For a single a given computer, would you expect a translated program to execute faster or slower than an interpreted program. Justify your answer in a few sentences.
c. Discuss a circumstance where an interpreted program would execute slower than a translated program. (Hint: how are the assumptions different than the prior exercise?)
d. In your own words, explain how Java makes use of both translation and interpretation
Explanation / Answer
a. How does the way computer engineers think about computer architecture and implementation relate to pianos? Specifically, how are the concepts of architecture and implementation each involved?
Compare computer architecture relate with to pianos:
Computer is an electronic device it is working with complete binary numbers system means digital transmission. Once we have done the processing all the data represented in the digital formats only, internal architecture is it contains the one processor, control devices, keyboard and so on.
Piaon is also same as computer architecture it is contain the central processing but we didn’t says it control unit but it can control the entire system and transmit the data from one component to another component just like computer system control unit. It is also have the keyboard to play the music with different sounds and different music sounds. So most of the cases are we can compare pianos with computer architecture.
b. For a single a given computer, would you expect a translated program to execute faster or slower than an interpreted program? Justify your answer in a few sentences.
Purpose of Translator:
The main purpose of the translator is to translate one programming language to another programming language that mean it may translate one high level language to another high level language or one high level language to another low level language so on.
Purpose of Interpretor:
An interpreter, on the other hand, must be able to translate in both directions on the spot, without using dictionaries or other supplemental reference materials. Interpreters must have extraordinary listening abilities, especially for simultaneous interpreting.
Yes: translated program can be slower than interpreted program. Because first program translate from one language to another language then apply the interpretation.
c. Discuss a circumstance where an interpreted program would execute slower than a translated program. (Hint: how are the assumptions different than the prior exercise?)
Most of the times translated program is always slower than the interpreted program let us take the following examples. Example 1 represents the t
Example 1:
A product developing company may hire translators to translate their user guide or instructional manual for a particular product into multiple languages, let’s say German, Korean and French. However, when speakers of those languages call in to the customer service center and want to discuss the products in their native language, then interpreters would be used to facilitate the conversation.
Example 2:
A pharmaceutical company may hire translation services to translate their marketing collateral into Spanish. However, when a Spanish speaker dials into an English-speaking call center, they would need an interpreter to discuss ordering the product.
d. In your own words, explain how Java makes use of both translation and interpretation
Compilation and interpretation in Java
JAVA contains both compiler and interpreter implementation. First compiler compiles the java program and converts into the byte code. JVM interprets the byte code and generate low level machine code, which will be directly executed by the machine in which java program runs. So java implements both compiler and interpreter to execute the program. Because of this byte code only java is platform independent.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.