1,518 Answered Questions for the topic computer science
Computer Science
02/22/23
Comparing Bigrams
Suppose we compare successive bigrams of bytes (two successive bytes) between two files. Suppose the files are random and exactly 4097 (1 plus 2 to the 12th power) bytes long. What is the...
more
02/19/23
how to do this?
in python: Using a string function, print your first and last name with the * symbol on both sides of your name with a max of 25 characters.
02/19/23
how to code this?
In python: Write a small program using a ‘while’ loop (while True).
Prompt the user to enter their age.
Using a string function, check if the input is a decimal value, if true then break from the...
more
02/19/23
how to code in python?
Initialize a string variable to “hello python” and print it out in all uppercase using a string function.
02/17/23
in python how do i write this code?
Write a program that opens a file that will be overwritten each time. Write out a few lines of text and then close the file.
02/17/23
how to code this in python?
Using escape characters, print out the phrase “Welcome to O’Neil’s Boat Rentals!”
Initialize one string variable to the following sentence:
“Hello there! How are you? I'm doing fine."Using the...
more
02/15/23
how to use try and except?
Create a function that will divide 2 numbers and return the result. The function will accept 2 arguments. Use a try statement and the ZeroDivisionError exception type to catch divide by zero...
more
02/15/23
How to use escape keys?
Using escape characters, print out the phrase “Welcome to O’Neil’s Boat Rentals!”
Initialize one string variable to the following sentence:
“Hello there! How are you? I'm doing fine."Using the...
more
02/15/23
how to use .format?
Write a function that takes 3 strings - first name, last name and middle initial. Return one string that has the person’s full name. Make sure that the first letter of each name is capitalized...
more
02/11/23
how to do this in dbeaver?
Research how to create queries that: 1) join multiple table; 2) use aggregate functions (e.g. sum()), and 3) “order by” statements Consider online and the text for sources. 2. Create a query that...
more
02/11/23
what wrong with this syntax in dbeaver?
insert into warranty values ('p10', '6-year warranty ', 89)insert into warranty values ('p11', '7-year warranty ', 24)insert into warranty values ('p12', '8-year warranty ', 45)insert into warranty...
more
02/09/23
how to use debugger to fix code in this example?
Using a breakpoint and the debugger, find the problem and fix the following code:
patients = [[70, 1.8], [80, 1.9], [150, 1.7]]
def calculate_bmi(weight, height):
return weight / (height **...
more
02/09/23
how to write an exponent function in python?
Write a function that takes two integers and raises the first number to the power of the second number and returns the result.
02/09/23
how to write an average function in python?
Write a function that takes three arguments (numerical) and returns the average of the numbers entered.
02/09/23
How to write a tax function in python?
Write a function that takes the price of the item as an argument and return the price calculated with a tax value of .07. The goal here is to convert the tax calculation into a reusable function.
02/09/23
Is there a way to select segments from different original time series that can be combined to create a new time series that best represents the information of the original multiple time series?
I am looking for a way to select segments from different original time series that can be combined to create a new time series that best represents the information of the original multiple time...
more
02/07/23
how to go about coding this in python?
Write a function that asks for the user to enter a number of items they wish to purchase.
02/07/23
how would you write this in python?
Write a function that asks for the age of the user’s dog. Print a string that states the dog’s age in dog years with a conversion rate of 1 human year to 7 dog years.
02/07/23
how to code this in python
Write a function that asks for the user’s name and prints “Hello, “ followed by their name.
02/05/23
how to a join two tables in dbeaver?
I have two tables that I would like to take from. Department: Department_name Employee: first_name, Last_name how would i go about doing that
02/05/23
how to insert these records into a dbeaver app?
INFO:INSERT INTO department VALUES ('R and D', 1, 123456789, '2014-07-14'); INSERT INTO department VALUES ('Finance', 2, 123456783, '2016-02-07'); INSERT INTO department (department_id,...
more
ESSAY WRITNG, EDITING AND PROOFREADING
Hey there, I am a foreign student struggling to raise school fees. I am a sophomore, and up to this point, I feel like giving up.I got a partial scholarship and have struggled to cater to my other...
more
02/05/23
how to type a tuple
How do you type the tuple value that has just the integer value 42 in it?t = (42)t = (42,) (The trailing comma is mandatory.)t = (), .insert(42)t = [42,]
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.