Question: Can you please Translate this C++ code to the QtSpim assembly language using Notes and with comments if possible. If its possible, can you add

Can you please Translate this C++ code to the QtSpim assembly language using Notes and with comments if possible. If its possible, can you add binary search to ask the number and search for it. Please note that this program should be maximum for 10 numbers to make it easy.

#include using namespace std; int getHowMany(); void getNumbers(int,int[]); void sort(int,int[]); void print(int,int[]); int main() {int count,numbers[10]; count=getHowMany(); getNumbers(count,numbers); print(count,numbers); sort(count,numbers); print(count,numbers); system("pause"); return 0; } int getHowMany() {int n; cout<<"how many numbers are there? "; cin>>n; return n; } void getNumbers(int n,int a[]) {int i; for(i=0;i>a[i]; } return; } void sort(int n,int a[]) {int i,j,temp; for(i=0;ia[j]) {temp=a[i]; a[i]=a[j]; a[j]=temp; } } void print(int n,int a[]) {cout<<"The numbers are "; for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!