Answer:
Option B(Body) is the correct answer for the above question.
Explanation:
The function is a defined processor of some specific task, which is used to perform some action of the task. The function is of two types one is predefined, which is defined by the compiler and, the other is user-defined, which is defined by the programmer. Any user-defined function has three parts--
- Function prototype: It states the type of function.
- Function body: It holds the collection of instruction that needs to perform by the function.
- Function call: From where the function is called.
The above question asked about the term, which holds the statement of the function and that term is function Body, which is defined above. So the answer body, which is stated from the option 'B'. Hence 'B', is the correct option while the other is not because--
- Option 'A' states about the header, which is not the part of the function
- Option 'C' states about data type, which defines the types of data.
- Option 'D' states none of these, but the answer is option B.
- Option 'E' states about the definition, which is not the correct answer.
<u>Answer:</u>
<em>Organize things
</em>
<u>Explanation</u>:
It is the <em>duty and power of external brain to Organize ideas</em>. Per day we may have plenty of works to be done. So we start thinking about <em>one by one and finally we try to sort out and organize how to perform, when to do and what is the first and last task etc. </em>
It is the external brain which is helping us to figure it out. But there are certain times where we <em>dump things together</em>, especially when there is an very important like marriage of our family member, where they <em>give lots of responsibilities. </em>
<em>At that time, we have very limited time to work out things and we dump our external brain.
</em>
The answer is prism, The atmosphere can produce the same effects<span> as a </span>prism<span> when the </span>Sun is low in the sky<span>. </span>
Only when the count is 0 will the if statement's statement block be executed because of the if count == 0 condition.
<h3>What is an if statement?</h3>
- A program is guided to make decisions based on predetermined criteria using the IF statement, which is a decision-making statement.
- If a certain condition is satisfied (TRUE), one piece of code is run, and if it is not, another set of code is run, and so on.
- A conditional statement, also called a conditional expression, conditional flow statement, or conditional processing, is a set of guidelines that are followed when a specific condition is satisfied.
- Because IF a condition is satisfied, THEN an action is taken, it is sometimes referred to as an If-Then statement.
To learn more about if statement, refer to:
brainly.com/question/18736215
#SPJ4
Answer:
# include <iostream.h>
# include <stdio.h>
# include <string.h>
using namespace std;
class citizen
{
int i;
public string name[30];
public long int phonenumber[30];
public void addindividual(string name1)
{
If (i<=30)
{ int flag=0;
for(int j=0; j<=i;j++)
{
if (strcmp(name[i], name1)
{
flag=1;
}
else
{
flag=0;
}
}
If (flag)
{
if (i<30)
{
for(j=i+1;j<=30; j++)
{
cout<<"Enter the name:"; getchar(name[j]);
cout<<"Enter the phone number:"; cin>>phonenumber[j];
i++;
}
else
{
cout<<"The person already exists";
exit();
}
}
else
{
cout<<"array is full:";
exit();
}
}
}
Void main()
{
string str;
cout<<" Enter name:";
getline(cin, str); ;
citizen c1=new citizen();
c1.addindividual(name1);
}
Explanation:
With a little more effort you can make the program allow the user to enter any number of details, but less than 30 overall. We have used here flag, and as a programmer we know why we use the Flag. It is used to check whether certain Boolean condition is fulfilled or not. Here, we are checking whether a given name is present in the array of names, and if it is not present, we add that to the list. And if the name is present, we print, it already exist.