Write a program and flowchart. You should have a function called “swapIt()” that is passed two integers by address .  The function should define a third local variable.  Use the third variable as a intermediate variable and swap the values of both integers passed, sothat when control is returned to the calling function, the values are swapped. Here is what the output looks like. Please write the code itself (with correct punctuation I.e parenthese, semi colon, backslashes etc) not the final answer as pictured below. Must be in C++ format and able to be run in Microsoft Visual Studio.  Microsoft word, notepad or a snippet of the code are all okay with me, I don’t mind retyping it. Please also use the variables given below (Oldpay, 1000, Newpay 2000).

Looking for solution of this Assignment?


We deliver quality original papers

Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected  

Free revisions

We offer our clients multiple free revisions just to ensure you get what you want.

Discounted prices

All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount

100% originality

We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI

On-time delivery

We will deliver your paper on time even on short notice or  short deadline, overnight essay or even an urgent essay