Your classmate is frustrated because the code that was designed to add up her five quiz grades is not working properly.

What change would you suggest to your classmate based on this code?for (i=1;i<=5;i++){ sum=0sum=sum+i;}

Answers

Answer 1

Answer:

sum = 0 must be before for loop. If inside for loop, it will keep resetting sum to 0 each iteration.

Explanation:

hope this helps


Related Questions

The purpose of data analysis is to filter the data so that only the important data is viewed.


False

True

Answers

Answer:

YES IT IS TRUE!

Explanation:

Rachel wants to minimize project risks. Arrange the steps in an order that will correctly help Rachel and her team to minimize project risks.

Answers

identify, evaluate, prioritize, and then control

Answer:

identify, evaluate, prioritize, and then control

Explanation: I got a 100% on my test.

Consider the following code segment.
int[][] mat = {{10, 15, 20, 25},
{30, 35, 40, 45},
{50, 55, 60, 65}};
for (int[] row : mat)
{
for (int j = 0; j < row.length; j += 2)
{
System.out.print(row[i] + " ");
}
System.out.println();
}
What, if anything, is printed as a result of executing the code segment?

Answers

Answer:

10 20                                                                                                                          

30 40                                                                                                                          

50 60

Explanation:

Given

The above code segment

Required

What is printed, if anything

To do this, we analyze the code line by line.

Line 1: The first line creates a 4 by 3 array named mat

