What is the Big-Oh of the following computation? int sum = 0; for (int counter = 1; counter < n; counter++) sum = sum + counter;

Answers

Answer 1

Answer:

The Big-O notation of the algorithm is O(n)

Explanation:

The declaration and update of the integer variable sum is a constant of O(1). The for loop statement, however, would repeat relative to the size of "n", increasing the counter variable and updating the sum total by the counter.


Related Questions

HTML question please help

Answers

Answer:

background-color: (Color)

Explanation:

This is actually CSS coding, as you would code it like:

Body {

background-color: (Color)

}

what are the elements in a publication called​

Answers

Answer:

There are several important elements in a magazine layout, such as headline, image, image caption, running head, byline, subhead, body copy, etc. Here, we look into the ten most crucial elements of a magazine layout.

Answer:

MARK AS BRAINLIEST ANSWERS

PLZ FOLLOW ME

Explanation:

There are several important elements in a magazine layout, such as headline, image, image caption, running head, byline, subhead, body copy, etc.

HOPE IT HELPS YOU

Is the willingness to put a customer’s needs above ones own needs and to go beyond a job description to achieve customer satisfaction

Answers

Answer:

customer-serious orientation

Explanation:

Customer-serious orientation can be defined as the willingness to put a customer’s needs above ones own needs and to go beyond a job description to achieve customer satisfaction.

This ultimately implies that, a customer-serious oriented business firm or company puts the needs, wants and requirements of its customers first without considering their own needs in a bid to satisfy and retain them.

Hence, customer-serious orientation requires the employees working in an organization to show and demonstrate positive attitudes and behaviors at all times.

Google Slides is most similar to which of the following programs?
a
Adobe Photoshop
b
Microsoft Word
с
Microsoft PowerPoint
d
Microsoft Project

Answers

Answer:

Option C: Microsoft PowerPoint is the correct answer

Explanation:

Google slides is a tool to make presentations using different options like adding pictures, animations and videos. Microsoft office suite also provide a software for this purpose which is Microsoft power point.

Hence,

Option C: Microsoft PowerPoint is the correct answer

Answer:

the answer is c microsoft powerepoint

Explanation:

it just is

Determines the steps in the process, the material, and the tools to make

high quality products.

Answers

Explanation:

In order to make high quality products and tools:

1. We should select the proper raw material that we want to make product with.

2. Every metal or every material have certain properties or characteristics. So choose the material properly for the product so that the right amount of hardness or stiffness or any other characteristics necessary for the product is maintained.

3. The process selection should also be carefully chosen.

4. The product should be such that it is made out of limited resources but can give maximum output.

5. Post production process should be done properly such as annealing,  tempering, etc to maintain its properties.

Which is the OS that can be obtained for free or at a much lower price than other major operating systems?

a. Apple's OS X
b. Microsoft's Windows 8
c. Linux

Answers

Linux C
Reason: Linux is a free, open source operating system, released under the GNU General Public License (GPL). Anyone can run, study, modify, and redistribute the source code, or even sell copies of their modified code, as long as they do so under the same license.
Pretty sure it’s B hope dis helps

Please help! I need to submit this quick!

Answers

Answer:

B, C, A

Explanation:

i think those are right

Create a formula for sheet Inventory that highlights any rows where the Reorder level is below the On Hand level in yellow on excel 2016. Will mark brainliest if you can tell me how.

Answers

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

