Answer:
The function definition to this question can be given as:
Function definition:
void printAttitude(int x1) //define function printAttitude.
{
//nested else-if statements
if(x1==1)
//if block
cout<<"disagree"<<endl;
//message
else if(x1==2)
//else if block
cout<<"no opinion"<<endl;
//message
else if(x1==3)
//else if block
cout<<"agree"<<endl;
//message
else
cout<<" ";
}
Explanation:
In the above method definition firstly, we define a method that is "printAttitude". In this method, we pass an integer variable that is "x1". This function does not return any value because its return type is void. In this method, we use nested else-if statements. The description of these conditions can be given as:
- In the if block we check the variable x1 value is equal to 1 If this condition is true. It will print "disagree" otherwise it will go to else-if block.
- In the else-if block, we check the variable x1 value is equal to 2 if the condition is true. It will print "no opinion". otherwise, we will go to another else-if block.
- In this block, we check the variable x1 value is equal to 3 if this condition is true. It will print "agree".otherwise it will go to else block.
- In the else block it will print nothing.
The common name for such a program is called a Web Browser. There exist several names for popular browsers, E-Internet Explorer, Mozilla FireFox, Google Chrome, Safari, etc. At the start of the internet, they were not always around, as the internet was mostly used for communications in the US armed forces. In the early-mid 1990's, the first few browsers were created when the first computer OS became mainstream. As the years have gone by, they have since become stronger and faster, and one can do anything on the internet from watching videos, opening a business, talking to your friend or even run a political campaign.
Answer:
see explaination
Explanation:
class Larger<T extends Comparable<T>> {
public boolean larger(T[] arr, T item) {
if (arr == null || item == null)
throw new IllegalArgumentException();
for (int i = 0; i < arr.length; i++) {
if (item.compareTo(arr[i]) < 0) {
return false;
}
}
return true;
}
}
Answer:
dang. thats tough. i just used nord VPN
Explanation: