PLS HURRY
Look at the image below

PLS HURRYLook At The Image Below

Answers

Answer 1

Answer:

20

Explanation:

During the first iteration for the list [1, 4], numB = 1.

During the first iteration of the list [2, 3], numA = 2.

answer = answer + numA + numB

= 0 + 2 + 1

= 3

Since the list [2, 3] is in a nested loop, we need to first finish iterating the whole list before numB iterates to the next number, so numA = 3 this time and numB still stays at 1.

answer = answer + numA + numB

= 3 + 3 + 1

= 7

Now, numB moves to 4 and numA starts back at 2 again.

answer = answer + numA + numB

= 7 + 2 + 4

= 13

numB still says at 4 and numA moves to 3 since it is in a nested loop:

answer = answer + numA + numB

= 13 + 3 + 4

= 20

print(answer) will print the output 20.

Hope this helps :)


Related Questions

THIS IS WHAT I DID!!!

One of the key inventions that made the World Wide Web possible is the
URL.

In the year, 1969, the American Department of Defense put a military research network, called ARPANET online.

Which organization developed a network called CSNET to provide a network free to all American research and educational institutions? Type the full name of the organization.
National Science Foundation

Complete the following sentence.
The first email was sent in 1971.

Complete the following sentence.
The PC modem was invented in 1977.

Complete the following sentence.
The World Wide Web launched to the public in 1991.

Complete the following sentence.
The first cell phone with an Internet connection released in 2001.


PLEASE HELP ME THIS QUESTION!!!!!! I'M DUE TODAY:)
Write a paragraph response explaining the research process that you used to find the answers for your project. Include in your response to the ways in which you determined the sites were valid and accurate.

Answers

Answer:

thank you for this and for the paraghraph this is what i put

Explanation:

Recently the google chrome software doesn't allow sites that they don't make or are from a popular news browser to be accessed through the search engine. So a matter of "is this a site that will give me valuable information that is also correct" more applies to when the internet was first created. But nowadays if you are on a secure website there should be a little lock at the top by the URL. this isn't on all the secure websites because the companies Amazon, Walmart, and, Best buy have proven to be very safe and they don't have a lock.

Following are the responses to the given question:

The ARPANET was built by the U.S. Department of Defense's Advanced Research Projects Agency. Bob Taylor launched the ARPANET project in 1966 to enable remote computer access, based on the ideas of J. C. R. Licklider.The NSF funds research and teaching in science and engineering through grants, contracts, and cooperation agreements. It Foundation is responsible for roughly 20% of government money in fundamental research in academic institutions.The first communication is being sent to a computer to the machine over ARPANET on October 29th, 1969. Ray Tomlinson invented email messages as we know them today in 1971, as he created ARPANET's networked mail server.In 1977, Dale Heatherington & Dennis Hayes developed the first modem PC of the world,  the 80-103A.  A Modem which gave all the right features at precisely the correct price point that connected to a phone, something which users had never had the opportunity of experiencing up to this time.On August 6, 1991, Berners-Lee published the first-ever site, heralding the commencement of a Web as an available to the public service on the Internet. The site had to do with the World Wide Web project, explaining the Internet and how it is used.The Nokia 9000 Communication was the first cell phone to include Internet access.By selected words from the questions, rewrote them in a simpler manner, and then go ogled it. I clicked on several sites & thought that what was most usually written was accurate.

Learn more:

brainly.com/question/4735264

Intellectual property rights protect people’s and organization’s ideas and other intellectual assets. However, in certain cases, they may have a effect on innovation.


computer science

Answers

Answer:

negative effect

Explanation:

its right on edg

Answer:

negative

Explanation:

ed22

Which of the following component is required to insert text in multimedia
programme?
i. Animation
ii. Text
iii. Graphics​

Answers

Answer:

Text is used to insert text in multimedia program.

Hence,

Option ii. Text is the correct answer.

Explanation:

Let us define the terms first.

1. Animation:

Animation is kind of images that move. Animations are used to show some kind or process or working that is happening in multimedia program

2. Text:

Text is the explanation which is given in explicitly using fonts and typefaces.

3. Graphics:

Graphics are the images, logos that are used in multimedia.

So from the definitions above,

Text is used to insert text in multimedia program.

Hence,

Option ii. Text is the correct answer.

This software application can be used to organize, analyze, and illustrate data?
O Excel
O Outlook
O PowerPoint
O Word

Answers

Answer:

Excel

Explanation:

Excel is a program by Microsoft that allows the user to create and organize data in tables in graphs.

Word is a documentation program by Microsoft that allows the user to create a written document with images, graphs, etc. But it is not used to organize data.

PowerPoint is a program by Microsoft that allows the user to create and display presentations.

Outlook is a program by Microsoft the allows the user to email other users' and emails along with other emails in general.

Answer:

O Excel

Explanation:

JAVA
Write a program that requests the user input positive numbers until they input -1, then prints the sum of all numbers.
Sample run:
Enter positive numbers (-1 to stop)
3
7
8
-1
Sum is 18

Answers

import java.util.Scanner;

public class JavaApplication33 {

   public static void main(String args[]) {

     Scanner scan = new Scanner(System.in);

     int total = 0;

     System.out.println("Enter positive numbers (-1 to stop)");

     while (true){

         

         int num = scan.nextInt();

         if (num == -1){

             break;

         }

         else{

             total += num;

         }

     }

     System.out.println("Sum is "+total);

     

}

}

I hope this helps!

The program is an illustration of loops.

Loops are used to carry out repetition operations; examples are the for-loop and the while-loop.

The program in Java, where comments are used to explain each line is as follows:

import java.util.*;

public class Main

{

public static void main(String[] args) {

    //This creates a scanner object

 Scanner input = new Scanner(System.in);

 //This initializes sum to 0, and declares num

 int sum = 0; int num;

 //This gets input from the user

 num = input.nextInt();

 //The loop is repeated until the user enters -1

 while(num!=-1){

     //This if-condition ensures that, only positive numbers are added

     if(num > 0){

         sum+=num;    

     }

     //This gets another input from the user

     num = input.nextInt();

 }

 //This prints the sum of all positive numbers gotten from the user

 System.out.print(sum);

}

}

The above program is implemented using a while loop

Read more about similar programs at:

https://brainly.com/question/15263759

being a media and information literate indibidual is important especially during this modern time.give atleast three example situations that show its importance in your daily life​

Answers

Answer:

I REQUIRE POINTS CAUSE I NEED ASWERS FOR M HOMEWORK

Explanation:

White lines
A.separate traffic lanes moving in opposite directions
B.separate traffic moving in the same direction
C.indicate a handicap parking space
the
D.indicate temporary parking

Answers

Answer:

Its B                                                                                                                                            

Explanation:

Answer: B

Explanation:

please don’t report this for wrong subject i just need an answer and i don’t know what this would fit in: (please only answer if you actually know, don’t guess)

if a driver is losing control (heart attack, seizing etc) and you are sitting in the passenger seat, should you put the car in park gear to stop a crash ?? if not, what else should one do ??

Answers

You should help stop the car immediately

Impaired drivers are one of the many risks drivers face on the Highway Transportation System. List 3 signs that a driver could be potentially impaired. Explain a strategy that you can use to keep yourself safe.​

Answers

Three signs a driver could be potentially impaired is swerving on the road, driving slower than “normal” speed limit, and driving outside of the lines (when not changing lanes).

A strategy to keep yourself safe from impaired drivers could be to keep a safe distance from drivers nearby that are exhibiting erratic or potentially dangerous driving behavior.

Answer:

Three signs that could show that a driver is impaired are: Swerving on the road, driving slower than the speed limit, and driving on top of lines or inside and outside the lines. A strategy to be safe would be to keep a safe distance from the driver, not try to outrun or pass the driver, stay a good distance behind the impaired driver to avoid potentially dangerous driving.

Mika forgot to put in the function name in his function header for the code below. What would be the best function header?

def draw():

forward(80)
left(120)
forward(80)
left(120)
forward(80)
left(120)
def drawDiamond():
def drawTriangle():
def drawN():
def drawH():

Answers

Answer:

i think its the first option

Explanation:

Answer:

I believe its the first option

Explanation:

PLS HURRY!!!
Look at the image below!

Answers

Answer:

Ctrl+c

Explanation:

U Need to use Ctrl+C

What method of thermal energy is at work when heat lamps are used to warm up baby chickens?

Answers

Answer:

Radiation

Explanation:

Answer:

radiation is correct

Explanation:

lol WAKE UP!!! and get ready to answer my questions.

Answers

Answer:

1. Variable Creation Statement2. Fav_Num=7

Explanation:

Hope This Helps :)Im not sure if the 2nd one is correct but i think that it is.

Which of the following led to the decline in production of LPs?

quality of LPs
appearance of LPs
cost of LPs
size of LPs

i will mark brainlist

Answers

Ahh, good ole LP’s, great sound from analog source

But SIZE, was major downfall as portable cassette/ boom boxes, CD and mp3, etc became available.