Assuming the reorder level (column C4 and the on-hand level or actual inventory (column B starting at row 4) are columns in the Excel worksheet. The reorder level is the minimum level of inventory before inventory is populated. So the formula compares the value of the actual level with the reorder level, if any row is less than or equal to the reorder level, the row is formatted with the selected color.

Answer:

Highlight the actual inventory level column and click on condition formatting, click on the drop-down button and select "Formula is" to input the formula "=B4 <= C4", select the color pattern to format the row if the condition is met and click ok.

Explanation:

How do people make video games

Answers

Answer:

requieres a lot of hardcore coding

Explanation:

How does SQL allow implementation of the entity integrity and referential integrity constraints?

Answers

Explanation:

Entity Integrity

The Entity Integrity helps to ensure each row in a table to be a uniquely identifiable entity. For example, product ID column  of products table is a primary key for the table.

Entity integrity ensures any two properties for the primary keys. The primary key for a row is unique. The primary key is not null, no component of the primary key my be set tonal. This property is unique and the second property ensures that primary key has a meaning has a value.

Referential integrity

The Referential integrity make sure that the relationship between tables remains or data is inserted, deleted or even modified. It specifies that the value that appears in a certain relation for a given set of some attributes, it also appears for the certain set of attributes in some other relation.

Referential triggered actions:

The Referential integrity actions are mostly triggered by physical and not by logical, or updates to unique value.

System trigger implement referential integrity actions.

What is the output of the following code
X = 06
y = 0
print (x ** y)

Answers

Answer:

x=6 and y=0

Explanation

Salvado has a flash dish of is GB
and wants to store of music files
950 kbs each. How many files
will he be able to share on his
flash disk
of​

Answers

Answer:

About 1,655 files or exactly 1655.646315789473684210526315785

1578

Source(s):

1.5 gb = 1,500 mb<---wrong right --->1536

Explanation:

(Python)Write an expression using Boolean operators that prints "Eligible" if user_age is greater than 17 and not equal to 25.


Sample output with input: 17

Ineligible

Answers

user_age = input("Input Age: ")

if int(user_age) <= 17:

   print("Ineligible")

elif int(user_age) == 25:

   print("Ineligible")

else:

   print("Eligible")

:Here is some basic code.  It takes an input, turns it into an int type value, and checks the parameters that you gave me.  It errors out when you put in anything but a number.

Answer:

user_age = int(input())

if (user_age > 17) and (user_age != 25):

   print('Eligible')

else:

   print('Ineligible')

Explanation:

the code is very easy to do because it asks for it in Boolean operators.  So user_age = int(input()) ## asks for user input

then it checks the status by seeing if the number is greater than 17 and not equal to 25.  we know that > is greater and we know that != means not equal.  Therefore, this will rule out both and then give the eligible or ineligible statement.

can a 3048 hp motherboard support a i7 10700k cpu?

Answers

Answer:

Yes

Explanation:

Answer:

yes it can

Explanation:

no need to explain

Describe the main roles of the communication layer, the network-wide state-management layer, and the network-control application layer in an SDN controller.

Answers

Answer:

1.

Role of communication layer:

-it has the responsibility of transferring information among network controlled devices.

-it provides up to date view of the state of the network to SDN controller which shows that a new device has being added to the network as well as the link that was attached being non-existent.

2.

Role of network wide state management layer:

-it is responsible for the controller having the network's state information

-it also helps in the making of ultimate control decisions.

c

role of network control application layer:

- It is responsible for the reading and also the writing of the state of the network as well as flow tables which are in the layer of state management.

- It also notifies of changes such as state-event change. this helps to take actions with regards to the event notification.

Instructions

Drag and drop to arrange the port types in

order of their speed capability from lowest

to highest

[See keyboard instructions here.

Answers

Answer:

The answer is below

Explanation:

Given that there are no specific options here. Here are some of the most common port types in order of their speed capability from lowest to highest.

In Bytes and Bits per second, that is:

1. USB 1.1 = 1.5 MB/s - 12Mbit/s

2. Firefire 400 = 50 MB/s - 400Mbit/s

3. USB 2.0 = 60 MB/s - 480Mbit/s

4. FireWire 800 = 100 MB/s - 800Mbit/s

5. USB 3.0 = 625 MB/s - 5Gbit/s

6. eSATA = 750 MB/s - 6Gbit/s

7. USB 3.1 = 1.21 GB/s. - 10Gbit/s

8. Thunderbolt = 1.25 GB/s * 2 (2 channels) - 10Gbit/s * 2 (2 channels)

9. Thunderbolt 2 = 2.5 GB/s - 20Gbit/s

10. Thunderbolt 3 = 5 GB/s - 40Gbit/s

Cloud vendors that are hosting hardware, operating system, database, and other software, which clients can then use to build their own applications, are said to be providing: _______

a. Software as a Service.
b. Hardware as a Service.
c. Platform as a Service.
d. Service Oriented Architecture.
e. Service Level Agreement.

Answers

Answer:

a. Software as a Service.

Explanation:

These Cloud vendors are said to be providing Software as a Service. This is because regardless of that the underlying specs are in regards to hardware, operating systems, database, etc. The vendor is selling a subscription to their cloud software which bundles all of these services together. Therefore, what they are ultimately providing is a Software that the individual can use as a service, and enjoy all of the included benefits/capabilities.

Best practices for designing an interface include being purposeful in page layout, think about defaults and making the interface complex.

Question 5 options:
True
False

Answers

True because they don’t have to like a lot more than you think you have to like that lol

Which 4 methods allow clients to process digital payments from customers using QuickBooks Online Payments

Answers

Answer:

Debit and credit cards

eChecks using ACH Processing

Mobile apps and digital wallets

Pay-enabled invoices

Explanation:

Answer:running card through card reader, entering payment manually as a sales receipt, sending sales receipt to a customer via email, taking client payment via the Pay Now button in an email.

Explanation:

10. In cell R8, enter a formula using the AVERAGEIF function to determine the average number of post-secondary years for students who have been elected.

Answers

Answer:

On cell R8, type in the formula  "=AVERAGEIF(M2:M31,"Elected",D2:D31)".

Explanation:

Microsoft Excel is a spreadsheet application developed by Microsoft as a part of the office package, used for statistical analysis of data. It has several tools used for this purpose.

The AVERAGEIF function is used to give the average of numeric column based on a condition. The formula above uses the word 'Elected' in the M column to calculate the average of numbers in the D column.

The formula to enter in cell R8 is =AVERAGEIF(M2:M31,"Elected",D2:D31)

The AVERAGEIF function is used to calculate the average of a range of numbers if a certain condition is true.

From the complete question,

The range is M2 to M31

The condition is to check is the students in range D2 to D31 have been elected

The syntax of the AVERAGEIF function

=AVERAGEIF(range,criteria,average_range)

So, the formula to enter in cell R8 is =AVERAGEIF(M2:M31,"Elected",D2:D31)

Read about Excel formulas at:

https://brainly.com/question/14299634

Please Helpppp Me User Interface Design ensures that the interface has elements that are easy to ________________. (Choose all that apply)


Question 1 options:


a) access



b) understand



