write an algorithm to sumn of even numbers from 1 to 10​

Answers

Answer 1

Answer:

1. Start

2. Evensum = 0

3. For I = 1 to 10

3.1 If I % 2 == 0

3.1.1 Evensum = Evensum + I

4. Print Evensum

5. Stop

Explanation:

The line by line explanation is as follows:

[The algorithm starts here]

1. Start

[This initializes Evensum to 0]

2. Evensum = 0

[This iterates from 1 to 10, inclusive]

3. For I = 1 to 10

[This checks if current number is even number]

3.1 If I % 2 == 0

[If yes, this adds the even number]

3.1.1 Evensum = Evensum + I

[This prints the sum after the sum]

4. Print Evensum

[This ends the algorithm]

5. Stop


Related Questions

What is the output for the following line of code?
# print(3)
O3
O'3
O There is no output.
O An error statement is generated.

Answers

Answer:

The answer to this question is given below in the explanation section.

Explanation:

The correct option for this question is: There is no output.

Because this is a Python code. and it is a comment statement. The code line that begins with the # symbol considered a comment statement.  The comment statement code will not be executed when you run the program.

While the other options are not correct because:

The given line of code is considered as a comment statement. The comment statement will be executed on running the program. It is used for understanding the program that helps the program to read and understand the logic being written here. When you run the comment statement, it will not produce any output or error.

Answer: O There is no output.

Explanation:

The "#" is utilized as a comment statement in Python code. It is not meant to be put into effect when the program is ran.

(Confirmed on EDGE)

I hope this helped!

Good luck <3

Which form of data does the image represent? (10 points)

A. Analog data
B. Digital data

Answers

Where is the image?, I cant answer if there is no image
b
.......…..................

ark titanoboa taming

Answers

Huh???????................

it is a passive tame throw the an egg down and it will eat it if it attacks you or gets attacked it will reset the taming process

Explanation:

Mark is working on a feature film project. His job is to portray the economic status, occupation, and attitude of the characters visually. Which role is he playing?

Answers

Answer:

Videographer

Explanation:

Answer:

i think i would be costume designer

Explanation:

because if you spell videographer  it gives you the little red squiggly line

Typically you will not find biometric devices in _________ security buildings. Low High Minimal Medium

Answers

Answer:

Low

Explanation:

Biometrics security systems are hardware scanners that are useful for capturing the biometric of individuals as a means of verifying identity. These scans would be matched against the saved database and in turn access would be approved or denied to the system. In other words, biometric security gives the human body the “key” to unlock your access into buildings.

You will not find such devices in low security buildings.

list down four ways to start word 2010​

Answers

1Locate the Word icon on the Start button's All Programs menu. Don't click to start Word now!
2Right-click the Microsoft Word 2010 menu item. A pop-up menu appears.
3Choose Send To→Desktop (Create Shortcut).
4Press the Esc key to hide the Start button menu and view the desktop.

Which of these is an example of collective voice?
A. He hopes to make the world better for his children.
B. I have always dreamed of a kinder and better world.
C. We are here to make a better world for our children.
D. Your purpose is to make the world a better place.

Answers

Answer:

option C

hope it helps! please mark me brainliest..

Merry Christmas good day

Answer:

c

Explanation:

Design an algorithm that takes in a stream z1, . . . , zM of M integers in [n] and at any time t can output a uniformly random element in z1, . . . , zt . Your algorithm may use at most polynomial in log n and log M space. Prove the correctness and analyze the space complexity of your algorithm. Y

Answers

Answer:

import random

def rand_select(*args):

   selected = random.choice(args)

   print( selected)

rand_select(12,32,43,54,2,34,65,2,64,74,97)

The space complexity of this program is O(1)

Explanation:

The list of arguments to the function is assigned to the variable "args" and the random's choice method randomly picks an item and assigns it to the variable "selected", then the variable is printed out on the screen. The memory used is 1 + 1 = 2, which is a constant, therefore making the space complexity to be O(1).

Overflow and roundoff errors result from real-world limitations in representing . . . (10 points)
A. number systems
B. fractions
C. place values

Answers

Answer:

C. place values

Explanation:

