I am pretty sure the answer is the second gen
<u>Answer</u>:
<em>By changing the decimal to a percentage
</em>
<u>Explanation:</u>
Since the requirement is to calculate the percentage of students about their preference in eating vegetables, we need to convert the given values to percentage only.
<em>
Option A: </em>By changing the addition sign to a multiplication sign. This is invalid because, there is no addition and multiplication involved in converting to percentage
<em>Option C:</em> By changing the percentage to a decimal. The given data is not available in percentage so conversion is impossible.
<em>Option D:</em> By changing the multiplication sign to a division sign Multiplication and division are not going to be performed here, since we need only percentage.
The spell checker and thesaurus are not underneath the view tab, so 1 and 2 are wrong.
If you replace every instance of the word gorgeous, then you would not be adding variety. So d is incorrect.
Therefore:
The only correct answer is C, as it is correct navigation and it adds word variety.
Answer:
Following are the program in the C++ Programming Language.
//set header file
#include <iostream>
//set namespace
using namespace std;
//define class
class format
{
//set access modifier
public:
//set string type variable
string res;
//define function
void names(string first_name, string last_name)
{
//set if-else if condition to check following conditions
if(first_name.length()>0 && last_name.length()>0)
{
res="Name: "+last_name+", "+first_name;
}
else if(first_name.length()>0 and last_name.length()==0)
{
res="Name: "+first_name;
}
else if(first_name.length()==0 and last_name.length()==0)
{
res="";
}
}
//define function to print result
void out(){
cout<<res<<endl;
}
};
//define main method
int main() {
//set objects of the class
format ob,ob1,ob2;
//call functions through 1st object
ob.names("John","Morris");
ob.out();
//call functions through 2nd object
ob1.names("Jhon","");
ob1.out();
//call functions through 3rd object
ob2.names("", "");
ob2.out();
}
<u>Output</u>:
Name: Morris, John
Name: Jhon
Explanation:
<u>Following are the description of the program</u>:
- Define class "format" and inside the class we define two void data type function.
- Define void data type function "names()" and pass two string data type arguments in its parameter "first_name" and "last_name" then, set the if-else conditional statement to check that if the variable 'first_name' is greater than 0 and 'last_name' is also greater than 0 then, the string "Name" and the following variables added to the variable "res". Then, set else if to check that if the variable 'first_name' is greater than 0 and 'last_name' is equal to 0 then, the string "Name" and the following variable "first_name" added to the variable "res".
- Define void data type function "out()" to print the results of the variable "res".
- Finally, we define main method to pass values and call that functions.
It's because it already knows.
It's because the camera knows that it is already dark or bright and will automatically choose a slower or faster shutter speed. You would not necessary have to fiddle with the camera settings at all. The camera will automatically set the shutter speed on its own. For example, while taking a picture in a darker corner of the room, the camera will choose a slower shutter speed.