Line 2: for (int[] row : mat) {  -> This creates row[] array which represents each row of array mat

Line 3: for (int j = 0; j < row.length; j += 2){ -> This iterates through the even indexed elements of the row array i.e. 0 and 2

Line 4: System.out.print(row[i] + " "); -> This prints the even indexed elements of the row array.

The even indexed elements are: 10, 20, 30, 40, 50 and 60

Line 5: System.out.println(); --> This prints a new line

Which statement best describes the problem statement below?

Answers

Answer:

dont click on his link it has virus

how to get bing with any node unblocker

Answers

Answer:

rawr xD broooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

Explanation:

UwUOwO<3

Consider the following code:
a = 3
b = 2
print (a ** b)
What is output?
O 8
O9
O 1
6

Answers

Explanation:

I think the output is 6

am not sure tho hope my answr helps

You are an intern at Lucerne Publishing.
The company needs to use multiple versions of Microsoft Once on each machine in the editing department.
Which virtualization strategy should the company use?

Answers

Answer:

jvgbicgbvhkvfvuncj gjvfjvfk fj

You are an intern at Lucerne Publishing.
The company needs to use multiple versions of Microsoft Oce on each machine in the editing department.
Which virtualization strategy should the company use?

Answers

Answer:

Microsoft Application Virtualization (App-V)

Explanation:

Cloud computing can be defined as a type of computing that requires shared computing resources such as cloud storage (data storage), servers, computer power, and software over the internet rather than local servers and hard drives.

Generally, cloud computing offers individuals and businesses a fast, effective and efficient way of providing services.

In cloud computing, virtualization can be defined as a process which typically involves creating a virtual storage device, servers, operating system, desktop, infrastructure and other computing resources. Thus, virtualization is considered to be a building block (foundational element) of cloud computing as it powers it.

In this scenario, multiple versions of Microsoft Office are required to be used on each machine in the editing department. Thus, the virtualization strategy which the company should use is Microsoft Application Virtualization (App-V).

Microsoft Application Virtualization (App-V) refers to a virtualization and streaming software acquired by Microsoft from Softricity on the 17th of July, 2006. It is designed to avail software developers the ability to run, update and deploy (stream) software applications remotely to end users.

This ultimately implies that, end users could use multiple versions of a software application such as Microsoft Office 2013, 2016, etc., on each machine without having to worry about physically installing them on their Windows computer systems.

How many slides would be in a PowerPoint presentation based on the formatting of the Word outline?
A. two
B. Three
C. Eight
D. Eleven

Answers

Answer:

A. two

Explanation:

can i have brainliest please

Answer:

Explanation:

It depends on how the presentation is organized.  If there is one slide for each major section, then the answer is B. Three as there are 3 sections.

But if each outline has its own slide, then there will be D. Eleven slides.

Tell the story, step by step, of how your computer finds the CodeHS server,

Answers

Answer:

huh .......................................

Explanation:

Input a list of positive numbers, terminated by 0, into an array Numbers[]. Then display the array and the largest and smallest number in it.

Answers

Answer:

hope this helps and mark my ans brainliest if it helped.

Explanation:

def main():

Numbers = []

n = input("Enter the number: ")

while n != 0:

Numbers.append(n)

n = input("Enter the number: ")

if len(Numbers) > 0:

max = Numbers[0]

min = Numbers[0]

for i in range(0, len(Numbers)):

if max < Numbers[i]:

max = Numbers[i]

if min > Numbers[i]:

min = Numbers[i]

print Numbers

print "Largest: ", max

print "Smallest: ",min

  

main();

which operating systems have both workstation and server editions?
-ios
-android
-ubuntu
-windows

Answers

Answer:

WINDOWS

Explanation:

The operating system that have both workstation and server editions is windows. The correct option is D.

What is an operating system?

The operating system (OS) controls all of the computer's software and hardware. It basically manages files, memory, as well as processes, handles input along with output, and controls peripheral devices such as disk drives and printers.

The most chief software that runs on a computer is the operating system. It is in charge of the computer's memory, processes, as well as all software and hardware.

Several computer programs typically run concurrently, all of which require access to the computer's processor (CPU), memory, and storage.

Operating systems now use networks to connect to one another as well as to servers for access to file systems and print servers. MS-DOS, Microsoft Windows, and UNIX are the three most popular operating systems.

Thus, the correct option is D.

For more details regarding operating system, visit:

https://brainly.com/question/6689423

#SPJ2

The history of the Internet dates back to the 1960s, when a group of scientists at Stanford University were entrusted to design which of the following as part of the competition between the US and its then Cold War enemy, the USSR?


a main frame to siphon information

a super computer for the US government

a network of sophisticated computers

a computer to control weapons

Answers

Answer:

a network of sophisticated computers

Explanation:

This is an easy and simple read if you want to as well

https://cs.stanford.edu/people/eroberts/courses/soco/projects/2001-02/distributed-computing/html/history.html

15.Every CPU needs to:
a. Dissipate heat
b. Be refreshed by the computer's ROM
C. Spend time in the off state

Answers

Answer:

Dissipate heat

Explanation:

As CPU works efficiently while there is cool

8.1.9: Cookout Orders
I don’t know what I’m doing wrong

Ps. Also if you could help me with 8.1.8 Citation, Thank you

Answers

Answer:

The correction to the code is as follows:

order_1 = ("Lee",0,2)

order_2 = ("Tamia",1,0)

order_3 = ("Edward",1,1)

print("You need to buy",order_1[-1],"hotdogs")

print("You need to buy",order_2[1],"burgers")

print("You need to buy",order_3[1],"burgers and",order_3[2],"hotdogs")

Explanation:

The first three lines of the program is bug free.

However, the last 3 print statements are not.

(1) The statement to be printed must be in open and close parenthesis

(2) Change the + to comma (,) because the print statement includes integer and string values

(3) Lastly, the tuple items in the last statement must be printed separately

Regarding the citation, could you please clarify what you need help with specifically. Are you referring to citing a source in a particular citation style, such as APA or MLA. Providing more information will allow me to assist you better.

Recitation refers to the act of reading or repeating something aloud, often from memory or a prepared text. It is commonly associated with the process of learning and reviewing information, particularly in educational settings. Recitation can take various forms depending on the context.

In an academic or educational context, recitation often refers to a supplemental session where a teaching assistant or instructor leads a small group of students in reviewing and discussing material covered in a lecture. During a recitation, students may be asked to answer questions, solve problems, or participate in discussions related to the subject matter.

Learn more about educational context on:

https://brainly.com/question/31199020

#SPJ6

John is directing a television series. He has to shoot a scene that presents the lead character in a dominating and commanding position.

What
shooting technique should he use?

(NO LINKS!!!!)

A low angle
B. high angle
C. Dutch tilt
D. front angle

Answers

The answer is D hope this helped.

Answer:

it is A or B

Explanation:

I know it is either A or B because I took the test and tried Dutch tilt n front angle, got them both wrong on my 1st and second try.

Name:
Computer Science
Modified
Python Coding Section C
Directions: Circle the best answer.
1. If the code below, what is the maximum amount of gold that can be in a treasure chest?
def treasure_chest():
gold = random.randint (1, 10)
print ("the treasure chest contains", gold, "pieces of gold.")
#Main program begins here
import random
player_gold = 5
print("There is a treasure chest here.")
treasure_chest()
+ None
C. Five
b. One
d. Ten
2. What is the output of this program?
def say_hello() :
print("Hello World)
say_hello)
say_hello
a. Hello world! Hello world!
b. "Hello World" "Hello World!"
C. Hello Hello
# None of the above

Answers

Answer:

The max Number would be D. TEN

Explanation:

Where it say the main program begins is where the use of import random is be using under the treasure chest function basicly the random.randint choose and random number between 1 through to 10..

why do computer architects prefer memory dump to be in base 16​

Answers

Answer:

We use hexadecimal numbers primarily because they provide a more human-friendly representation and it is much easier to express binary number representations in hex than in any other base number system.

Explanation:

hello guess what u want brainlyst answer this question if u like gacha life

Answers

Answer:

yesssssssssssssssssssss I doo

Yes, no, I WAS obsessed when I was like, 10,11?

multimedia computer system required the following hardware component they are what​

Answers

To develop the system of multimedia we use the various hardware/softwarecomponents are:

The CPU: The CPU, which

is recommended for a multimedia computer should be Pentium IV or other advanced chips. The Monitor: The multimedia PC should be equipped with a monitorhaving Super

Video Graphics Arrays (SVGA) card.

Mark me as brainliest please

Which of the following statements most accurately describes the difference between aptitudes and skills?
O Aptitudes are ability, and skills are the potential.
O Aptitudes can be learned or trained, unlike skills.
O Aptitude is the level of skill that a person has gained.
O Aptitude is a person's potential to learn new skills.

Answers

Answer:

Aptitude is the level of skill that a person has gained.

Explanation:

Aptitude is the measurement of knowledge someone has in a specific area.  

Answer:

C Aptitude is the level of skill that a person has gained

Explanation:

Explain the principle of a Kimball as a data input device

Answers

Answer:

k

Explanation:

bc i need points

Answer:

p=35

Explanation:

hoped this helped

Need the answer rn!!!!

Answers

Answer:

what language is this? english or no

Explanation:

Where does Reiner take eren after they have a fight?

Answers

Answer:

So Reiner And Bertoldt wanted to take Eren and Ymir to Marley, a nation on the other side of the ocean so they can be devoured and there power can be given to a warrior canidate.

Answer:

what season tho?

Explanation:

Reiner took eren to the Forest

what are the basics to learn for ethical hacking?​

Answers

Answer:

1. Run on OS which is similar to UNIX, like Linux. UNIX as well as UNIX-like OS are the operating systems of the Internet. Though a person can learn ...

2. Learn HTML.

3. Gain the knowledge of Programming.

4. Be a Creative Thinker.

5. Make a habit of Solving Problems.

Explanation:

Tips: Be highly smart with it, code may mess you up at times, changing things you'd never touched!

PLEASE HELP!!!
I was trying to create a superhero class code, but i ran into this error

File "main.py", line 3
def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):
IndentationError: expected an indented block

Here is my actual code:
class superhero:

def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):

