Answer:
The function in C++ is as follows:
int isSorted(int ar[], int n){
if (
||
){
return 1;}
if (
<
){
return 0;}
return isSorted(ar, n - 1);}
Explanation:
This defines the function
int isSorted(int ar[], int n){
This represents the base case; n = 1 or 0 will return 1 (i.e. the array is sorted)
if (
||
){
return 1;}
This checks if the current element is less than the previous array element; If yes, the array is not sorted
if (
<
){
return 0;}
This calls the function, recursively
return isSorted(ar, n - 1);
}
GPS stands for Global Positioning System
This will be stored as a collection of files
Is that a essay ur supposed to write
Umm okay...
The density of water is 1.0 g/cm^3
Which will float in water
A.) Ice (Density = 0.92 g/cm^3) Float or sink
B.) Wood (Density = 0.45 g/cm^3) Float or sink
C.) Bone (Density = 1.7 g/cm^3) Float or sink
If you help answer this it will be much appreciated thank you