Answer:Attributes, Methods
Explanation: According to the object-oriented programming, attribute serves as the purpose for defining the an elements features and functioning.It is usually in the form of collection of objects and also known as object's member variable.
Method in the OOP's concept is defined as technique that works on the object that consist of some data and certain features.It also clarifies about the usage or utilization of that data message according to their behavior.
A code for a link to the second.html page is given by <div>Go to the Second Page</div>.
<h3>What is a div tag?</h3>
A div tag is an abbreviation for division tag and it can be defined as a type of HTML tag that is designed and developed to break (divide) a webpage into several elements with their respective layout attributes.
In this scenario, a code for a link to the second.html page is given by <div>Go to the Second Page</div>.
<u>Note:</u> "Go to the Second Page" serves as the link text.
Read more on div tag here: brainly.com/question/14075748
#SPJ1
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.
They use electrical energy. Majority of devices that people now use are controlled by semi conductor components. Your answer is they are using electrical energy! But sometimes they do use radiation.