Place value can be defined as the numerical value representing a digit owing to its position in a number. Some examples of the various place values used in representing each digit are tenths, hundredths, thousandths, unit, tens, hundreds, thousands etc.

For example, in the number 316.2;

The place value of 3 is hundreds. The place value of 1 is tens. The place value of 6 is units. The place value of 2 is tenths.

In the real-world, their instances where there are limitations in counting and representing real numbers that are infinite (too small or too large). In order to overcome these limitations or barriers, we use place values.

An overflow error arises when a real number cannot be represented because it is too large and exceeds the upper limits of a range chosen.

Also, a roundoff error can be defined as the difference between the output generated from an algorithm using an exact or actual numbers and the output generated using rounded or finite-precision numbers.

Hence, overflow and roundoff errors result from real-world limitations in representing place values.

FIRST TO ANSWER RIGHT GETS BRAINLIEST!!!!! Which of the following sets of data would be represented best in a histogram?

A. the number of toys sold in five price ranges

B. the average monthly sales for the Big Toy Company

C. the number of each type of candy sold last month

D. the temperature at which hard candy melts

Answers

Answer:

b

Explanation:

I think it would be B. The average monthly sales for the big toy company because its giving data over history

An attempt to generate a large number of session IDs and have a server process them as part of a session hijack attempt is known as what type of attack

Answers

Answer:

An attempt to generate a large number of session IDs and have a server process them as part of a session hijack attempt is known as

TCP Session Hijacking.

Explanation:

TCP Session Hijacking is a cyber-attack in which illegitimate access is acquired to a client's server in the network.  The attacker then hijacks the TCP/IP session by reading and modifying transmitted data packets and also sending requests to the addressee's server.  To achieve this attack effectively, the hacker generates a large number of session IDs, thereby confusing the client's server to process them as a part of the users' sessions. Sessions (a series of interactions between two communication end points) are used by applications to store user parameters and, they remain alive until the user logs off.

Your company just installed a new web server within your DMZ. You have been asked to open up the port for secure web browsing on the firewall. Which port should you set as open to allow users to access this new server?

Answers

Answer:

The port that should be set open to allow users to access this new server is:

TCP port.

Explanation:

Ports are openings or entrance doors through which data packages have access to a PC or server.  TCP and UDP are transport protocols with port numbers.  TCP means Transmission Control Protocol.  They are used to connect two devices over the internet and other networks.  UDP means User Datagram Protocol.  They are used to connect applications and to speed the transfer of data.  Comparatively, UDP is faster, simpler, and more efficient than TCP.  TCP enables retransmission of lost data packets, which UDP cannot do.

Which form of data does the image represent? (10 points)
A. Analog data
B. Digital data

Answers

The image in the photograph is representing A. Analog Data. Analog data is data that is represented in a physical way. Where digital data is a set of individual symbols, analog data is stored in physical media, whether that's the surface grooves on a vinyl record, the magnetic tape of a VCR cassette, or other non-digital media. Analog and digital signals are different types which are mainly used to carry the data from one apparatus to another. Analog signals are continuous wave signals that change with time period whereas digital is a discrete signal is a nature. Examples of analog technology: photocopiers. old land-line telephones. audio tapes. old televisions (intensity and color information per scan line). Analog and digital signals are the types of signals carrying information. The major difference between both signals is that the analog signals that have continuous electrical signals, while digital signals have non-continuous electrical signals.

What is the missing line of code?
class vehicle:
self.model = strModel
self.color = strColor
def
_str_(self):
return self.model +
+ self.color

Answers

Answer:

def__init__(self,strModel,strColor):

Zahid needs to ensure that the text flows around an image instead of the image being placed on a separate line as the text. Which tab on the Layout dialog box should Zahid use to perform this task? Position Text Wrapping Size He can’t do this on the Layout dialog box.

Answers

Answer:

I believe the answer is He can't do this on the layout dialog box

Explanation:

You use the format tab for text wrapping.

( Sorry if I'm wrong )

Answer:

B.) Text Wrapping

Explanation:

I think that's the right answer. It's how you can make the text flow around an image in doc so I assume it's right. I'm really sorry if it's wrong :(

Hoda wants to create a new presentation in PowerPoint with existing graphics and designs. What is the easiest and fastest way for her to do this? Use an existing template. Design a new theme for the presentation. Create a custom template for the presentation. Search for a design template online.

