HELPPPPPPPPPPPPPPPPP ASAPPPPPPPPPPP

HELPPPPPPPPPPPPPPPPP ASAPPPPPPPPPPP

Answers

Answer 1

Answer:

D. data dictionary is the answer


Related Questions

Implement the function printTwoLargest that inputs an arbitrary number of positive numbers from the user. The input of numbers stops when the first negative or zero value is entered by the user. The function then prints the two largest values entered by the user. If fewer than two distinct positive numbers are entered a message to that effect is printed instead of printing any numbers. Hint: Duplicates will cause problems. Try to make sure that you find a way to ignore them.

Answers

Answer:

The function in Python is as follows:

def printTwoLargest():

   chk = 0

   list1 = []

   num = int(input("Enter: "))

   while num > 0:

       for i in list1:

           if i == num:

               chk+=1

               break;

       if chk == 0:

           list1.append(num)

       chk = 0

       num = int(input("Enter: "))

   list1.sort()

   if len(list1) >= 2:

       print("Largest:", list1[-1])

       print("Second:", list1[-2])

   else:

       print("Length of list must be at least 2")

Explanation:

This defines the function

def printTwoLargest():

This initializes a check variable to 0

   chk = 0

This initializes an empty list

   list1 = []

This prompts the user for input

   num = int(input("Enter: "))

The following loop is repeated until input is 0 or negative

   while num > 0:

The following for loop checks for duplicate

       for i in list1:

           if i == num: If duplicate is found

               chk+=1 The check variable is set to 1

               break; And the for loop is exited

The input is appended to the list if the check variable is 0 (i.e. no duplicate)

       if chk == 0:

           list1.append(num)

This sets the check variable back to 0, for another input

       chk = 0

This prompts the user for another input

       num = int(input("Enter: "))

This sorts the list

   list1.sort()

This prints the two largest if valid user input is 2 or more

   if len(list1) >= 2:

       print("Largest:", list1[-1])

       print("Second:", list1[-2])

if otherwise, this prints that the length must be at least 2

   else:

       print("Length of list must be at least 2")

Using the drop-down menus, correctly complete the sentences.
A(n)
vis a set of step-by-step instructions that tell a computer exactly what to do.
The first step in creating a computer program is defining a(n)
the next step is creating a(n)
v problem that can be solved by a computer program.
A person writing a computer program is called a(n)

Answers

Answer:

It is  computer program , Problem, Logic, Programmer

Explanation:

on edge

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();

HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP HELP

Answers

Answer:

I should be C! :D

Answer:

B

Explanation:

someone, please answer this.

This lesson showed you the general form of the syntax for a for loop in JavaScript:for

(initialize counter; condition; update counter) {code block;}

What does each part do, and why is it necessary?

Answers

Answer: A loop will continue running until the defined condition returns false . ... You can type js for , js while or js do while to get more info on any of these. ... initialization - Run before the first execution on the loop. ... But it can be used to decrement a counter too. statement - Code to be repeated in the loop.

Explanation:

Other Questions
What can parents do to help children develop language skills? WHO EVER AWNSRERS FIRST GET 100 POINTS AND BRAINLYISTWhat is the most likely purpose of the interview in "Talking to the Coach"?to learn how to become a baseball coachto learn why Coach Thompson enjoys coachingto learn more about the history of baseballto learn how to create a team that wins a lot of games Define and Describe the Final Solution. Please use your own words! Which phrase describes the point of view in "A Sweetheart of a Deal"? formal and conventional third-person limited first-person unlimited completely omniscient How long are the events of The Tempest?A. One weekB. One afternoonC. Six monthsD. Three days Drag each tile to the correct box. A data set that consists of many values can be summarized using the five-number summary. Arrange these five values in order from least to greatest. The primary purpose of the Marshall Plan was toA)aid the economic recovery of war-torn Europe.B)stop the spread of Communism in Southeast Asia.C)set up a military alliance of anti communist nations.D)end the rift between the United States and the Soviet Union. Can anyone give me some advices for my sis cause she is going to high school soon and I'm worried- even tho she is older then me, she is Autism and ofc I'm worried- SOMEONE HELP!!! K12 FINAL EXAM!!! I'LL OFFER BRAINLIEST!!What did the 1960s counterculture embrace?A.)educational freedom and choiceB.)greater economic stabilityC.)increased national securityD.)opposition to the establishment and traditional values ! + 3 5 = 0; by completing the square I need some help!! I will try to give brainliest!!! HELP WILL GIFT 30 EXTRA POINTS IF SOLVE ANSWER ALL QUESTIONS PLEASE!!! 1 1) Beth bought a book that normally cost $25.00. It was on sale for 35% off.How much did she pay for the book?I need help ASAP which of the following best defines unbalanced forces? A. Forces that act in opposite directions and cancel each other out B. Unequal forces that do not cancel out but cause a change in motion c. Foroes between two objects in physical contact D. The total force on an object after individual forces are added togethe Plz help me well mark brainliest if correct..???? Part AWhich claim does President Obama make in excerpt from "President Barack Obama's State of the Union Address"?Average wages have gone up in recent years and lessened inequality.The United States needs to better prepare for the twenty-first century.The country has the highest unemployment rate in five years.US citizens play a critical role in strengthening the state of the union.Question 2Part BWhich evidence is most relevant to supporting the answer to Part A?"The cold, hard fact is that even in the midst of recovery, too many Americans are working more than ever just to get bylet alone to get ahead. And too many still aren't working at all.""Today in America, a teacher spent extra time with a student who needed it and did her part to lift America's graduation rate to its highest levels in more than three decades.""And for the first time in over a decade, business leaders around the world have declared that China is no longer the world's number one place to invest; America is.""As president, I'm committed to making Washington work better, and rebuilding the trust of the people who sent us here. And I believe most of you are, too." we left the stadium and went home quite dejected. All of the fans were so sad about the home team'sloss that they barely said a word during the ride home.Fill in the blank with the correct phrase or clause,A)The game endedB)Because the game endedAfter the game endedDThe game was overWhich is the best version of this sentence? The man with all the bird(live/lives)on my street Which of the following voice-mail greetings would be best received by potential employers?A."Leave a message. I will think about calling you back."B."I am not available to take your call right now. Please leave your name, number, and a message and I will return your call."C."Hello. Hello. I can't hear you. Please speak up."D."This is Sam. I can't take your call right now. Leave your info and I will catch you later." Eating too many foods that contain high amounts of added sugar, sodium, orcalories can result in?