The answer will be A they would wanna know about her work history
Answer:
public static boolean isReverse(int [ ]a, int [ ]b ){
for (int i=0;i<a.length;i++)
{
if(!(a[i] == b[a.length-i-1]))
return false;
}
return true;
}
Explanation:
Using a for loop, we go through the elements of the first array. The if comapres and checks if any of the values are not the same as the appropriate value on the other array, if it is so, then it is not a reverse, and we return false. else we return true.
Not entirely sure what you want to achieve, but consider this program:
var a = 'foo';
var b = 'bar';
var c = { first : a, second : b };
console.log(JSON.stringify(c, null, 4));
A json object c is constructed using the values from variables a and b. Is this what you mean?
Answer:
#include <iostream>
#include <cstring>
using namespace std;
void replacePeriod(char* phrase) {
int i = 0;
while(*(phrase + i) != '\0')
{
if(*(phrase + i) == '.')
*(phrase + i) = '!';
i++;
}
}
int main() {
const int STRING_SIZE = 50;
char sentence[STRING_SIZE];
strcpy(sentence, "Hello. I'm Miley. Nice to meet you.");
replacePeriod(sentence);
cout << "Updated sentence: " << endl;
cout << sentence << endl;
return 0;
}
Explanation:
- Create a function called replacePeriod that takes a pointer of type char as a parameter.
- Loop through the end of phrase, check if phrase has a period and then replace it with a sign of exclamation.
- Inside the main function, define the sentence and pass it as an argument to the replacePeriod function.
- Finally display the updated sentence.
Answer: See explanation
Explanation:
Based on the options given, the positive effects of the internet on business will be:
• He recently bought a second-hand camera online, which he hadn't been able to find in any store.
• His friend sell printed T-shirts online, storing them in his basement and promoting them on social media.
The negative effects of the internet on business will be:
• A bookstore down the road shut down because people preferred the cheaper online bookstores.
• Ravi's sister complains that her boss always knows when she is late, but rarely greets her if their paths cross in office.
• One of his friend's printed T-shirts got wet and stained in the delivery truck and the buyer wrote a nasty review.