Answer:
The following code is:
do // set do while loop
{
response = stdin.next();
}
while (response != "Y" || response != "y" || response != "N" || response != "n");
// terminate do while loop
Explanation:
The following code starts with do while loop whose variables has already declared and then we assume the availability of the variable "stdin" which references the Scanner object and write some code to execute inside the do-while loop.
Answer: b. My name is BobBob
Explanation:
- $foo = 'Bob'; // Assigns foo variable the value Bob
- $bar = $foo; // Assigns the value of foo to bar
- $bar = "My name is $bar"; //changes the $bar this is the way to include variables directly in the string.
- print $bar; // this prints My name is and moves to the variable $bar which prints the value of $bar which is the value of $foo i.e. Bob
- print $foo; // prints another Bob
9251.44 or 231286/25 or 9251(11/25)
0.36*6*200*21.44-10.64
becomes
9262.08-10.64
gives you the result
Answer:
The program written in C++ is as follows'
#include<iostream>
using namespace std;
int main()
{
string names[3];
cout<<"Please enter three names: "<<endl;
for (int i = 0; i< 3;i++)
{
cin>>names[i];
}
for (int i = 2; i>= 0;i--)
{
cout<<names[i]<<endl;
}
return 0;
}
Explanation:
This line declares an array for 3 elements
string names[3];
This line prompts user for three names
cout<<"Please enter three names: "<<endl;
This following iteration lets user input the three names
for (int i = 0; i< 3;i++) { cin>>names[i]; }
The following iteration prints the three names in reverse order
for (int i = 2; i>= 0;i--) { cout<<names[i]<<endl; }
Answer:
The answer is "Option c"
Explanation:
Decisions made in secret have always been critical. Hence the want to express it before your choice is made. It is all about how you express choice. In general, they need your presentation to explain the choice that you decided, how they created it, and how it implies for just the group, that you are approaching, and wrong choices can be described as follows:
- In option a, It is used in the industry to interest.
- In option b, It is use in communication mechanism.
- In option d, It enables people to handle our activities or carry them out.