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'.
Answer:An object
Explanation: An objects play an important role as the real world component/entity which display any element which are sourced through their behaviors and different states. Object are the entities that are required in the program for the making the program easier and simpler to understand .
Example- computer can be considered as the object which is related with the real world.
In the game the Vikings speak icelandic
The built-in function you use in python to prompt a user for data input is the input function.
<h3>What is an input function?</h3>
An input function is a function used to prompt a user for data input.
The data input may be a string, integer, float, and many more.
Let's use an example of an input function in python.
x = input("what is your name: ")
y = int(input("How old are you: "))
Hence, the first input will prompt the user for the name and the second input will ask the user for his age. It can only accept integers.
learn more on input function here: brainly.com/question/17623507
#SPJ12
Answer:
Millisecond
Explanation:
We might know millisecond is very small and it is
not used now as computer speed