Answer:
You will need to implement a for loop ( I am assuming this is java)
Explanation:
int count20s = 0;
for(int x =0; x< customerAges.length;x++){
if(20 <= customerAges[x] && customerAges[x] <= 29){
count20s++;
}
Resheach thngs that instrest him and that fit the guidlines
Answer:
The answer is "heading"
Explanation:
Headings, which appear into your document must be marked simply, objectively and correctly because it shows the final report structure and enable to easy access with specific information.
- It also promotes to read the document. So, its consistency is ensured in the headings.
- In sort documents, it can't require any heading, but it Nila created a report, in which she requires heading and then she update the content of the tables, and other choices can't be described in the given scenario, that's why it is correct
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);
}