The answer is online commercial banking :)
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:
D) It creates a vector object with a starting size of 10 and all elements are initialized with the value 2.
Explanation:
When you write the statement vector<int> v(10,2); This statement declares a vector or dynamic array of size 10 that is the first parameter and the second parameter is the value with which all the elements in the vector are to be initialized.So in this vector all the 10 values will be initialized with the value 2.It is one of the way of initializing the vector.
Answer:
Explanation:
String str = "Broccoli is delicious.";
String[] Secondstr = str.split(" ");
System.out.println("second word is " + Secondstr[1]);
The answer is C.upper end
hope this helps. Have a wonderful day