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
Anybody wana play 2k21
Vaselesa [24]

Answer:

no

Explanation:

no

4 0
3 years ago
Read 2 more answers
Which objects appear on the slide after she clicks ok? Check all that apply.
svp [43]

Answer:

A table with sample values

A chart with sample values

Explanation:

4 0
3 years ago
Read 2 more answers
In this lab, you will implement a temperature converter in JavaScript. The user may type a temperature in either the Celsius or
jek_recluse [69]

Use the knowledge in computational language in JAVA to write a code that convert the temperature.

<h3>How do I convert Celsius to Fahrenheit in Java?</h3>

So in an easier way we have that the code is:

  • Fahrenheit to celsius:

<em>/* When the input field receives input, convert the value from fahrenheit to celsius */</em>

<em>function temperatureConverter(valNum) {</em>

<em>  valNum = parseFloat(valNum);</em>

<em>  document.getElementById("outputCelsius").innerHTML = (valNum-32) / 1.8;</em>

<em>}</em>

  • Celsius to Fahrenheit:

<em>function cToF(celsius) </em>

<em>{</em>

<em>  var cTemp = celsius;</em>

<em>  var cToFahr = cTemp * 9 / 5 + 32;</em>

<em>  var message = cTemp+'\xB0C is ' + cToFahr + ' \xB0F.';</em>

<em>    console.log(message);</em>

<em>}</em>

<em>function fToC(fahrenheit) </em>

<em>{</em>

<em>  var fTemp = fahrenheit;</em>

<em>  var fToCel = (fTemp - 32) * 5 / 9;</em>

<em>  var message = fTemp+'\xB0F is ' + fToCel + '\xB0C.';</em>

<em>    console.log(message);</em>

<em>} </em>

<em>cToF(60);</em>

<em>fToC(45);</em>

See more about JAVA at brainly.com/question/12975450

5 0
2 years ago
Select the four tactics that cyber criminals use for stealing information from the list below.
Snowcat [4.5K]
Baiting clickjacking pharming spamming
6 0
2 years ago
_____ uses computer-generated, three-dimensional images to create the illusion of interaction in a real-world environment.
mr_godi [17]

Answer:

"Virtual reality" is the appropriate answer.

Explanation:

The utilization of technological advances gives the impression of a 3D interactive environment wherein the things that have such a perception of space embodiment or involvement, are considered as Virtual reality.

Virtual reality implementations often include:

  • Entertainment,
  • Medical and
  • Educational activities.
3 0
3 years ago
Other questions:
  • Which of the following symbols is used to convert a number to text?
    11·1 answer
  • What is the only language a microprocessor can process directly but most programmers almost never write programs in this code? Q
    12·2 answers
  • Which is the best practice for placing graphics on a slide?
    6·2 answers
  • The hardware to keep the output data when finished is a
    9·1 answer
  • of the menu items listed at the top of the screen, which will be used to determine what the shortcut f6 means in primesuite?
    5·1 answer
  • What is technology??
    12·1 answer
  • Help teacher said with complete explanation ​
    5·1 answer
  • Need help:(!!!! I’ll mark brainliest if correct
    5·1 answer
  • Does angular need to be installed on server.
    5·1 answer
  • What is a reason for zipping a file?A. to encrypt themB. to return them to their original sizeC. so they display properly on a W
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!