Explain what iteration is and why we need it in code

Answers

Answer 1

Answer:

Explanation:

When a cycle of instructions is carried out in a repeated manner, it is called a loop. It is the replication of a process in a computer program, commonly executed with the use of loops. Iteration is essential as it lets a programmer streamline a design by declaring that definite steps will be repeated.


Related Questions

Alexandra wants to create a math game in which users have to correctly answer mathematical problems. She wants the game to solve a randomly created problem and then indicate if the player's answers are correct or incorrect. How is Alexandra getting the program to solve mathematical problems?

Answers

Answer:

The way Alexandra will get the program to solve mathematical problems is for her to write an algorithm, so that the computers can follow  series of step-by-step instructions to get the equation solved

Explanation:

From the question, we are informed about Alexandra who  wants to create a math game in which users have to correctly answer mathematical problems. She wants the game to solve a randomly created problem and then indicate if the player's answers are correct or incorrect. In this case the way Alexandra will get the program to solve mathematical problems is for her to write an algorithm, so that the computers can follow  series of step-by-step instructions to get the equation solved. An algorithm  in computer is often created as function, it can be regarded as a step-by-step instructions that are put in place to carry out specific task. This can range from simple process to complex operation, simple operation such as addition or multiplication of numbers and complex operation that involves playing of video file that is compressed.

Select each of the tasks that you could complete using a word processor.

Create a table that lists your favorite movies and actors

Make a list of homework assignments

Take notes for science class

Search for information on the Internet

Write a manuscript of a book

Schedule a meeting

Answers

Answer:

Create a table that lists your favorite movies and actorsWrite a manuscript of a bookMake a list of homework assignments

Explanation:

Word processing tool is used for different purposes such as typing reports, preparing notes and books etc.

Now from the given options, following tasks can be performed using a word processor

Create a table that lists your favorite movies and actorsWrite a manuscript of a bookMake a list of homework assignments

Create a table that lists your favorite movies and actors

Write a manuscript of a book

Make a list of homework assignments

(Yes I did copy the person above me)

Jared has trouble remembering when his assignments are due, and he wants to keep reminders on his computer. Which online note-taking tool would be the best one to use?

Answers

Answer and Explanation:

Google Keep & Google Reminders

Google Keep is an online stick-note tool, that also has an online reminder tool as well. You can also use another platform for reminders such as Google Reminders. Both platforms are easy, online and simple to use!

Answer: electronic sticky notes

Explanation:

:)

A material systems developer typically combines the skills of a programmer with the multitasking expectations of a
.

Answers

Explanation:

Material systems developer typically combines the skills of a programmer with the multitasking expectations of developing 3 dimensional models of objects, enhancing the graphical effects.

don't delete my answer this time i try to help ppl

One advantage of putting information into a database is that you can filter the data.
O True
O False

Answers

Answer:

True.

Explanation:

One of the purposes of databases is to allow data lookup through queries, which is basically filtering data, using efficient algorithms too.

Answer:

True

Explanation:

Which option best describes MacHack 6?

A.
It was a text-based adventure game.
B.
It was a graphical adventure game.
C.
It was a shooter game.
D.
It was an interactive chess program.
E.
It was a puzzle game t

Answers

Answer:

D. It was an interactive chess program.

Answer:it d

Explanation:

What is the average rate of change of h(x)=2^{x+1}h(x)=2 x+1 h, (, x, ), equals, 2, start superscript, x, plus, 1, end superscript over the interval [2,4][2,4]open bracket, 2, comma, 4, close bracket?

Answers

Answer:

Average Rate = 12

Explanation:

Given

h(x) = 2^(x + 1)

Interval = [2,4]

Required

Determine the average rate of change

The average rate of change of h(x) is calculated using.

Average Rate = (h(b) - h(a))/(b - a)

Where

[a,b] = [2,4]

Meaning a = 2 and b = 4

So, the formula becomes:

Average Rate = (h(4) - h(2))/(4 - 2)

