Answer:
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
double mexico = 114;
double usa = 312;
double mexicoRate = .0101;
double usaRate = .0015;
// calculate population after every year until mexico population exceed the usa populationn
while (usa>mexico)
{
// print the population
cout<<"Mexico's population ::"<<mexico<<" million."<<endl;
cout<<"USA's population ::"<<usa<<" million."<<endl;
// update the population
mexico+=mexico*mexicoRate;
usa-=usa*usaRate;
}
return 0;
}
Explanation:
Declare and initialize mexico and usa with their initial population.Also declare and initial their increase and decrease rate.Find the population of both the country each year until mexico population exceeds the usa population.
Output:
Mexico's population ::114 million.
USA's population ::312 million.
Mexico's population ::115.151 million.
USA's population ::311.532 million.
.
.
.
Mexico's population ::270.546million.
USA's population ::274.213 million.
Mexico's population ::273.278million.
USA's population ::273.802 million.
Answer:
Class is the correct answer for the above question.
Explanation:
In an object-oriented language, The class is a structure type template, which is used to define the structure but the class does not take memory when an object is created then it takes the memory of class type. For example, if a user-defined class of one member whose size is 4 bit if its store in memory. When a user creates an object, then the object size is 4 bit.
That's why the class is an only structure while an object is used to give the memory for class member and the member of the class also get executed by the object of that class. class have no existence if object is not created. so when a user wants to create a object, he needs to create the object by the help of class name because class is user defined data type and object is variable of that class.
Then the answer of the above question is that object is created with the help of class which is described above.
Answer:
it will not be a good impression and it will be hard to look for a job
Explanation:
Answer:
The correct answer to the following question will be "True".
Explanation:
- Telecommunication seems to be the transmitting by cable, antenna, optical or other electromagnetic networks of signs, commands, letters, words, texts, pictures, and sounds, or knowledge of any kind.
- This happens when the use of technologies involves the information exchange between participants in the conversation.
Therefore, the given statement is true.