Can somebody help me and make a code for this in PYTHON, please? I would be very thankful!
It is estimated that China on July 1, 2019. had 1,420,062,022 inhabitants, and India 1,368,737,513. The population in China increases by 0.35% every year, and in India by 1.08%. After how many years will India surpass China in terms of population, assuming that the annual population growth in neither of these two countries will change?
I think it should be used command FOR...

Answers

Answer 1

Code:

population_china = 1420062022

population_india = 1368737513

years = 0

while population_china >= population_india:

   population_china *= 1.0035

   population_india *= 1.0108

   years += 1

print(years)

Output:

6

Explanation:

Using a while loop would probably be of greater use than a for loop since we are increasing the population growth of both countries until India's population surpasses China's population (so a condition needs to be set).

Looking at the code, we first set the original population of both countries in their own variables (population_china, population_india). We also set the 'years' variable at 0, which will increase with respect to the yearly population growths of both countries. In the while loop, the condition population_china >= population_india will allow for the variable 'years' to increase until population_india surpasses population_china. Once India's population is larger than China's population, we are left with the number of years it takes for India's population to surpass China's population, which is 6 years.

Hope this helps :)


Related Questions

Can someone please give me Python test 3 it would help me tremendously

Answers

Question 1:  To tell what will happen when an if-statement is false.

Question 2: The = should be ==

                    elseif should be elif

                    The else should have a :

Question 3: All algorithms can only do number calculations.  

Question 4: and

Question 5: To make a follow-up True/ False decision

Question 6: if (text1 > 15):

Question 7: if (text1 == 78):

Question 8: if (num1 != num2):

Question 9: >=

Question 10: 4

Question 11: 3

Question 18: a < b and a != b  

Question 19: !=

Sorry about 12 - 17 and 20 i can't seem to find those questions guessing you wanted edhesive. I dont have an account on it.

The speed of mainfarme computer is measured in...... fill in the blanks​

Answers

Mainframe computers are huge towering machines with lots of processing power and are measured in MIPS (Million Instructions Per Second). Windows Explorer is the operating system's file and folder manager. A minicomputer can support about 200 users at the same time. They are referred to as small or mid-size servers.

Explanation:

Mainframe computers are huge towering machines with lots of processing power and are measured in MIPS (Million Instructions Per Second).3 days

to generate a series of first ten counting number of algorithm​

Answers

uhh i need points so i don’t fail math.

In what type of attack does the attacker have the ciphertext of several messages that were encrypted with the same encryption algorithm, but has no access to the plaintext so he or she must try to calculate the key used to encrypt the data

Answers

in ciphertext-only.

EXPLANATION: it is an attack model for cryptanalysis where the attacker is assumed to have access only to a set of ciphertexts. The attack is completely successful if the corresponding plaintexts can be extracted or, even better, the key.

PLEASE SOMEONE PLEASE HELP ME OUT!!!!

Answers

Answer:   Ideate

Explanation:

Answer:

the 1st one

Explanation:

What are presenter notes?

Answers

Presenter notes are for showing to other people

Answer:

notes on like a presenting app that will help you present better so like your notes

Explanation:

What is Ce stands for?
O Carbon character
O Carbon calender
Carbon copy
O character change​

Answers

Explanation:

hello I don't know ok sorry

You are installing an updated driver for a hardware device on your system. A dialog box displays indicating that Microsoft has digitally signed the driver you are installing. What benefits does driver signing provide

Answers

Answer:

1)The driver has been tested by Microsoft

2)The driver file has not been altered

Explanation:

From the question, we are given an instance whereby I'm installing an updated driver for a hardware device on your system. A dialog box displays indicating that Microsoft has digitally signed the driver you are installing.

The benefits that this driver signing provide are;1)The driver has been tested by Microsoft

2)The driver file has not been altered

driver reffered to group of files that give room for communication between one or more hardware devices and the operating system of the computer, it is through a driver that a computer will be able to receive/send data to hardware device correctly. The device could be a printer. to digitally sign drivers by Microsoft, the drivers must be certified by Microsoft and a signature will be provided for the driver by Microsoft.

Reason Microsoft do digitally signed drivers is that during Windows device installations , digital signature is used in verification of integrity of the driver package and also the identity of the vendor can be known, window might not run a driver that is not certified by Microsoft on 64/32 bit system.

Please help! Due by tonight! Greatly appreciated!

Answers

Answer:

Im sorry if im wrong but i took a class for coding a long time ago but i think  it is 6 :)

