Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Develop a program to meet the following requirements: Must use at least one func

ID: 3611755 • Letter: D

Question

Develop a program to meet the following requirements: Must use at least one function Must use selection Must use deference/indirection (the * operator) Your assignment is to take two integers as input, compare them and put them in smallest to largest order. If they are not in smallest to largest order, use an exchange function to swap their order. If they are already in order, do nothing. Output both integers in smallest to largest order. Use the following integer pairs as input (you may want to use more).7 12 18 3 6 6 -12 0 A simple structure chart is shown below.

Explanation / Answer

#include using namespace std; void exchange(int *a, int *b) {    int temp = *a;    *a= *b;    *b=temp;    } int main() {    int in1=0;    int in2=0;    coutin1;    cout