Answer:
Both compiled and interpreted languages are high-level languages and translate code for a computer to understand.
Explanation:
The one similarity between compiled and interpreted languages is that they are both high-level languages.
A high-level language is a computer language written in easy to understand human language which is then converted to machine code for the computer to understand.
A high-level language can either be interpreted or compiled.
An interpreted is a language in which the code is translated line by line before execution while a compiled language is one in which the source code is converted directly into machine language before execution.
So, <u>the similarity between both languages is that they are high level languages and translate code for a computer to understand. </u>
Is there more to this or ?
<span> Hover the mouse over the power icon in the notifcation area</span>
Answer:
In C++:
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
void printarray(int array []){
for(int i=0; i<100; i++){ cout << array[i] << " "; }
}
void sortarray(int array []){
sort(array, array + 100);
printarray(array);
}
int main() {
int array[100];
srand((unsigned)time(0));
for(int i=0; i<100; i++){ array[i] = (rand()%99); }
printarray(array);
cout<<endl;
sortarray(array);
return 0;
}
Explanation:
<em>See attachment for program source file where comments are used for explanation purpose</em>