Average Rate = (h(4) - h(2))/2

Average Rate = ½(h(4) - h(2))

Calculating h(4)

h(4) = 2^(4+1)

h(4) = 2⁵

h(4) = 32

Calculating h(2)

h(2) = 2^(2+1)

h(2) = 2³

h(2) = 8

So, we have:

Average Rate = ½(h(4) - h(2))

Average Rate = ½(32 - 8)

Average Rate = ½ * 24

Average Rate = 12

Hence, the average rate of change is 12

1.
PART A: Which of the follovling best identifies the author's claim in the text?
A Hopper was often underestimated because of her gender and unable to
contribute her ideas and insights.
Without the influence of Hopper, it is unlikely that women would be allowed to
work in the field of computer science today.
C. Hopper's contributions helped develop computers and expand the presence of
female programmers in computer science.
D. While Hopper was successful with technology, she struggled to connect with
other people.

Answers

A. Since it tells about how people think she’s lesser because she’s a women.

Answer:

C.  Hopper's contributions helped develop computers and expand the presence of female programmers in computer science.

Explanation:

    The answer would be C, as all throughout the article, Slavin gives numerous examples of ways Hopper had contributed to the development of computers. She was a technologist in the Navy, working on machines such as Mark I, Mark II, and Mark III, a marketer, a teacher at Harvard, a politician, and a great business lady. Overall, with everything said in the article, answer C fits the best, as it covers the main idea of the article itself.

Why is cyberbullying so devastating to many people beyond just the victim?

Answers

Answer: If the situation goes undetected, it can lead to serious situations, self-harm, and damaged relationships. According to Superintendent Alex Geordan, some common long-term effects of cyberbullying include depression, low self-esteem, unhealthy addictions, trust issues, and poor mental health.

In our situation now a days in online class we are experiencing different problems such as internet
problems like internet connection low quality gadgets technical problems using laptops and computers set up as an ict student how can you solve these common learning problems based on the knowledge you gained in computer hardware servicing

Answers

Swsss23232322222-32322



The admission booth at the show requires each person to enter their age. Then the following program executes (See image.): When age = 16, what action would the program execute?



A. print “16”
B. print “Student price is $8.”
C. print “14”
D. print “Student price is $14.”

Answers

the data represented by numeric whole-number values, either positive or negative, that do not have decimal points

A. Boolean

B. string

C. Float

D. integer

What is another name for repetition in programming?

A. duplication

B. replication

C. redundancy

D. iteration

All of the following are types of errors in a computer program EXCEPT

A. syntax

B. parameter

C. semantic

D. logic

17.

What is one way that programmers insert explanatory statements in their code?

A. for loops

B. compiling code

C. use comments

D. create variables

18.

Why is readable code important? Choose all that apply.

A. It is more fun to write.

B. It makes the purpose and flow of a program easier to understand and follow.

C. Anyone needing to work with the code in the future will have an easier time.

D. It will save time when it is time to update the program.  (MAYBE D AS WELL) if u are allowed to select more than 2

19.

All of the following are true about debugging except

A. debugging is not a necessary process

B. it is a process of identifying and eliminating errors in a software program

C. it is essential to produce high-quality programs

D. eliminating bugs is an important part of the program development cycle

20.

The type of conditional statement that tests if a condition is true or false

A. if

B. not

C. or

D. and

24.

Which best describes a computer bug?

A. a piece of computer hardware that is out of date or has a newer version

B. a piece of computer software containing defects that prevent a program from running properly

C. a piece of computer hardware that is being used improperly

D. a piece of computer software that is out of date or has a newer version

25.

Which set of variables will make code easier to understand?

A. a, b, c

B. sum, price, count

C. xii, xix, xxi

D. x, y, z

23.

An argument is different from a parameter in that an argument

A. refers to a piece of data to be supplied.

B. is a placeholder for a constant value.

C. is the data passed into a parameter.

D. is always variable.

Answer:

B. print "Student price $8."

Explanation:

B