# Create a new Superhero with a name and other attributes

self.name = name

self.strengthPts = strengthPts
self.alterego = alterego
self.powers = powers
self.motto = motto
self.villain = villain

def addStrengthPts(self, points):

# Adds points to the superhero's strength.

self.strengthPts = self.strengthPts + points



def addname(self):

if(self.name == "Dr.Cyber"):
print("My hero's name is Dr.cyber!")
elif(self.name == "Mr.cyber"):
print("My hero's name is Mr.cyber!")
elif(self.name == "Cyber Guy"):
print("My hero's name is Cyber Guy!")
else:
print("My hero doesn't have a name")



def addalterego(self):

if(self.alterego == "John Evergreen"):
print("Dr.Cyber's alter ego is John Evergreen")
elif(self.alterego == "John Silversmith"):
print("Dr.Cyber's alter ego is John Silversmith.")
elif(self.alterego == "Johnathen Grey"):
print("Dr.Cyber's alter ego is Johnathen Grey.")
else:
print("Dr.Cyber Does not have an alter ego")



def addpowers(self):

if(self.powers == "flight, super strength, code rewrighting, electronics control, psychic powers"):
print(fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants.He can control surrounding electronics to do what he wants. He can move objects with his mind.")
else:
print(Fly. He can rewrite the genetic code of any object around him. he can move objects with his mind.")



def addmotto(self):

if(self.motto == "error terminated!"):
print("rewritting the code!")
else:
print("error eliminated!")



def addvillain(self):

if(self.villain == "The Glitch"):
print("Dr.Cyber's Arch nemisis is The Glitch.")
elif(self.villain == "The Bug"):
print("Dr.Cyber's Arch nemisis is The Bug.")
else:
print("Dr.Cyber has no enemies!")

def main():

newhero = superhero("Dr.Cyber", "John Evergreen", "fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants.He can control surrounding electronics to do what he wants. He can move objects with his mind.", "The Glitch", "error terminated!", "0")

print("My Superhero's name is " + newhero.name + ".")

print(newhero.name + "'s alter ego is " + newhero.alterego + ".")

print(newhero.name + " can " + newhero.powers + ".")

print(newhero.name + "'s arch nemisis is " + newhero.villain + ".")

print("when " + newhero.name + " fights " + newhero.villain + ", he lets out his famous motto " + newhero.motto + ".")

print(newhero.name + " defeated " + newhero.villain + ". Hooray!!!")

print(newhero.name + " gains 100 strengthpts.")

main()

PLEASE ONLY SUBMIT THE CORRECT VERSION OF THIS CODE!!! NOTHING ELSE!!!

Answers

Answer:

you need to properly indent it

Explanation:

align your codes

Mark the other guy as brainliest, I'm just showing you what he meant.

I'm not sure if that's all that's wrong with your code, I'm just explaining what he meant.

Answer:

def_init(self, name = "", strengthpts = 0, alterego = "", villain "", powers = "", motto = ""):

# Create a new Superhero with a name and other attributes

self.name = name

self.strengthPts = strengthPts

self.alterego = alterego

self.powers = powers

self.motto = motto

self.villain = villain

def addStrengthPts(self, points):

 

   # Adds points to the superhero's strength.

   self.strengthPts = self.strengthPts + points

def addname(self):

   if(self.name == "Dr.Cyber"):

       print("My hero's name is Dr.cyber!")

   elif(self.name == "Mr.cyber"):

       print("My hero's name is Mr.cyber!")

   elif(self.name == "Cyber Guy"):

       print("My hero's name is Cyber Guy!")

   else:

       print("My hero doesn't have a name")

def addalterego(self):

   if(self.alterego == "John Evergreen"):

       print("Dr.Cyber's alter ego is John Evergreen")

   elif(self.alterego == "John Silversmith"):

       print("Dr.Cyber's alter ego is John Silversmith.")

   elif(self.alterego == "Johnathen Grey"):

       print("Dr.Cyber's alter ego is Johnathen Grey.")

   else:

       print("Dr.Cyber Does not have an alter ego")

def addpowers(self):

   if(self.powers == "flight, super strength, code rewrighting, electronics control, psychic powers"):

       print(fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants.He can control surrounding electronics to do what he wants. He can move objects with his mind.")

   else:

       print(Fly. He can rewrite the genetic code of any object around him. he can move objects with his mind.")

def addmotto(self):

   if(self.motto == "error terminated!"):

       print("rewritting the code!")

   else:

       print("error eliminated!")

def addvillain(self):

   if(self.villain == "The Glitch"):

       print("Dr.Cyber's Arch nemisis is The Glitch.")

   elif(self.villain == "The Bug"):

       print("Dr.Cyber's Arch nemisis is The Bug.")

   else:

       print("Dr.Cyber has no enemies!")

def main():

   newhero = superhero("Dr.Cyber", "John Evergreen", "fly. He is super strong. He can rewrite the genetic code of any object around him to whatever he wants. He can control surrounding electronics to do what he wants. He can move objects with his mind.", "The Glitch", "error terminated!", "0")

   

   print("My Superhero's name is " + newhero.name + ".")

   print(newhero.name + "'s alter ego is " + newhero.alterego + ".")

   print(newhero.name + " can " + newhero.powers + ".")

   print(newhero.name + "'s arch nemisis is " + newhero.villain + ".")

   print("when " + newhero.name + " fights " + newhero.villain + ", he lets out his famous motto " + newhero.motto + ".")

   print(newhero.name + " defeated " + newhero.villain + ". Hooray!!!")

   print(newhero.name + " gains 100 strengthpts.")

main()

Why do we need to get the minimum and maximum resistance value of resistors?

Answers

To determine if the circuit using them will function probably when the resistor has the related tolerance.

PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!
Yolanda has created a spreadsheet containing student information about her homeroom class. She wants to color-code various parts of the spreadsheet so that the title in Row 1 appears on a blue background, the column headers in Row 2 appear on a pale green background, and the student data appears on a pale yellow background. How can she accomplish this task? This task contains the radio buttons and checkboxes for options. The shortcut keys to perform this task are A to H and alt+1 to alt+9.
A

Merge the cells that make up each section of the spreadsheet that she wants to shade.
B

Add thick box borders around each section of the spreadsheet that she wants to shade.
C

Add the appropriate fill color to each section of the spreadsheet that she wants to shade.
D

Add the appropriate font color to each section of the spreadsheet that she wants to shade.

Answers

Answer:

c

Explanation:

convert this hexadecimal number to binary :. A07F​

Answers

Answer:

101000000111

Explanation:

What parts of a photograph determine whether a person looks quickly at a photo or studies it for a long period of time?( Minimum is a paragraph)

Answers

I’ll answer this but if anyone else can answer it first I’d rather do that
Other Questions
Which of the following countries were part of French Indochina? Check all that apply.PhilippinesBurmaCambodiaMalaysiaLaosVietnam plz help 20 points In comparing "Minerva and Arachne" and "Niobe," can you establish a common theme running throughout both texts? How do you think this theme might change if the stories were written in first-person point of view?Write a journal entry explaining the theme of both "Minerva and Arachne" and "Nirobe." Then, consider how the theme might change if the tales were written using a first-person point of view. Use examples and evidence from both texts to support your analysis. ps i will get your answer deleted if u act idiotic and don't answer the questionthx If you need a transition that shows cause and effect, which of these transitions would you choose?A. ThereforeB. insteadC. above allD.Also How is the cytoplasm divided between the two cells that result from mitosis in plant cells? In animal cells? Of the last 20 contestants on a game show, 8 won a prize what is the experimental probability that the next contestant will win a prize? Why is it important for an adolescence to know how pregnancy occurs in the female body? Discuss the political, economic and social organisation of buganda kingdom during the pre colonial period What is the solution to the equation 6x+2 - 9x-1? O X=-3 SUCHE O X=-1 O X=1 O X=3 T!!! Toler HER HD Se Which statement best describes Helen Frankenthaler's painting techniques? She painted as she walked around a canvas placed flat on the floor. She painted carefully using a variety of paintbrushes. She spread paint on a canvas using potato wedges. What is the volume of a ball if the radius of the ball is 15 inches? Leave your answer in terms of Pi. 13,500pi in3 20pi in3 3375pi in3 4500pi in3 Pre-laboratory Assignment: Experiment 20 Reflection and Refraction of Light 1. When light is incident on a reflective surface, what can be said about the angle and speed at which the light is reflected? (Information is in your General Physics Laboratory Manual Chapt. 20) 2. At what angle is the normal drawn to the reflective surface or air-medium interface? 3. How are angles of incidence, angles of reflection and of refraction measured? 4. Describe what happens to a light ray as it enters from a medium of greater refractive index to a medium of lesser refractive index PLEASE PLEASE PLEASE HELP I WILL GIVE U 25 POINTS!!!! AND MARK BRAINLIEST OR WHATEVER ITS CALLED For the following question, match the labeled component of the cellmembrane in the figure with its description. Which part of the cellmembrane diagram below is the lipid bilayer? * Which statement describes the piecewise function when x = -6?-2,15-6160=425-18, 17-0O Since lim (a) = 36 and f(x) = 36, the function is continuous when x=-6.O Since lim f(x) = -36 and f(x) = -36, the function is continuous when x = -6.O Since lim f(x) = -36 and f(x) = 36, the function is not continuous whenx=-6.--O Since lim f(x) = 36 and f(x) = -36, the function is not continuous when x = -6.-6 x+3y=6 x=6-3y it has to be solved by substitution Guests at a campground can stay in a teepeeshaped like the rectangular pyramid shown. Ifthe height of the teepee is 18 feet, find the totalvolume of the teepee.10 feet15 feet what 2 factors can be multiplied to give 120 and added or subtracted to give 7 How do we decide if a situation requires us to measure in square units or cubic units? What is the area of the trapezoid? If the hairdryer was put on full power, what would happen? Why?