Assume that your body mass index (BMI) program calculated a BMI of 20.6. What would be the value of category after this portion of the program was executed? # Determine the weight category. if BMI 39.9: category = "morbidly obese" elif BMI <= 24.9: category = "normal" elif BMI <= 39.9: category = "overweight"
The value of category will be _______.

A)overweight
B)normal
C)underweight
D)morbidly obese

Answers

Answer:

B normal is the answer

Answer:

Normal

Explanation:

As with most professions, photography comes with its own unique set of terms and jargon. Identify at least four different words related to photography, define, and use them in a sentence that expresses their meaning in relation to the field.

Answers

Answer: See explanation

Explanation:

The words associated with photography include:

1. Filter: It is a device that is used to remove a certain form of light. It is usually placed on the lens of the camera when one wants to change the light or color.

John used different filter on his camera.

2. Camera : This is an equipment that is used to take photographs or make movies.

A new camera was bought by Ruth.

3. Photo book: This is a published book that contains photographs.

Bob knows a website where one can order photo books that are custom made.

4. Picture: This is a photograph or an image that can be seen on the television.

John took a picture of Tom when he was dancing.

5. Air brush: A machine that isused for painting or to improve the work done on a photograph.

The wrinkles on my grandma's face were airbrushed out.

Answer:(Aperture) is the first common photography term you should learn. Simply put, aperture is the size of the opening in the lens. Think of the lens as a window—large windows or wide angles let in more light, while small windows let in less light. A wide open aperture will let more light into the image for a brighter photo, while a smaller aperture lets in less light.  (Aspect Ratio) If you’ve ever printed images before, you’ve probably noticed that an 8 x 10 usually crops from the original image. That’s due to aspect ratio  (Bokeh) is the orbs created when lights are out of focus in an image.

Which formatting option(s) can be set for Conditional Formatting rules?

A) light red fill with dark red text, yellow fill with dark yellow text, and green fill with dark green text
B) light red fill with dark red text
C) light red fill, light yellow fill, and light green fill
D) Any of these formatting options as well as number, border, shading, and font formatting can be set.

Answers

Answer: D is the answer

d - any of these formatting options as well as number, border, shading, and font formatting can be set


Which file is usually the first file to be displayed when you navigate to a website?

1. home.html
2. Index.html
3. Template.html
4. Starter.html

Answers

Answer:

3. template.html

Explanation:

Choose the proper term to describe each of the following examples.
senate.gov:
IP Address
SMTP account name
domain name

23.67.220.123:
IP Address
SMTP account name
domain name

Answers

Answer:first 1

Explanation:

I need help with this question!

Answers

Answer:

5 and 10

Explanation:

Given

The above code segment

Required

Determine the outputs

Analysing the code segment line by line

[This initialises c to 0]

c = 0

[The following iteration is repeated as long as c is less than 10]

while (c < 10):

[This increments c by 5]. Recall that c is initially 0. Hence, c becomes 0 + 5 = 5

c = c + 5

[This prints the value of c which is 5]

print(c)

The iteration is then repeated because the condition is still true i.e. 5 is less than 10

c = c + 5 = 5 + 5 = 10

[This prints the value of c which is 10]

print(c)

The iteration won't be repeated because the condition is now false i.e. 10 is not less than 10.

Hence, the output is 5 and 10.

JAVA
Write a program that will input a list of test scores in from the keyboard. When the user enters -1, print the average.
What do you need to be careful about when using-1 to stop a loop?
Sample Run:
Enter the Scores:
45
100
-1
The average is: 72.5

Answers

import java.util.Scanner;

public class JavaApplication35 {

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter the Scores:");

       int total = 0;

       int count = 0;

       while (true){

           int num = scan.nextInt();

           if (num == -1){

               break;

           }

           else{

               total += num;

               count += 1;

           }

       }

       System.out.println("The average is: "+((double)total/count));

   }

   

}

I hope this helps!

Felicia is a computer programmer.

a. What hardware tool would you suggest for his computing system? Include an explanation and the cost.
b. What software program would you suggest? Include an explanation and the cost.
c. What operating system might you suggest (Mac, Windows, iOS, Android, etc) and why?

Answers

A: SSD, HDD, CPU or RAM

Whether you go with the faster SSD or slower but larger HDD, keep in mind you may end up needing a drive large enough to run a dual boot system if you plan on coding in multiple environments. Virtualization of other operating systems is another option, but that requires a fast CPU and a large amount of RAM to work well.

B: Ram because its larger than the others, and will work better.

C: i don't really have a suggested system but here

You may appreciate the seamless experience iOS offers, the flexibility of Android or the familiarity of Windows with your everyday PC. It might take some time to acclimate to a new system, so it may be best to stick with what you know.

Please consider marking brainliest.. thx

what is computer? Write is features




Answers

Explanation:

A computer is an machine that accepts data as input,processes that data using programs, and outputs the processes the data as information.

the features are

1) speed

2) accuracy

3) versatility

4) multi tasking

5) reliability

JAVA
Take two String inputs of the same length and merge these by taking one character from each String (starting with the first entered) and alternating. If
the Strings are not the same length, the program should print "error".
Sample Run 1:
Enter Strings:
balloon
atrophy
baatlrloopohny

Sample Run 2:
Enter Strings:
terrible
mistake
error

Answers

import java.util.Scanner;

public class JavaApplication83 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       System.out.println("Enter Strings: ");

       String word1 = scan.nextLine();

       String word2 = scan.nextLine();

       String newWord = "";

       if (word1.length() == word2.length()){

           for (int i = 0; i < word1.length(); i++)

           {

               newWord += word1.charAt(i) +""+word2.charAt(i);

           }

       

       }

       else{

           newWord = "error";

       }

       System.out.println(newWord);

   }

   

}

I hope this helps!

You designed a program to find the average of the user’s numbers. Which step below corresponds to finding the sum and dividing by the quantity of the user’s numbers?

Gather data.

Perform any needed calculations or data manipulations.

Define the problem precisely.

Communicate the results, along with an interpretation as needed.

Check the accuracy of your calculations and data manipulations.

Answers

Answer:

a

Explanation:

give me a crowns

The step below that corresponds to finding the sum and dividing by the quantity of the user’s numbers is to gather data. The correct option is a.

What is it to design a program?

Programs are developed utilizing specified structures in structured programming designs. As an illustration, somebody would want a financial statement analysis where the income statement profit is determined first and then the balance sheet is balanced.

The top-down programming refers to a method of creating programs that starts with the big idea and continuously breaks it down into its smaller elements. To put it another way, it begins with the abstract and keeps breaking it down until it reaches the specific.

Therefore, the correct option is a. Gather data regarding the program design.

To learn more about designing a program, refer to the link:

https://brainly.com/question/16850850

#SPJ2

Unconformities develop when new sedimentary layers accumulate atop old, eroded layers, resulting in a geologic hiatus. Which of the illustration represents a disconformity? Choose one:


A. Illustration A


B. Illustration B


C. Illustration C

Answers

Answer:

B it right

Explanation:

Midday is a good time to take a portrait outside.
true or false?

Answers

Answer:

B: False

Explanation:

edg2020

Midday is generally not an ideal time to take a portrait outside, especially under direct sunlight. This statement is false.

During midday, the sun is at its highest point in the sky, creating harsh and unflattering shadows on the subject's face.

The intense overhead light can cause squinting and result in unappealing contrasts. Instead, photographers often prefer to shoot portraits during the golden hour, which occurs around sunrise or sunset when the sun is low on the horizon.

During these times, the light is softer, warmer, and more diffused, creating a more flattering and aesthetically pleasing effect on the subject's features, making it an optimal time for outdoor portrait photography.

Know more about portrait painting:

https://brainly.com/question/1272412

#SPJ6

Terrance is looking for a storage device to be used for backup storage. The device has to have a large storage capacity and be portable. What is the best device for Terrance's needs?

External hard drive
Disk drive
Hard drive
USB flash drive

Answers

Answer:

its external hard drive  and flash drive

Your welcome

Explanation:

Which of the following should you consider when choosing a file format?

the browser you use most often

the age of the person who created the file

the need for future access and digital preservation

the length of time a file is under copyright law​

Answers

Answer:

“The need for future access and digital preservation”

Explanation:

When choosing a file format, it is important to consider the need for future access and digital preservation. The correct option is 3.

What is file format?

A file format is a method of organizing and storing data in a file that is standardized. It specifies how data in the file is organized and represented.

It is critical to consider the need for future access and digital preservation when selecting a file format.

This is due to the fact that different file formats have varying levels of compatibility with different software and operating systems, and some formats may become obsolete over time, making future access or opening of the file difficult or impossible.

Other factors to consider when selecting a file format include the intended use of the file, the file's quality and size, and any specific requirements or limitations of the software or platform being used.

Thus, the correct option is 3.

For more details regarding file format, visit:

https://brainly.com/question/1856005

#SPJ7

Why the HTML structure is important to properly written in HTML document

Answers

Answer:

A properly written HTML document will not only be readable to the user, but will also convey the structure of the document, the relationship of its content to each other, and allow the user to link to other pages and sites. HTML can do all of this because it's a markup language.

