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
salantis [7]
3 years ago
15

PLS HURRY Look at the image below

Computers and Technology
1 answer:
Nimfa-mama [501]3 years ago
4 0

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 :)

You might be interested in
Nathan notices his computer System is slowing down when he tries to copy documents to it he also gets a prompt I warned him that
galina1969 [7]

Answer:Hard drive or Solid State drive

Explanation:

5 0
4 years ago
To transfer data packets between two or more networks, a ________ is used.
gavmur [86]
<span>To transfer data packets between two or more networks, a router is used. The router is a networking device that works on the OSI Layer 3 and is able to transfer and forward data packets between several networks. The router is capable of reading and using the source and destination IP address of the data packet, which defines the sender and the receiver of the packet. </span>
6 0
3 years ago
Michael needs to ensure that those items that are automatically archived are still easily accessible within Outlook. Which optio
juin [17]

Answer:

show archive in folder list

7 0
3 years ago
Read 2 more answers
Write, compile, and test the MovieQuoteInfo class so that it displays your favorite movie quote, the movie it comes from, the ch
Irina18 [472]

Using the knowledge of computational language in JAVA it is possible to write a code that removes your favorite phrase from the movie. It consists of two classes in which one is driver code to test the MovieQuoteInfo class.

<h3>Writing code in JAVA:</h3>

<em>public class MovieQuoteInfo { //definition of MovieQuoteInfo class </em>

<em> //All the instance variables marked as private </em>

<em> private String quote;</em>

<em> private String saidBy;</em>

<em> private String movieName;</em>

<em> private int year;</em>

<em> public MovieQuoteInfo(String quote, String saidBy, String movieName, int year) { //parameterized constructor </em>

<em>  super();</em>

<em>  this.quote = quote;</em>

<em>  this.saidBy = saidBy;</em>

<em>  this.movieName = movieName;</em>

<em>  this.year = year;</em>

<em> }</em>

<em> //getters and setters </em>

<em> public String getQuote() {</em>

<em>  return quote;</em>

<em> }</em>

<em> public void setQuote(String quote) {</em>

<em>  this.quote = quote;</em>

<em> }</em>

<em> public String getSaidBy() {</em>

<em>  return saidBy;</em>

<em> }</em>

<em> public void setSaidBy(String saidBy) {</em>

<em>  this.saidBy = saidBy;</em>

<em> }</em>

<em> public String getMovieName() {</em>

<em>  return movieName;</em>

<em> }</em>

<em> public void setMovieName(String movieName) {</em>

<em>  this.movieName = movieName;</em>

<em> }</em>

<em> public int getYear() {</em>

<em>  return year;</em>

<em> }</em>

<em> public void setYear(int year) {</em>

<em>  this.year = year;</em>

<em> }</em>

<em> //overriden toString() to print the formatted data</em>

<em> public String toString() {</em>

<em>  String s = quote+",\n";</em>

<em>  s+="said by "+this.saidBy+"\n";</em>

<em>  s+="in the movie "+this.movieName+"\n";</em>

<em>  s+="in "+this.year+".";</em>

<em>  return s;</em>

<em> }</em>

<em>}</em>

<em>Driver.java</em>

<em>public class Driver { //driver code to test the MovieQuoteInfo class</em>

<em> public static void main(String[] args) {</em>

<em>  MovieQuoteInfo quote1 = new MovieQuoteInfo("Rosebud", "Charles Foster Kane", "Citizen Kane", 1941);//Create an object of MovieQuoteInfo class</em>

<em>  System.out.println(quote1); //print its details </em>

<em> }</em>

<em>}</em>

See more about JAVA at brainly.com/question/12975450

#SPJ1

7 0
2 years ago
The computer virus is simply a.......... a. diseases b.set of computer instrustruction or code c. types of bacteria​
Svetllana [295]

Answer: b

The computer virus is simply a ___

b. Set of computer instructions or code

4 0
3 years ago
Other questions:
  • In 3–5 sentences, describe how technology helps business professionals to be more efficient.
    7·2 answers
  • Which design approach help build sites that optimize varied screen sizes
    5·1 answer
  • Which ieee 802.11 standard provides for throughput of up to 7 gbps?
    8·1 answer
  • Greg is the network administrator for a large stadium that hosts many events throughout the course of the year. They equip usher
    7·1 answer
  • Identify a true statement about a flat file system. a. Data in a flat file system can be updated efficiently. b. Data in a flat
    9·1 answer
  • What is better apple or andriod
    11·2 answers
  • Name two different ways you can bring up the my computer folder
    9·2 answers
  • What is the Best IPTV service provider in the USA?
    9·1 answer
  • Click this link to view O*NET's Skills section for Biomedical Engineers. Note that common skills are listed toward the top and l
    8·2 answers
  • What do we do if IOC is called on the intercom ??
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!