Answer:
<h2>a) computer software </h2>
<h2>b) flash drive</h2>
<h2>c) Latin "putare" </h2>
<h2>d) Hardware</h2>
<h2>e) software</h2>
hope it's helpful ✌
Answer:
The answer is "All of these could make good functions
".
Explanation:
In the given question some information is missing, that is options which can be described as follows:
a. Ask the user to confirm an input with a yes/no answer
b. Sort some input data into an ordered list
c. All of these could make good functions
d. Calculate a complex mathematical expression
A method is a collection of ordered code and provides a generic code, that is used to execute a single, connected operation.
- A good function is a function, which takes values from the user and it will sort all the data and store in memory, and whenever we call the function, it will give the values.
- It is also used to calculate some complex values,
Answer:
See explaination
Explanation:
Keep two iterators, i (for nuts array) and j (for bolts array).
while(i < n and j < n) {
if nuts[i] == bolts[j] {
We have a case where sizes match, output/return
}
else if nuts[i] < bolts[j] {
this means that size of nut is smaller than that of bolt and we should go to the next bigger nut, i.e., i+=1
}
else {
this means that size of bolt is smaller than that of nut and we should go to the next bigger bolt, i.e., j+=1
}
}
Since we go to each index in both the array only once, the algorithm take O(n) time.
All parts of a statement must be true for it to be true