1,518 Answered Questions for the topic computer science

Computer Science

03/13/23

1- Sort this list of numbers 8, 22, 7, 31 , 9 in ascending order using bubble sort- you need to show your work

 End of Pass 1:End of pass 2:

how to do this in python?

Import the CSV module this csv: name   common_color.  peal   typeapples     red          waxy   fruitoranges    orange       ... more
Computer Science

03/12/23

Computer Science

Draw a class hierarchy diagram for the following scenario. Indicate which class is the super class, and which classes are the extended child classes. Indicate in which classes you would locate each... more
Computer Science Computer Programming Python

03/09/23

I need help getting the correct output for my function. *Check comments for more info*

def run_sim(stops, boarding_rate, exiting_rate, passengers):  stop_count = 1  while stop_count <= stops:    if stop_count == stops:      boarding = 0      departing =... more
Computer Science Computer Programming Python

03/09/23

I need help getting rid of a line of code without messing up the code*Look at comments ran out of characters*

def run_sim(stops, boarding_rate, exiting_rate, passengers):  stop_count = 1  while stop_count <= stops:    if stop_count == stops:      boarding = 0      departing =... more
Computer Science Computer Programming Python

03/09/23

I need help getting rid of a line of code without messing up the code

def run_sim(stops, boarding_rate, exiting_rate, passengers):  stop_count = 1  while stop_count <= stops:    if stop_count == stops:      boarding = 0      departing =... more

Whats wrong with my code here? python

import csv import lasal_acreage # import statement to import csv module import csv def sum_acreage(file_name): sum = 0 with open(file_name, newline='') as csvfile: reader =... more
Computer Science

03/07/23

Problem C. Mirror

Problem C. MirrorNext, you will be implementing the mirror function. This overwrites the right half of the image with a mirror image of the left (so within each list of lists representing a row of... more

03/06/23

How do I join the desktop client to the Domain in windows 10?

Rename windows 10 to DESKTOP1-XX use your initials in place of xx Join a workstation to the domain a. Join DESKTOP1-XX to the u0123456.corp b. on DC1 move DESKTOP1-XX object in Active directory... more

Why do I get an error when i run this?

import practice as func import db_base as db import xml.etree.ElementTree as ET class tracks(db.DBbase): def __init__(self): super().__init__("tracksdb.sqlite") def... more
Computer Science

03/03/23

Write a function get_last(nested_list) that takes in a list of lists of integers

Write a function get_last(nested_list) that takes in a list of lists of integers, and returns a list containing the last integer in each inner list. If one of the inner lists is empty, then a 0... more
Computer Science

03/03/23

Design a circuit to add two 2-bit binary numbers and display the results of the addition as a 3- bit binary number.

Design a circuit to add two 2-bit binary numbers and display the results of the addition as a 3-bit binary number. To do this, you will use the four switches on your Breadboard Companion asyour two... more
Computer Science C Computer Programming

03/02/23

How do I translate an array in C to RISC-V

Example: Array [i] = c
Computer Science Computer Programming Python

03/02/23

Need help with my code

function 1def silly_strings(string):  words = [] word = "" for i in range(len(string)):  if i%2 == 0:   word += string[i].upper()  else:   word += string[i].lower()  if i%2 ==... more
Computer Science

02/28/23

Write a function nested_double(nested_list)

Exercise 7-2Write a function nested_double(nested_list) that takes in a list of lists of integers, and returns the list with every integer doubled. You can choose to either create a new list or... more
Computer Science

02/28/23

Exercise 6-5 Fill in the blanks in the functions below,

Using slicing. last_three is intended to get the last three elements of the list being passed in. odd_indexes is intended to get only the elements that are at odd indexes. def last_three(data): ... more
Computer Science

02/27/23

Write a function larger_decrement(numlist, n) that takes two parameters, a list of integers numlist, and an integer n.

Documentation: Use the following template for EVERY function that you write. The docstring below should be placed inside of the function, just after the function... more
Computer Science

02/27/23

Write a function list_difference(numlist1, numlist2) that takes in two lists as parameters

Documentation: Use the following template for EVERY function that you write. The docstring below should be placed inside of the function, just after the function... more
Computer Science

02/27/23

Write a function word_mix(wordlist1, wordlist2) that takes as parameters two lists that contain strings.

Use the following template for EVERY function that you write. The docstring below should be placed inside of the function, just after the function signature.'''Purpose:Parameter(s):Return... more

how to code in python?

Create a new class called Person. Add 3 attributes (or fields) called first_name, middle and last_name.Add a function called format_name() and return all 3 attributes.(Hint: Use the same function... more

how to code this in python?

 Create a class called Simplest() and use the pass statement.Answer the following questions:a. Using the code below, what type is this object?print(type(Simplest))b. Create an instance of Simplest... more

how to do this?

Create a new function in your functions.py script called getAnswer() that takes one numerical argument called answerNumber.use the following code inside the new getAnswer() function: if... more

how to code this?

1.Create 2 functions; one to convert a value from Fahrenheit to celsius and the second function to convert from celsius to Fahrenheit, remember to return the values in the function statement.Create... more

how to code this and import it?

Create 2 functions; one to convert a value from Fahrenheit to celsius and the second function to convert from celsius to Fahrenheit, remember to return the values in the function statement.Create... more
Computer Science

02/23/23

Fill in the blank in the program below with a positive integer that would cause x to be set to 2.5 at the end of the program.

val = ____st = str(10000) + str(10000)ls = [3, 4, 4000, 2, 5, 8000]x = len(st)/ls[val]

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.