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
Anika [276]
3 years ago
12

Write a program that will generate 100 integers between 0 and 1000. Store the even numbers in a sorted linked list called evens.

Store the odd numbers in a different sorted linked list called odds. Print the content of the evens and odds linked lists to the screen. Use the Linked_List class we developed in class.
Computers and Technology
1 answer:
Tomtit [17]3 years ago
8 0

Answer:

see explaination

Explanation:

import random

def num_gen(s, e, n):

r = []

for j in range(n):

r.append(random.randint(s, e))

return r

n = 100

s = 0

e = 1000

l = num_gen(s, e, n)

even_list = []

odd_list = []

for i in l:

if i % 2 == 0:

even_list.append(i)

else:

odd_list.append(i)

print("Even List:", even_list)

print("Odd List:", odd_list)

You might be interested in
Each Google My Business location has a unique ID that applies changes to the right listing.
Soloha48 [4]

Answer:

The correct answer to the following question will be option c. Store Code.

Explanation:

A store code will be the unique ID which can uniquely identify any location of that store.

  • Any random number or name can be the store code.
  • A store code in each Google My Business (GMB) will only be viewable to the person who is managing that locations arround the store.
  • Any costumer doesn't have possibility to see it.

Hence, Option C is the right answer.

6 0
3 years ago
Briefly describe the role of creativity and innovation to entrepreneurship​
prisoha [69]

Answer:

isia

Explanation:

Apooopooopeeepepe

8 0
2 years ago
Punitive consequences for downloading software illegally is
Dimas [21]

Answer:

I think that the answer is A

3 0
2 years ago
Which type of communities handle recurring tasks in organization
12345 [234]
I think it's Standing committee
3 0
2 years ago
Which of the following that can be use read cookies in PHP?
iris [78.8K]

Answer:

a. $_COOKIE

Explanation:

$_COOKIE represents an associative array of Cookie name and value in PHP. For example in the code below we use the $_COOKIE construct to read the value of a cookie called 'testcookie' provided it has already been set.

<html>

<body>

<?php

if(!isset($_COOKIE["testcookie"])) {

   echo "Cookie 'testcookie' is not defined!";

} else {

   echo "Value of 'testcookie' is: " . $_COOKIE["testcookie"];

}

?>

</body>

</html>

8 0
3 years ago
Other questions:
  • Helen has no experience in security. She would like to earn a certification that demonstrates that she has the basic knowledge n
    15·1 answer
  • Bunch of points!!!!!!! help pls
    11·2 answers
  • Add is a function that accepts two int parameters and returns their sum.
    8·1 answer
  • Describe how you center text.
    7·2 answers
  • This common technique, employed at the edge of a network, eliminates the need for public IP addresses on a private network while
    8·1 answer
  • When should students practice netiquette in an online course?
    9·1 answer
  • What term is used to refer to the way companies collect and process data in order to create new information to make important bu
    13·1 answer
  • A jackhammer uses pressurized gas to transmit force to the hammer bit. What type of mechanical system is it?
    13·1 answer
  • First calculating device​
    12·2 answers
  • Heeeeeeeeeeeeeeeeeeeeeeeeelp pat.2
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!