1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Anit [1.1K]
3 years ago
9

Assume that the population of Mexico is 114 million and that the population increases 1.01 percent annually. Assume that the pop

ulation of the United States is 312 million and that the population is reduced 0.15 percent annually. Write an application that displays the populations for the two countries every year until the population of Mexico excceds that of the United States, and display the number of years it took. Save file as Population.java.***NOTE**** This is my first class of java the program that I have to write has to be of what we have learned in the last 6 chapters it cannot have stuff that is way more advanced than the first 6 chapters.
Computers and Technology
1 answer:
AfilCa [17]3 years ago
6 0

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.

You might be interested in
Clarissa is a computer programming consultant. When a client states that they have an extremely complex programming task, which
Ann [662]

Answer:i think its D it makes more sense also can i get brainliest

Explanation:

5 0
3 years ago
Read 2 more answers
Linda is viewing the campaign report in her Google Ads account after successfully implementing conversion tracking tags for her
anyanavicka [17]

Answer:

Option 1 and Option 3 are correct.

Explanation:

Linda is displaying that marketing update within the Google Advertising profile after effectively installing transformation monitoring tags to its site. She saw that slightly two of her advertising are created by the following View-through transformations.

Thus, somebody seeing up towards Thirty seconds of such advertisements as well as anyone clicking on a portion of such advertising as View-through transformations.

6 0
3 years ago
Jerry is entering information from the documents that show what customers bought and what they owe. What document is he working
il63 [147K]
The answer would be C. Invoice
4 0
3 years ago
Read 2 more answers
it is good to know and use the npsd framework while solution envisioning as part of the value discovery cycle. What is NPSD?
mina [271]

It should be noted that NSPD is an acronym that simply means the New Product and Service Development.

<h3>What is NSPD?</h3>

NPSD simply means the process of New Product and Service Development. It is the process of creating new products or services framework and it can be broken down into several stages.

It is a process of taking a product or service from conception to market. It should be noted that the process sets out a series of stages that new products typically go through.

Learn more about product development on:

brainly.com/question/11223911

3 0
2 years ago
Software licensed as proprietary
steposvetlana [31]

Answer:

Does not permit source code changes.

Explanation:

3 0
3 years ago
Read 2 more answers
Other questions:
  • A slide in Blake's presentation contained the following information:
    11·1 answer
  • What is the main benefit of seeing your document in Page Break Preview?
    9·2 answers
  • The windows 8 start screen has controls, also known as its ____, that allow you to interact with the windows 8 operating system.
    9·1 answer
  • Which of these consoles have 64 bit architecture
    13·1 answer
  • A bank uses a computer program during the night to tell if the alarm should ring. Sensors in the bank set the following Boolean
    5·1 answer
  • Write pseudocode instruction to carry out each of thefollowing computational operations.
    10·1 answer
  • Which devices are most likely to communicate with the internet? Select 3 options.
    13·1 answer
  • 4.5 code practice edhesive
    15·1 answer
  • A company wishes to begin the process of implementing a multi-party system and is looking for other companies with similar inter
    10·1 answer
  • What is the value of this expression:<br> ‘there' == 'here'
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!