Question: Implement the following 3 functions and put your code for 3 functions in a single file called homework 2 . cpp . Function 1 :
Implement the following functions and put your code for functions in a single file called homeworkcpp Function : int outoforderint aint n;
This function returns the number of out order pairs in an array a of size Example : input: return: there are pairs that are out of order: and Example : input: return: all pairs are in order Example : input: return: there are pairs that are out of order:
Function : string binarytohexconst string& s;
this function converts a binary string s into a hexadecimal string Example : input: return: a Example : input: s return: ef
Function : void shift int ; This function shifts all to the end of array a while keeping non numbers in the same order. Change the array a in place. Don't create a new array. Example : input: output: Example : input: output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