c) change location



d) remove



e) use to facilitate actions

Answers

Answer:

understand is the answer

how do i change my desktop theme on my chromebook?

Answers

Answer:

open Chrome.

At the top right, click More. Settings.

Under "Appearance," click Themes. You can also go to the gallery by visiting Chrome Web Store Themes.

Click the thumbnails to preview different themes.

When you find a theme you'd like to use, click Add to Chrome.

Explanation:

What is the purpose of an End User License Agreement?
to ensure that software users understand their rights and responsibilities
to ensure that software users understand how to use and install the program
to require users to erase installer files after a software migration project
to license users to make multiple changes to proprietary software

Answers

Answer: A. To ensure that software users understand their right and responsibilities

Explanation:

End-User License Agreements are vital for preserving the rights of the company owner/licensor. The correct option is A.

What is an End-User License Agreement?

End-User License Agreements are vital for preserving the rights of the company owner/licensor as well as outlining the terms of usage and controlling the end expectations of the user.

The purpose of the end-user license agreement is to ensure that software users understand their rights and responsibilities.

Hence, the correct option is A.

Learn more about the End-User License Agreement:

https://brainly.com/question/14681311

#SPJ2

g P4. (5pts) IPv4 tunneling was introduced to solve this issue of forwarding IPv6 packets via IPv4 routers. Please explain how this mechanism works.

