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.
Answer:
False
Explanation:
It is true that many forms of money do not earn interest. However, it is not true that this means that people's demand for money is unaffected by changes in interest rates. One of the ways interest rates can change the demand for money is because this can influence the way people divide their money. When a person has money, he can decide whether to keep this in teh form of money, or whether to keep wealth through another asset. When interest rates decrease, people are more likely to keep money in the form of money, as opposed to other assets. This is the source of the demand for money.
Answer:
El atributo más importante de una manivela de rendimiento del mercado de accesorios es que a menudo tiene más trazo, por lo que puede crear un paquete de stroker y así agregar más pulgadas cúbicas en el motor. Otra ventaja es tener una versión que no está disponible de otra manera, como una manivela 360 (3,58 pulgadas de carrera) con una pequeña red (tamaño 318/340).
Answer:
Most modern CPU's have between 16 and 64 General Purpose Registers. Special Purpose Registers have special uses and are either nonprogrammable and internal to the CPU or accessed with special instructions by the programmer.