Which design perspective best describes memory and storage requirements?

Data modeling
IT infrastructure
Prototype
The system model

Answers

Data modeling is perspective best s

Which statement best describes the pros and cons of lack of regulation for cloud-based technology? Lack of regulation enables people to collaborate without the extra cost of paying a service provider; however, there is an increased opportunity for cybercrime. Lack of regulation speeds up the process of invention, but requires individuals to back up their own data. Lack of regulation encourages open innovation, but is not always secure. Lack of regulation encourages greater collaboration, but can lead to increased cost from price increases.

Answers

Answer:

3.) Lack of regulation encourages open innovation, but is not always secure.

Explanation:

Got it right in Introduction to Careers in Arts, A/V Technology and Communications

What is a product of respiration

Answers

Answer:

carbon dioxide and water

Explanation:

Which the following is true of functions?

A. Programs written with functions more quickly

B. Function can help remove repeated code from a program

C. Replacing repeated code with a function will reduce the number of commands the computer needs to run.

D. Functions are called once but can be declared many times

Answers

The answer you are clocking for is B. Hope this helped!

How many passes will it take to find the five in this list? 1, 5, 10, 15, 20, 22, 30 edgenutiy 2020​

Answers

Answer:

1

Explanation:

Answer:

The answer is 2

Explanation:

edge 2020

plzzzz help!!!


Drag the tiles to the appropriate buckets.
Which functions do each of the following perform?

Answers

Answer:

Record:

"Contains information related to a specific person or other entity"

Report:

"Is generated by running a query"

"Can be in the form of a table or a graph"

Querie:

"Is used to retreieve information from a database"

"Can contain filters"

"Appears horizontally in a table"

Explanation:

THE ONES THAT I UNDERLINED ARE THE ONES IM UNSURE ABOUT

Answer:

Record -

Contains information related  to a specific person or  other entity

Appears horizontally in a table

Report -

Is generated by running  a query

Can be in the form of a table  or a graph

Querie -

Is used to retrieve information  from a database

Can contain filters

Explanation:

I got it right on the Edmentum test.

what is electro magnetism

Answers

Answer:

Electromagnetism is a branch of physics involving the study of the electromagnetic force, a type of physical interaction that occurs between electrically charged particles

Explanation:

Answer:

malay ko di ko alam sagot dyan eh kaya isip ka rin ghourl

Can someone give me the code for the edhesive 3.7 code practice for python? Thanks. The first person to give a correct answer will get brainlyist.

Answers

Answer:

Try

568458

448952

123456

Also just keep hitting keys till u get it :)

Explanation:

Hope this helps u plz mark brainliest

QUICKLY PLEASE!!!

Respond to the following in three to five sentences.

What is the purpose of netiquette guidelines?

Answers

Answer: As the conventional etiquette, which lays out rules of ethics in social contexts, the purpose of netiquette is to help create and sustain a friendly, relaxed and productive atmosphere for online contact, as well as to avoid putting pressure on the system and creating tension between users.

Explanation:

How would a person giving a persuasive speech use projection to make a key point?

a. by talking at a faster pace
b. by using a louder voice
c. by pronouncing words clearly
d. by using an upward intonation

Answers

Answer:

B: by using a louder voice

Explanation:

if Edge quiz then B

Answer:

B: by using a louder voice

Explanation:

correct on e2020 :)

Can someone help me and make a code for this in PYTHON, please? I would be very grateful!
It is estimated that China on July 1, 2019. had 1,420,062,022 inhabitants. The population of China increases by 0.35% every year. Assuming that the annual population growth in China will not change, show the expected population of China in the next ten years.
Please... Thanks in advance!

Answers

Code:

next_ten_years = 1420062022*1.0035**10

print(next_ten_years)

Output:

1470554353.1178253

Explanation:

Since the population of inhabitants increases by [tex]0.35\%[/tex] each year, the total population must be [tex]100.35\%[/tex] of the previous year's population (since it includes the previous size of the population and the [tex]0.35\%[/tex] increase of the population)