Answer:

The browser understands it, if you don't add the thing, you maybe can't access other files.

Explanation:

Other Questions
Why do we need to improve the quality and quantity of harvest? Answer the following question in 3-4 complete sentences.A sculpture covered in small pieces of glass glued together.Name this piece and its artist. What technique was used to create this piece? What comes to your mind when you look at this piece? How does it make you feel? Do you like this piece? Why/why not? Please help me with this problem Im stuck :( "My most immediate concern is in carrying out the purposes of the great work program just enacted by the Congress. Its first objective is to put men and women now on the relief rolls to work and, incidentally, to assist materially in our already unmistakable march toward recovery."How does this part of the text help FDR achieve his goal for giving the speech?AIt tells the story of one American who lost a job.BIt lists facts and details related to the new program.CIt explains the goal of this particular New Deal program.DIt describes problems that would occur if the program were not put into place. Math question need help solving this question ! How did the Missouri Compromise attempt to solve the debate over expanding slavery into new territories?A. It outlawed the expansion of slavery west of the Mississippi RiverB. It allowed each new state to decide whether or not to allow slavery by popular voteC. It prohibited slavery north of latitude of 36 30' and balanced the number of free and slave statesD. It required all new territories to ban slavery before being admitted as slaves What is the slope of the line that passes through the points (8, 2) and (9,3)? Writeyour answer in simplest form. The reason for the Great Depression to begin was... athe election of 1776.bdue to domestic and worldwide conditions.cpeople in Russia changed their country to the USSR. Which sentence is written in the conditional mood?A) Since I have to mail this letter, let's stop at the post office.B) I can sing well enough, so I'll join the chorus.C) If I don't gain enough experience, I can't be a lifeguard this summer.D) Why aren't you babysitting tonight? When Maria started her career at the age of 24, she deposited $800 into a savings account that earns 8.75% interest compounded semiannually. If shemakes no other deposits or withdrawals, find the total amount in theaccount when she retires at the age of 65.a. $11,378.17b. $26,791.81c. $27,817.94d. $209,234.59 Solve A=2lw+2lh+2hw for h. When you put water in freezer the temperature of the water begins to decrease. what is the cause of this temperature decrease A the water is lose if heat Be the water is absorbing cold from a surroundings. C the water particles are increasing in speed. D the extra pressure from the colder air causes particles to squeeze together. 1. Which English philosopher wrote his ideas in, Leviathan, describing the social contract that people have with their government? Answer 2. What is the basic meaning of John Lockes Social Contract, as expressed by Two Treatises of Government?Answer 3. Name the political philosopher who wrote, The Spirit of Laws, in which he promotes the idea that government should be divided into three branches of power. Answer 4. This American Founding Father wrote the original draft of the Declaration of Independence in 1776.Answer 5. What were the political principles, expressed in the Declaration of Independence, which became the foundation of our American government?Answer 6. What is the first section of the Declaration of Independence called? Answer 7. The Declaration of Independence states that the Creator (God) has given men these three rights. What are these natural rights? Answer 8. Name the government system that divides the power between state and national governments.Answer 9. A system of government where the power to rule is in the control of one person is called . . . Answer 10. Which ancient, classical Greek philosopher was known to be one of the first students of government?Answer 11. Separation of powers between the executive and legislative branches of the government is called a . . . Answer 12. In which type of government does the executive and legislative functions reside in the elected assembly of that government?Answer 13. What was known as the first representative governing body of the British colonies in America? Answer 14. What was the Mayflower Compact?Answer 15. What form of democracy do we have in the United States?Answer A. Federal B. Parliamentary Government C. Representative D. This explains the natural rights, life, liberty, & property that people automatically have E. Thomas HobbesF. Presidential GovernmentG. This was a colonial plan for self-rule government. H. Baron von MontesquieuI. House of Burgesses J. Thomas Jefferson K. Government by the consent of the governed & Strong belief in human liberty & rightsL. Aristotle M. Autocracy N. The PreambleO. Life, Liberty, and the Pursuit of Happiness 46 x 10-44.6 x 10-104.6 x 10-4 A recipe for 4 servings of pudding calls for 2/3 cup of cream. How much cream is needed for 12 servings of pudding? Pls help me out and pls explain pls answer I give brainliest solve for n. 9n + 120 = 336 help fast!what is the solution to the system of equations?a. no solution b. infinitely many solutions c. (4,-3)d. (1.5,-1.75) Q(3,5),R(3,1),S(-1,1),T(-1,5) Determine weather QRST is a rhombus, rectangle, or a square