What is the size of 5th generation of computer and what language does they use??​

Answers

Answer:

The period of fifth generation is 1980-till date. In the fifth generation, VLSI technology became ULSI (Ultra Large Scale Integration) technology, resulting in the production of microprocessor chips having ten million electronic components

Fifth-generation languages are used mainly in artificial intelligence research. OPS5 and Mercury are examples of fifth-generation languages. as is ICAD, which was built upon Lisp. KL-ONE is an example of a related idea, a frame language

Explanation:

1980 until the present is the fifth generation's time frame. When VLSI technology evolved into ULSI (Ultra Large Scale Integration) technology in the fifth generation, microprocessor chips with 10 million electronic components were created.

What is 5th generation computer?

Artificial intelligence research is the principal application for fifth-generation languages. Examples of fifth-generation languages are OPS5 and Mercury. ICAD, which is based on Lisp, is also. KL-ONE is an illustration of a frame language, a related concept.

After the creation of the fourth-generation computers, the fifth generation was introduced. Modern computers, also referred to as fifth-generation computers, are currently under development and are based on artificial intelligence.

In 1982, the FGCS was developed in Japan (Fifth Generation Computer System). This generation of computers uses parallel processing and microelectronic technology, which has a high processing capacity.

Therefore, 1980 until the present is the fifth generation's time frame. When VLSI technology evolved into ULSI (Ultra Large Scale Integration) technology in the fifth generation, microprocessor chips with 10 million electronic components were created.

To learn more about computers, refer to the link:

https://brainly.com/question/21080395

#SPJ2

How do you send friend requests?

Answers

Answer:

i dont know how too i dont think you can

What is a slide master ?​

Answers

Explanation:

Slide Master is a tool used in Microsoft PowerPoint to create slide templates. Slide Master can save slide layouts, including the background, color, fonts, effects, positioning, etc.

hope it helps!

Answer:

A slide master is the top slide in a hierarchy of slides that stores information about the theme and slide layouts of a presentation, including the background, color, fonts, effects, placeholder sizes, and positioning. Click to select the master slide, then click Master Layout on the Slide Master tab.

To increase security on your company's internal network, the administrator has disabled as many ports as possible. Now, however, you can browse the internet, but you are unable to perform secure credit card transactions when making purchases from e-commerce websites. Which port needs to be enabled to allow secure transactions

Answers

Answer: 443

Explanation:

Port 443 will need to be enabled for secure transactions to go through because it is the default port for HTTPS which is the transfer protocol for secure communication.

This way your credit card transactions will be encrypted to ensure protection from those who would seek to steal your data and your money.  

What three actions happen when you cloak a folder or file?

Answers

Answer:

A three actions happen when you cloak a folder or file is explained below in details.

Explanation:

You can cloak data and folders on the forgotten or local site. Cloaking eliminates cloaked data and folders from the subsequent actions:

Presenting Get, Check-In, and Check-Out executions

Producing reports

Getting newer local and newer forgotten files

Accomplishing sitewide executions, such as monitoring and modifying links

Synchronizing

Working with Asset panel contents

Refreshing templates and libraries

Write negative impacts of ICT in our lives. atleast 4​

Answers

Answer:

#1: Reduced physical activity

#2: Eye strain/ easily prone to headaches

#3: Poor social skills

#4: Decline in mental health

Answer:

Reduced physical activity: A third negative effect of ICT is that users may adopt a more sedentary lifestyle. This can lead to health problems such as obesity, heart disease, and diabetes.

in which genre of games do players most often have the power to shape how the story will end?

platformer games
shooter games
role-playing games
puzzle games

Answers

Role playgames are the most customizable

Answer:

role-playing games

Explanation:

Nadia has inserted an image into a Word document and now would like to resize the image to fit the document better.

What is the quickest way to do this?

keyboard shortcut
sizing handles
context menu
sizing dialog box

Answers

Sizing handles but I’m not super sure

about IPO cycle with a digram

Answers

Answer:

The IPO Cycle is termed as Input-Processing-Output cycle. A computer receives data as input, processes it, stores it and then produces output. ways. This manipulation is called processing.

please help please I will count your answer brainiest if you help!
In what ways are math and computer science similar? How are they different?

Answers

Answer:

Without mathematics, computer science would not exist. Computers use algorithms to obtain certain information, and output certain information. Linear equations and algebra are used to create gaming graphics.