Answers

Answer:

The answer is A

Explanation:

Edge 2020

How would you maximize the use of a class?

Answers

Answer:

can't understand your qs.......

Database are pranized in
consist of a series of
which consist of a senes of​

Answers

Answer:

fields and records I guess is the answer

Difference between save,saveas and save all

Answers

Answer:

Save just saves to your computer to what ever is the default format for the program your using.  Save as saves something where you can choose the file name and format. Save all just save all the files you worked on.

Explanation:

Hope this helps :)

Lol I thought that they were all the same and had little differences in it

The term structure, as it relates to programming, refers to the decisions you make to design your program to best meet its objective. Coral provides features to create clean, efficient code. How can the basic if/elseif/else control statements help meet structural design objectives in your code?

Answers

Answer:

Explanation:

if/elseif/else control statements help accomplish efficient code since it provides a condition. The program analyzes the code and determines if certain criteria are met, if so then it continues down a certain pre-defined path   which would be the most efficient path towards the main program objective. If these criteria are not met then the code would follow the next most efficient path. This is all controlled through if/elseif/else statements. They ultimately provide various options for reaching the final objective in an order of most efficient to least efficient.

59. When analyzing the IDS logs, the system administrator noticed an alert was logged when the external router was accessed from the administrator's Computer to update the router configuration. What type of an alert is this

Answers

Answer:

False Positive

Explanation:

A false positive or false positive error may be defined as a result which indicated that the given conditions seems to exists when it actually does not. It is classified as a type I error. It tests a check for a single condition and then falsely provides a positive or affirmative decision.

In the context, a false positive type of error occurred when the external router of the system administrator was accessed from the computer of the administrator that was used to update the configuration of the router.

To solve the difficulty of scaling memory organization, memories are physically organized into a ____-dimensional organization.
A) one
B) two
C) three
D) multi

Answers

The answer is D) multi

Should the security researcher have published exploit code that affects every version of Windows and cannot be patched

Answers

Answer:

No.

Explanation:

This is because there is probably the risk of malicious attackers grabbing the published exploit code that affects every window and then utilizes it for dubious purposes. Such as stealing vital information after gaining access.

The most ideal way for the security researcher to go about the exploit code that affects every version of the window is to meet the windows manufacturers, discuss the negative issues of windows software with them and eventually assist them in the software update to troubleshoot the patch.

To specify your preferred colors, fonts, and effects for a document, which of the following should be done?

1.Create custom theme fonts
2.Create custom theme
3.Create a custom paragraph style
4.Create a custom character style

Answers

Answer:

2. Create custom theme.

Explanation:

The theme stays through the entire document. Custom paragraph style only changes the theme for that paragraph, and for the custom character style, it only changes the style of that character but throughout the entire document. i.e. I want the color of the character E to be green. the custom character style will cover that. Also, the custom theme fonts will only change the theme for that certain font...

To specify your preferred colors, fonts, as well as effects for documentation, will have to create a custom theme.

A customized theme seems to be the simplest method to give your existing applications a unique aesthetic appeal or appearance. Themes represent bundles of overall coding or website that have previously been written for customers.The templates subdirectory could hold many customization options or the themes, preferably with its respective or individual sub-folder.

Thus the response above i.e., option 2. is appropriate.

Learn more about Custom themes here:

https://brainly.com/question/20006021

_________ can be used to provide access control, confidentiality, data origin authentication, connectionless integrity, rejection of replayed packets, and limited traffic flow confidentiality.

Answers

Answer:

IPSec

Explanation:

IPSec is an acronym for Internet Protocol Security. It is a standardized protocol used in determining the cryptographic and authenticated packets across the Internet Protocol networks.

It can be utilized to establish access control, confidentiality, data origin authentication, connectionless integrity, rejection of replayed packets, and limited traffic flow confidentiality.

Whose guidelines should you follow for the destruction of storage media such as thumb drives, Zip drives, and computers?

Answers

Answer:

Depends how bad you want to hide something. If the drive has previously been encrypted and the password hashed (like AES-256 with SHA-512 hashing), then deleting the content is enough since it will be slightly overridden and thus unusable. If it is not encrypted already, delete it, and override all your disk space with something. If you want it to die as a secrete 100%, burn it and pulverize it. Otherwise, if you want a quick method, use some real delete software.

