Answer:
The following are the code in the Java Programming Language.
//set the for loop
for (k = 0; k < nMembers; k++)
{
//check that currentMembers[k] is equal to the memberID
if (currentMembers[k] == memberID)
{
//then, initialize isAMember to true
isAMember = true;
//and initialize the value of nMembers in k
k = nMembers;
}
//otherwise
else
{
//initialize isAMember to false
isAMember = false;
}
}
Explanation:
<u>The following are the description of the program</u>.
- Set the for loop statement that iterates from 0 and stops at the variable 'nMembers'.
- Set the if conditional statement that checks the variable 'currentMembers[k]' is equal to the variable 'memberID' then, initialize 'true' boolean value in the variable 'isAMember' and also initialize the value of the variable 'nMembers' in the variable 'k'.
- Otherwise, initialize 'false' boolean value in the variable 'isAMember'.
The reason why Austin takes close - up pictures of and displays them in life - size is due to the fact that he wants to give viewers an indelible view or opinion of what a whale is.
- It also to give whales a background to bring out unexplored thought and emotion in a lot of ways that has been yet to pursued .
<h3>What are Whales?</h3>
This is known to be Animals that are said to be mostly distributed and have a lot of group of aquatic placental marine mammals.
They are known to belong to an informal grouping as they belong to the order Cetartiodactyla.
Learn more about pictures from
brainly.com/question/25938417
D is the answer to the question
Answer:
Selection control structure
Explanation:
This is often referred to as if-conditional statement;
This condition tests for a condition and performs a sequence of operation depending on the result of the condition;
Take for instance, the following program written in python
<em>x = int(input("enter any number: "))</em>
<em>if x < 0:</em>
<em> print("Yes")</em>
<em>else</em>
<em> print("No")</em>
<em />
The above checks if the input number is less than 0,
If the condition is true, it prints Yes
If otherwise, it prints No