Translate the following C++ program to Pep/8 assembly language: #incl ude <iostr
ID: 3548861 • Letter: T
Question
Translate the following C++ program to Pep/8 assembly language:
#incl ude <iostream>
using namespace std;
int l ist[16];
int j, numItems;
int temp;
int main () {
cin >> numItems;
for (j = 0; j < numItems; j++) {
cin >> l ist[j];
}
temp = l ist[0];
for (j = 0; j < numItems - 1; j++) {
l ist[j] = l ist[j + 1];
}
l ist[numItems - 1] = temp;
for (j = 0; j < numItems; j++) {
cout << l ist[j] << ' ';
}
cout << endl ;
return 0;
}