Which of these are illegal activities? Check all that apply.

running a pyramid scheme
offering free gifts
threatening to harm property
downloading a virus
hacking a computer

Answers

Answer:

Offering free gifts

Explanation:

Answer:

ace

Explanation:

In which program structure does the processor verify the mentioned condition only after executing the dependent statements once?

A. Switch Case Structure
B. Do While Structure
C. If Else Structure
D. For Structure
E. While Structure​

Answers

B. because you have to do it while in structure.
The answer is B , do while structure.

Question # 6
Dropdown
Choose the line of code that completes this program.

Output:

dog named Tiger

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

# main program
myPetA = pet('dog', 'Spot')


print(myPetA)

Answers

Answer:

myPetA.changeName('Tiger') should be it

Explanation:

Answer:

myPetA.changeName('Tiger')

Explanation:

Correct answer edge 2020

Hiya people. I am a game developer and I need an idea for a new game. If you have any ideas, pls feel free to tell me. Best idea gets brainliest.

Answers

Answer:

A better RPG game all the one that are existing are the same dull thing

Explanation:

Answer:

There are many ideas you can get for games but now-a-days action games are getting more fame than others such as fortnite, freefire, pubg etc. I prefer you to make a game that is relatated to action or adventure. You can make it related to zombie hunting, or online fighting games, or some adventurous games like tomb raider.

Other Questions
Doug spent $1.05 on 0.6 pounds of apples. a.) How much would 3 pounds of apples cost? Find the coordinates of the reflection: B (8,-1) is reflected over the y-axis Given that f(x) = x2 + 5x + 6 and g(x) = x + 2, find (fg)(x) andexpress the result in standard form.US In a really exciting part of the book, the student read 18 pages in one sitting. For how many minutes did she read? Natural selection is BEST described as When should you avoid looking directly at magnesium burning? Denver, Colorado often experiences snowstorms resulting in multiple inches of accumulatedsnow. During the last snow storm, the snow accumulated at (0.8) inch/hour. If the snow54continues at this rate for hours, how much snow will accumulate? Simplify The Equation9(8p + 12) 6p What leads Mrs. Hale to wish she had visited the house more often? A. She has always been close to the Wrights. B. She wants to keep Mrs. Peters from feeling lonely. C. She realizes that Mrs. Wright could have used her company. D. She recognizes that she could have saved Mr. Wright from death. 40) Jose and Eugene each improved their yards by planting rose bushes and geraniums. They bought their supplies from the same store. Jose spent $70 on 7 rose bushes and 4 geraniums. Eugene spent $50 on 6 rose bushes and 2 geraniums. Find the cost of one rose bush and the cost of one geranium A) rose bush: $7, geranium: $9 B) rose bush: $6, geranium: $7 C) rose bush: $7, geranium: $5 D) rose bush: $8, geranium: $11 (This is for photography segment exam btw)Who created the first known photograph?A. George EastmanB. Ansel AdamsC. Joseph NiepceD. Louis Daguerre 2y-10=6xplz help me Someone help please thx in advance mention any two points that should be remembered for regular check up What is the slope of the line represented by the equation Y equals 4/5X -3?-3-4/54/53 The scatterplot illustrates the relationship between two quantitative variables: the number of seeds planted per square foot and the yield of the crop (in pounds per square foot).A graph titled Number of Seeds and Crop Yield has seeds (per square foot) on the x-axis, and yard (pounds per square foot) on the y-axis. The points curve up to a point, and then curve back down.Which of the following is an accurate description of the scatterplot? Ruben bought 2 large popcorn buckets and 4 small drinks for $20. Lucia bought 2large popcorn buckets and 2 small drinks for $14. How much did the large popcorncost? The small drink?Write a system of equations to model this situation where x = the cost of a largepopcorn and y= the cost of a small drink.O x +y = 3420 = x + 2yOy= 2x + 20y = 2x + 142x + 4y = 202x+2y = 14O x + y = 204x + y = 14 What is 3 times 3 +77-23/4 Please help with math 4r+2+7r Solve the equation below:-12x + 8 + 5x =36