Have you ever wondered how your online quizzes were made? Inside the online quizzes there is code behind it, this code uses variables, integers, and booleans.

Variables use equations like x and y to find sum. A boolean is a basic algebraic notation, it's a binary variable.

Everything uses math, nothing would exist without math, including even digging dirt.

A proprietary software license allows users to install and use the software on any number of computers. install and use the software after agreeing to the terms of the license. inspect, modify, and redistribute the software. copyright and resell the software.

Answers

Answer:

install and use the software after agreeing to the terms of the license.

Explanation:

A software can be defined as a set of executable instructions (codes) or collection of data that is used typically to instruct a computer how to perform a specific task and to solve a particular problem.

Basically, softwares are categorized into two (2) main categories and these are;

I. Open-source software.

II. Proprietary software.

A proprietary software is also known as a closed-source software and it can be defined as any software application or program that has its source code copyrighted and as such cannot be used, modified or distributed without authorization from the software developer. Thus, it is typically published as a commercial software that may be sold, licensed or leased by the software developer (vendor) to the end users with terms and conditions.

Some examples of proprietary software are Microsoft Windows, macOS, Adobe photoshop etc.

Hence, a proprietary software license allows users to install and use the software after agreeing to the terms of the license.

A proprietary software license allows users to install and use the software after agreeing to the terms of the license.

Thus, option (b) is correct.

Users are required to agree to these terms before they can legally install and use the proprietary software. The license agreement may outline specific restrictions, limitations, and permitted usage scenarios.

Installing and using the software on any number of computers: This is not necessarily true for proprietary software.

Inspecting, modifying, and redistributing the software: These activities are typically not allowed under a proprietary software license, as they generally provide limited or no access to the source code and impose restrictions on modifications and redistribution.

Copyrighting and reselling the software: These rights are typically retained by the software's copyright holder and are not granted to users under a proprietary software license.

Therefore, install and use the software after agreeing to the terms of the license.

Thus, option (b) is correct.

Learn more about Software installation here:

https://brainly.com/question/7548929

#SPJ6

The question attached are seems to be incomplete, the complete question is:

A proprietary software license allows users to :

install and use the software on any number of computers.install and use the software after agreeing to the terms of the license.inspect, modify, and redistribute the software.copyright and resell the software.

what is CPU ????....................​

Answers

Cumputor its just a short way to say it

Answer: Central Processing Unit

Explanation: The CPU is the “brain” of the computer. It means Central Processing Unit!

hope this helps ;)

Who knows songs that are sad,happy,excited, and calm

Tell me three 4 each i will give out brainliest

Also include the author

Answers

sad-

you broke me first

can we kiss forever

love the way you lie

happy-

Say Yes

Valerie

Walking on Sunshine

excited-

who let the dogs out

September

calm-

heather

put your records on

lonely

1.portable hard drive is an example of internal memory true or false

2.Command i’m user interface are using currently true or false

3. Temperature sensor is an input device true or false

4. Draft few headers and footers are visible true or false

Answers

1. false

2. false

3. false

4.true

1.False
2.False
3.False
4.True

Which symbol is used for exponentiation in QBASIC ?
Short answer​

Answers

Answer:

The symbol which is used for exponentiation in QBASIC is '^' .

What does the National Institute of Standards and Technology do? Promotes innovation by advancing measurement standards promotes cooperation in metrology among several regions provides certifications to individuals working in the field of metrology provides mentors to individuals working in the field of metrology

Answers

Answer:

Promotes innovation by advancing measurement standards

Explanation:

The National Institute of Standards and Technology was Founded in the year 1901, this agency is a non-regulatory body that is found within the United States Department of Commerce.

The mission of this agency is the promotion of innovation and also industrial competitiveness through the advancing of measurement science, standards, and also technology in several ways that raises economic security and also brings about improvement in the quality of life.

Answer:

(D) promotes innovation by advancing measurement standards

Explanation:

when a plant responds to changes in the length of day by flowering during certain seasons,it is called​

Answers

Answer:

It occurs in plants and animals. Photoperiodism can also be defined as the developmental responses of plants to the relative lengths of light and dark periods. They are classified under three groups according to the photoperiods: short-day plants, long-day plants, and day-neutral plants.

If the transmitting device would like for the receiving device to push currently buffered data to the application on the receiving end immediately, it would set the ____ flag.

Answers

Answer:

The right approach will be "PSH".

Explanation:

The PSH flag seems to be an acceptable solution through TCP which always encourages the submit implementation to immediately transfer data but only whenever the buffer isn't complete. The implementation helps to formulate this same flag towards true for something like the connection, as well as TCP will instantly begin transmitting the relevant information.

Question 4Write a C++ program which display the following shape.
*****

Answers

Answer:

The code to this question can be defined as follows:

#include <iostream>//header file

using namespace std;//namespace

int main()//main method

{

int x,y;//defining variable

for(x = 1; x <= 7; x++)//defining outter for loop for print rows

{

for(y = 1; y <= 7; y++)//defining inner for loop for print column

{

if(y <= x)//defining if block to check y less then equal to x

cout << "*";//print asterisk value

else//defining else block

cout << " ";//use for spacing

}

for(y = 7; y >= 1; y--)//defining for loop for print right triangle

{

if(y <= x)//defining if block to check y less then equal to x

cout << "*";//print asterisk value

else//defining else block

cout << " ";//use for spacing  

}

cout << "\n";//use for line break

}

return 0;

}

Output:

please find the attachment.

Explanation:

In the above program code, two integer variable "x, y" is declared, which is used in the for a loop. In this, two for loop is used to print the left triangle, and the last loop is used to print the right triangle. In both, the loop uses if block to check y is less than equal to x and print the asterisk value with the spacing.

Brainly, ""helping you get better grades"
ahem im sorry but uh ur lying because i made a C on my exam and im really mad smh

Answers

Answer: What do you except? All of this is user generated..

Explanation:

Yikes- well I mean these are real people answering so they could make mistakes too

Desktop computers are often provided in the workplace by organizations, and laptops may be as well. However, portable devices (such as tablets and smartphones) may more commonly be allowed on a BYOD basis. For a BYOD (personally-owned) device:

Answers

Answer:

Organizations may have requirements about how BYOD devices may be configured to access the information resources of the organization.

Explanation:

Desktop computers and laptops are often provided for the employees in the workplace. On a BYOD basis, portable devices such as tablets and smartphones may more commonly be used.

For a BYOD (personally-owned) device, organizations may have requirements about how BYOD devices may be configured to access the information resources of the organization.

Other Questions
What kind of energy involves the flow of negative charges? Can someone pleaseee help if youre correct IllGive u brainlist ! What happened to white governments after Radical Republicans took control of Reconstruction in 1866? Who was probably the most famous anonymous source in 20th-century journalism? How did his information change the course of history? If you work in a hospital or doctors office and assign numeric values PLEASE HELP!!! Ill give Brainliest!!!In one or two paragraphs, describe your opinion on what makes lIslam a separate religion from Judaism and Christianity. What do you think makes a set of beliefs a"religion"? Support your answer with examples from what you have learned or withdetails from the table. ASAPWhich concept is part of the theory of evolution by natural selection? A. It is impossible to pass along traits from one generation to the next. B. The best-adapted animals in a population cannot reproduce C. New generations are better suited to survive than previous generations. D. Evolution can only cause small changes to a species. Anyone know? Thank you!! i dont get this question Developmental norms are used as a benchmark to determine where one should be developmentally. Please select the best answer from the choices provided T F What is the molarity of a 4.447 L solutionthat is made from 13.53 g of NaCl?Answer in units of M. If I had 1 banana then I ate that banana how many of the banana would I have hint the peal First person gets brainliest Find the Valur that Would make the graphs parallel... Its alegebra please help quick i need help! Manuel bought a 3/5 of a pound of clay for the students in his pottery class. He then divided the clay into 6 equal pieces for his students to use for making vases and pots. How much did each piece weigh?Group of answer choices Write the next three terms of the arithmetic sequence.First term: 2Common difference: 13The next three terms, in order, are, and The author states that Irving's is his "most compelling educational tool." Do you agree? Jose is offered a job in Riverside where the CPI is 80, and a job in Los Angeles, where things are a little more expensive and so the CPI is 200. Jose's job offer in Los Angeles is for $100,000. How much does the Riverside job have to pay in order for the two salaries to represent about the same purchasing power (Hint: use the CPIs given to convert Los Angeles dollars to Riverside dollars) Reilly and Samantha work at frosty freeze ice cream shop. Reilly works every other day, and Samantha works every third day. Today they are working together. How many days will it be until the next time they work together? Clara has a purse in the shape of a trapezoid.The top of the purse measures 22 cm while the bottom of the purse measures 36 cm. If the area of the purse is 754 cm, what is the height? Four less than the sum of a number and six is ten.Someone please help