Answers

Answer:

In IPv4 tunneling, IPv6 packets are encapsulated in the IPv4 packets, adding a header comparing the source IP, the packet entry point to the tunnel and the destination point, as well as the exit point of the tunnel.

Explanation:

IPv6 is the latest version of the network address. They eliminate the exhaustion of addresses experienced in IPv4, but is it not used in all networks which makes it hard to communicate with other networks with IPv4 and with IPv6 addresses through IPv4 medium.

To avoid the needed to reconfigure other IPv4 networks to IPv6 and establish communication between the networks, IPv4 tunneling is used to transmit IPv6 packets from one IPv6 network to other IPv6 networks through the IPv4 transmission cables or mediums.

Network Access Protection (NAP) analyses the ________ of a computer.

Answers

Answer:

virus in a virus

Explanation:

During which part of the international

Answers

????

can you elaborate? I want to help you

Write the function powersOf3ToN(n) that takes a possibly-negative float or int n, and returns a list of the positive powers of 3 up to and including n. As an example, powersOf3ToN(10.5) returns [1, 3, 9]. If no such powers of 3 exist, you should return the empty list. You may not use loops/iteration in this problem.

Answers

Answer:

def powersOf3ToN(n):

   try:

       num = int(round(n))

   except (ValueError, NameError, TypeError):

       print("Parameter of the function must be integer or float")

       quit()

   num_list = range(num)

   val_list = [pow(3,x) for x in num_list if pow(3,x) in num_list]

   print(val_list)

powersOf3ToN(30)

Explanation:

The python code prints out a list of integer numbers that are equivalent to the power of three. The function accepts integer and floating numbers but not strings or it prints an error message and quits the program.

A programmer must add 1 to the value stored in the int variable sum. One way is given to get you started. Write two more distinct ways to add 1 to the value stored in sum.

Answers

Answer:

option 1: sum++

option 2: ++sum

Explanation:

In programming, a variable a container or memory location assigned to a value. The C++ syntax specifies the memory location type of value on the declaration. The major types of variables in C++ are; integer, float, double, char, string, and boolean.

To add 1 to an integer variable, the variable value could be summed with one and assigned to that same variable or '++before' and 'after++' with adds one to the variable before and after the execution of a statement.

Could you please check my answers to this layout user defined data types

Answers

movieStars = ['Carrie Fisher', 'Harrison Ford'] is a list. Dictionaries have curly braces not brackets.

movieCost = 4.95 is a float

movieRatings = {5:'language', 3:'violence'} as I stated previously, dictionaries have curly braces and lists have brackets.