The math:

Expected population in next 10 years = [tex]1420062022 \times 1.0035^{10}[/tex]  ([tex]100.35\%[/tex] is [tex]1.0035[/tex])

Code:

Looking at the code above, the '**' raises the power of a number to the number you put after the operator, so 1.0035**10  is [tex]1.0035^{10}[/tex]. The '*' operator multiplies the two numbers that are placed before and after the operator, so 1420062022*1.0035 is [tex]1420062022\times 1.0035[/tex].

The expected population in the next ten years is 1,470,554,353 (if we round to the nearest inhabitants since there can't be a decimal amount of inhabitants).

Hope this helps :)

Jason has decided to use his name on all the images to protect them from misuse. He has also decided to use the logo of his company across all
the images to be extra sure about its protection in the digital world. Select the phrases or sentences that describe the two types of watermarking
options has he used to get the results.
Types of Watermarking Options
Jason wants to tag his name or logo somewhere on the image, preferably in the corner of the photo. He uses an online editing tool to add his
name at the corner of the image. He can prevent misuse of his Images online by adding a watermark over the image. Text watermarking
involves adding the imageer's name at the corner of the image. This is usually done with the help of online editing tools or software. In this form
of watermarking, he can use the logo of his company over the image to protect his identity.
Just to be sure, Jason also uses tiled watermarking, which involves placing his company logo in a pattern spread across the image. First, he
creates a copy of the original. This is to make sure that the watermarked version is saved separately. If needed, he can always access the
original image. Then he opens the logo that he wants to use as the watermark, coples It, and pastes it onto a new layer, above the image. He
turns down the opacity of the layered image. Then he merges the layer to join the watermark with the image.
L

Answers

Answer:

Text watermarking involves adding the photographer's name at the corner of the image.

Explanation:

This was one of the correct answers when I took the test, I got it wrong because I didn't pick all the correct answers. I hope that this was helpful to you! If you know the other correct answer(s) please comment and let me know and i'll edit this answer! :)

Answer:

Text watermarking involves adding the imageer’s name at the corner of the image

tiled watermarking, which involves placing his company logo in a pattern spread across the image

Explanation:

on edmentum

Makayla is cre iting a brochure for her computer consulting company. She designed the layout and placed a banner containing the
company name in the center of the page. Being unsatisfied with the effect, she has decided to move the text box containing the name
to the top of the page. In 3-5 sentences, describe the procedure Makayla will use to move the banner.

Answers

The procedure depends on the software and methods she uses.

In photoshop or InDesign she might need to fdrag and drop the title to the new location.

In Word/Publisher she has to cut and paste the title to the new location or to drag the box to the top.

Hi I will Venmo or cash app 50$ to whoever can get all my school work in a week 8th grade btw.

Answers

Answer:

i gotchu dawg

Explanation:

Answer:

UwU Can't, thanks for le points sowwy

Explanation:

HELP!!!
To help ensure that an HTML document renders well in many different web browsers, it is important to include which of the following at the top of the file.

A) an tag
B) a doctype declaration
C) a tag
D) a tag

Answers

Answer: B

Explanation:

I did not get why there 3 of the same question

Answer:

I think it is:

B. a doctype declaration

Explanation:

Mary is a student that's always been helpful to other students and plays her part when group assignment is given and ensures that the group work is complete. Mary display good __________ skills.

Answers

Explanation:

..................are there no options?

Teamwork skills I would guess

I just downloaded this song and if any one wants to listen to it then go ahead and do that. It’s called Trap Music 2018 âa bass boosted trap mix.

Answers

Answer:

ok

Explanation:

how to get to meters to kilometer

Answers

Answer:

The length in kilometers is equal to the meters divided by 1,000.

Explanation:

The length in kilometers is equal to the meters divided by 1,000.

Just divide it by 100

Describe the scope of the variables in this code.

class pet:
def __init__(self,strSpecies,strName):
self.species = strSpecies
self.petName = strName