movieAwards = ('Oscar', 'Golden Globe', 'Director's Guild') is a tuple

movieID = 132 is an int. Integers are whole numbers with no quotation marks.

movie = 'Star Wars' is a string. Strings have quotes around them.

5.19 LAB: Exact change - functions
Write a program with total change amount as an integer input that outputs the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and pennies. Use singular and plural coin names as appropriate, like 1 penny vs. 2 pennies.

Ex: If the input is:

0
or less, the output is:

no change
Ex: If the input is:

45
the output is:

1 quarter
2 dimes
Your program must define and call the following function. The function exact_change() should return num_dollars, num_quarters, num_dimes, num_nickels, and num_pennies.
def exact_change(user_total)

Answers

Answer:

def exact_change(user_total):

    if user_total <=0:

         print("No change")

    else:

         num_dollars = int(user_total/100)

         user_total = user_total % 100

         num_quarters= int(user_total/25)

         user_total = user_total % 25

         num_dimes= int(user_total/10)

         user_total = user_total % 10

         num_nickels= int(user_total/5)

         num_pennies= user_total % 5

         if num_dollars >= 1:

              if num_dollars == 1:

                   print(str(num_dollars)+" num_dollars")

              else:

                   print(str(num_dollars)+" amountdollars")

         if num_quarters>= 1:

              if num_quarters== 1:

                   print(str(num_quarters)+" quarter")

              else:

                   print(str(num_quarters)+" quarters")

         if num_dimes>= 1:

              if num_dimes== 1:

                   print(str(num_dimes)+" dime")

              else:

                   print(str(num_dimes)+" dimes")

         if num_nickels>= 1:

              if num_nickels== 1:

                   print(str(num_nickels)+" nickel")

              else:

                   print(str(num_nickels)+" nickels")

         if num_pennies>= 1:

              if num_pennies== 1:

                   print(str(num_pennies)+" penny")

              else:

                   print(str(num_pennies)+" pennies")

           

user_total = int(input("Enter user_total Here:  "))

exact_change(user_total)

Explanation:

The explanation is long. So, I added it as an attachment.

Answer:

Written in Python:

def exact_change(user_total):

   num_dollars = user_total // 100 #convert to dollars

   user_total %= 100 #get remainder after conversion

   num_quarters = user_total // 25 #convert to quarters

   user_total %= 25 #get remainder after conversion

   num_dimes = user_total // 10 #convert to dimes

   user_total %= 10 #get remainder after conversion

   num_nickels = user_total // 5 #convert to nickels

   user_total %= 5 #get remainder after conversion

   num_pennies = user_total

   return(num_dollars, num_quarters, num_dimes, num_nickels, num_pennies)

if __name__ == '__main__':

   input_val = int(input()) #prompt user to input an integer

   num_dollars, num_quarters, num_dimes, num_nickels, num_pennies = exact_change(input_val) #recall exact_change function

   

   #define output statements to output number of exact_change variables:  

   #num_dollars, num_quarters, num_dimes, num_nickels, num_pennies  

   if input_val <=0: #if amount is zero

       print('no change') #print output

       

   else:

       if num_dollars > 1: #if number of dollars is greater than one

           print('%d dollars' % num_dollars) #print number of dollars

       elif num_dollars == 1: # if number of dollars equal 1

           print('%d dollar' % num_dollars) #print dollar in singular

       

       if num_quarters > 1: #if number of quarters is greater than one

           print('%d quarters' % num_quarters) #print number of quarters

       elif num_quarters ==1: # if number of quarters equal 1

           print('%d quarter' % num_quarters) #print quarter in singular

       

       if num_dimes > 1: #if number of dimes is greater than one

           print('%d dimes' % num_dimes) #print number of dimes

       elif num_dimes == 1: # if number of dimes equal 1

           print('%d dime' % num_dimes) #print dime in singular

           

       if num_nickels > 1: #if number of nickels is greater than one

           print('%d nickels' % num_nickels) #print number of nickels

       elif num_nickels == 1: # if number of nickels equal 1

           print('%d nickel' % num_nickels) #print nickel in singular

       

       if num_pennies >1: #if number pennies is greater than one

           print('%d pennies' % num_pennies) #print number of pennies

       elif num_pennies ==1: # if number of pennies equal 1

           print('%d penny' % num_pennies) #print penny in singular

Explanation:

It's really long, but it's necessary to get all the correct answers.

Other Questions
Which ritual was performed on McMurdo and why? What was the punishment for the breach of the code of secrecy and why do you think Harraway mentioned it to McMurdo?What does Harraway mean by the following utterance:Harraway: (Reproving) I move that Brother McMurdo should wait until it is the good pleasure of the Lodge to employ him. Explain in your own words. Act 1, Scene 12Explain the gist of the scene in your own words. What was the intent of Baldwin, Willaby brothers, Scanlan and McMurdo to go to Vermissa Herald?Act 1, Scene 13Why didnt Etties father like McMurdo?Morris: When you joined the freemans Society in Chicago, did it ever cross your mind it would lead to crime? McMurdo: If you call it crime. Explain the above dialogue between Morris and McMurdo with reference to the rest of the conversation that follows (pg. 59-60). How do they see things differently? Quote examples from the conversation to substantiate your response. Act 1, Scene 14What tells you about Mr. Allens hearing from what she said and did while talking to the detectives?Why was Barker offended when MacDonald mentioned Douglass wife? What did Barker tell him and Holmes about Douglass reaction towards his wife and Barker whenever they communicated?What did Mrs. Douglas reveal about her husbands life in America and Bodymaster McGinty? [The Native Americans] are so ingenuous and free with all they have, that no one would believe it who has not seen it; of anything they possess, if it be asked of them, they never say no; on the contrary, they invite you to share it and show as much love as if their hearts went with it, and they are content with whatever trifle be given them, whether it be a thing of value or of petty worth. I forbade that they be given things so worthless as bits of broken crockery and of green glass and lace-points, although when they could get them, they thought they had the best jewel in the world. Christopher Columbus, as quoted in The Discoverers The native people would give Columbuss crew a. broken crockery and glass only. c. the best jewels in the world. b. anything they possessed. d. things of petty worth F a seed is planted, it has a 75% chance of growing into a healthy plant. If 9 seeds are planted, what is the probability that exactly 2 don't grow? When asked about favorite Thanksgiving leftovers, 9% of the people said turkey and 7/100 said mashed potatoes. Which food is more popular? How do you know? What 2 things define the state of matter? Which of the following is the most efficient substance to complete cellular respiration?ona.sugarsb.fatsc.proteinsd.nucleic acids The equilibrium constant, Kc, for the followingreaction is 10.5 at 350 K.2CH2Cl2(g) double arrow CH4(g) + CCl4(g)If an equilibrium mixture of the three gases in a 12.7L container at 350 K contains 0.205 mol ofCH2Cl2(g) and 0.414 mol of CH4, the equilibriumconcentration of CCl4 is......mol. PLEASE HELP IM GONNA GET A Z IF I DONT TURN THIS IN How many sections does Article II have? evaluate the function f (x)=-2x+3 for x=-1 what is one central theme of Ernest shackleton south WHICH GRAPH SHOWS A FUNCTION AND ITS INVERSE.brainliest plz hurry timed test!! What major financial flop led to the end of the Sega Dreamcast and ultimately caused Sega to stop making game consoles altogether? 1: The founder and CEO of Sega was found to be secretly skimming money off of the top of profits, leading to widespread distrust by the public and a sharp decline in sales until they ultimately had to shut down due to making no profit. 2: A small group of employees found a way to drain all of the Sega Corporation funding accounts and flee the country with all of the money, never to be heard from again. 3: A game called Shenmue, that cost more than $70 million to make, meant that everyone who owned a Dreamcast needed to buy two copies of the game just for Sega to make back the money they had spent to develop it-which didn't happen. 4: A game called Katamari Damacy that carried a virus that would infect any console that it was played on forced Sega to spend millions of dollars in refunds and bankrupted the company. If (in one month) I make a total of 10 hours of calls at standard hours, how much more or less will I pay for a Basic contract than for Premium List the external and internal features that reveal information about a characters culture Describe the beginning of Constantine's rule. What number was added to 8 to get a sum of -4? PLEASE HELP MEEEEEEEEEE! NEED HELP FAST!! WILL GIVE BRAINLIEST!!! CORRECT ANSWERS ONLY PLEASEEEEEE!!!!!!If 2+sqrt3 is a polynomial root, name another root of the polynomial, and explain how you know it must also be a root. (-3 + 4 + 2 5)(- 2) Brad buys two packages of mushrooms. He paid $11.25 for 2/3 lb of Cremini mushrooms and $7.99 for 1/2 lb of Chanterelle mushrooms. Which mushroom cost less per pound?Cremini mushrooms cost less by $0.10Chanterelle mushrooms cost less by $0.10Chanterelle mushrooms cost less by $0.90Cremini mushrooms cost less by $0.90 Due to recent demand,Target is raising the price of a video game by 24%. If the game was previously sold for $25, what is the new price