def __str__(self):
return self.species + " named " + self.petName

def changeName(self, newName):
self.petName = newName

class petCarrier:
size = 'medium'
color = 'red'

The scope of petName ______.

The scope of color is ______.

Accessible to the entire program
limited to the petCarrier class
limited to the pet class


(both of the blanks need one of those answers)

Answers

The scope of petName is local to the class pet.

The scope of color is accessible by all parts of the program.

How to interpret programming variables?

The variable petName is local to the class; This isdue to the fact that the variable was created in a function whose name begins with two underscores.

The variable color; This is created in the petCarrier class and is accessible to the entire function. This was not created in a function whose name begins with an underscore.

Read more about programming variables at; https://brainly.com/question/9238988

#SPJ2

Answer:

The scope of petName limited to the pet class

The scope of color is accessible to the entire program

Explanation:

edge

Other Questions
4. Local constitutions may also be called which of the following A. Handbooks B. Directories C. Charters D. Compendiums i am beyond confused Which action caused the Indian Removal Act of 1830 to be viewed as a horrific event for theUnited States government?A) The Trail of TearsB) The United States was able to gain more land from the Native Americans.C) President Jackson created the Black Hawk War.D) The United States was greedy in their quest for land. I need help please Voy al _____ para ir de compras.templobaocentro comercialrestaurante Which is an example of the use of plants in human societs? Stream of consciousness is: A circular clock has a circumference of 48.5 meters. What the measurement of the radius, in meters, of the clock? whats some facts about Sunni and Shia Muslims ? hi everyone! I have a question for you to answer that is worth 10( I think) points for each person! in which aquatic ecosystem does fresh water meet salt water?wetlandsintertidal zonesestuariesneritic zones (take your time) Use the graph below for this question: A 6 4 3 What is the average rate of change from x = -1 to x = -2? (1 point) 2 - 2 4 -1 Why might the English government have agreed to send debtors to the New World? At a divergent plate boundary, two plates______. Hey, can any brainliest help me? plants Which part of the carbon cycle occurs when plants, trees, or fossil fuels are burned? A. Transpiration B. Oxidation C. Photosynthesis D. Combustion What is the value of V81[tex] \sqrt{81} [/tex] Find the distance between the two points rounding to the nearest tenth (if necessary).(-4,-6) and (-9,6) daily dose of memes for now post EnglishSpanishDrawing/Image (optional)feverwaiting roomdoctors officeinjectioncoughsneezeitchcoverget wellrestprescribecatch a cold; have a coldhealsore throat; pain in the throatHe/She looks badYou (formal) must take better care of yourselfCognatesEnglishSpanishDrawing/Image (optional)examinesymptomthermometerGrammar: Informal commandsCircle the best response for each scenario:In Spanish, if you are addressing your cousin or your best friend, you would use t/usted.In Spanish, if you are addressing someone you dont know, you would use t/usted.In Spanish, if you are addressing someone older than you, you would use t/usted.Video: Affirmative and negative formal commands introductionWhy does Renata say to Javi: That sounds like something he would say to my abuelita?Formality is used as a sign of respect when addressing ________ people or people ________________.What formal command does Renata give to Javi at the end of the video?Grammar: Affirmative and negative formal commandsUse the Gramtica Nueva section to complete the following chart. You may copy and paste the accented and special characters from this list if needed: , , , , , , , , , , , , , , Formal Command EndingsIf the verb ends in:-ar-er-irThe formal command ends in:Write a sentence in Spanish telling your mom to cover her mouth when she coughs._____________________________________________________________________________________.Write a sentence in Spanish telling someone you dont know not to cough._____________________________________________________________________________________.You will notice the endings are the same for affirmative and negative formals commands. The only difference is that negative affirmative commands begin with _____.Culture: Los mandatos cuando tienes una heridaWhere does Belinda live? What is the slope of the line in the graph?PLEASE HURRY {(2,0), (4, -3), (6, 9), (-2,7), (4,9)}What is the range?um...? idk