1,474 Answered Questions for the topic computer programming

Computer Programming Computer Science

01/25/24

Cs 1030 pseudocode question

Write an algorithm in Computer Science pseudocode that reads a 0-terminated sequence of numbers from the user, one at a time. The final 0 entry should not be considered as part of the sequence... more
Computer Programming Computer Science

01/19/24

Array reversal in O( log n) time.

Is reversing an array in O( log n) possible? I know it's possible with an O( log n) time lookup, but I don't know if it's possible with an O(1) time lookup. I also don't know if there is a "easy"... more
Computer Programming

01/13/24

mimopsdvpsjddc;

Which of the following is not included in the Corporate Impact Analysis (BIA)? A. Business priority B. Accident handling priority C. Impact assessment D. Risk identification
Computer Programming Discrete Math

01/08/24

Algorithm to find whole number sequences summing to a specific value

I need an efficient general algorithm to calculate all the sequences of N whole numbers that sum to a given whole number, M. There are (M+N-1)!/[M!*(N-1)!] such sequences. For example, if N = 3... more
Computer Programming Computer Science Python

12/31/23

Unraveling Dijkstra's Algorithm: Finding Shortest Paths

Consider a weighted graph representing the distances between cities. Nodes represent cities, and edges represent the roads connecting them with associated distances. If City A is connected to City... more
Computer Programming

12/07/23

PLC Program for Parking Garage/ Door System (Studio 5000)

Design a garage system to operate as follows:1. The door is opened or closed either using a keypad or a remote key FOB.a. Using either of these will open the door if it is closed or close it if it... more
Computer Programming Python

12/05/23

A business major gives you a file named accounts. txt that contains transactions of three bank accounts (a sample is shown below). They ask for your help to compute the final balance of each account.

Each line of the file contains a letter, an arrow, and an integer representing one account. A single space separates each valueContents of accounts. txt:a < 123b > 456с < 78If the arrow... more
Computer Programming Computer Science Python

11/23/23

8.18 LAB: Elements in a range

Write a program that first gets a list of integers from input. That list is followed by two more integers representing lower and upper bounds of a range. Your program should output all integers... more
Computer Programming Python

11/17/23

keep getting this out come "free variable 'valid_passport' referenced before assignment in enclosing scope" please help out

def valid_passport(pp): requirements = {"pid", "hgt", "cid", "iyr","byr","eyr","ecl","hcl", "ecl"} # Inputs all required keys into a list return all(field in pp for field in requirements) or... more
Computer Programming Python

11/17/23

keep getting this out come "free variable 'valid_passport' referenced before assignment in enclosing scope" please help out

def valid_passport(pp): requirements = {"pid", "hgt", "cid", "iyr","byr","eyr","ecl","hcl", "ecl"} # Inputs all required keys into a list return all(field in pp for field in requirements) or... more
Computer Programming Statistics

11/14/23

How does one calculate the non-centrality parameter (t-distribution) in R?

I’m trying to calculate this parameter to perform a power analysis. I want to know the power to detect a future hypothetical 30% increase in a continuous variable (density). I think my... more
Computer Programming Html Web Design Computer Engineering

11/08/23

What is responsive web design and why is it important?

Can you explain the significance of responsive web design and what it entails?
Computer Programming

11/06/23

division by zero causing overflow error

I have a program that populates results below. The next step is to take the numbers in the first column the 23.39 and everything below it and divide it by a number. the problem is if you scroll... more
Computer Programming Python

11/06/23

Python problem Help ASAP Due today 11:00pm

Please avoid using any adcance coding like return, string(), and the f at the bottom to PLease help me modify this problem of mine to match the output: Been stuck on this for the past three days... more
Computer Programming Math Chemistry Differential Equations

10/31/23

Transport and fluid

I built a mathematical model for transport modeling with two phases water and solid. I made a conceptual model to make the problem more simple. I know that once the transport modeling initiates the... more
Computer Programming

10/23/23

non-responsive tutor

Hi, I had a non-responsive tutor this morning. He booked me for a session, which I did not confirm, but I went ahead and agreed to meet up with him. I messaged him at 8:54am this morning with no... more
Computer Programming Math Calculus Physics

10/22/23

Where is ChatGPT useful? Where is it not useful?

Where is ChatGPT useful?Where is it not useful?
Computer Programming Biology

10/15/23

Big Data, Biology, and Code

Please help me to understand the interplay of Big Data that has become very popular in the last 10 years and how Programming and algorithm design, especially ML and NLP are being used to understand... more
Computer Programming Java Computer Science

10/05/23

create JUnit 5 test for these code

@Test public void getEndpoints() { }@Test public void distance() {} @Test public void slope() {}@Test public void midpoint() { with this code: public Point2D[] getEndpoints() { Point2D[]... more
Computer Programming Java Computer Science

10/05/23

create JUnit 5 tests

@Test public void getEndpoints() { }@Test public void distance() { } @Test public void slope() { }@Test public void midpoint() {
Computer Programming Java Computer Science

10/04/23

java method creation

public Point2D[] getEndpoints()This method creates and returns an array containing copies of the two endpoints of this Line2D object. Note that the length of this array must be 2 and the order of... more
Computer Programming Art English Business

10/04/23

Create entity relationship diagram for Heritage Consortium? Name entities, attributes, and relations (9 entities with all 1 to many relationships)

"The Heritage Consortium, headquartered in Toronto, Canada, helps coordinate cooperation among 50 large government-sponsored museums across North America, South America and Europe...."It wouldn't... more
Computer Programming English Business Computer Science

10/04/23

Create entity relationship diagram for Heritage Consortium? Name entities, attributes, and relations (9 entities with all 1 to many relationships)

The Heritage Consortium, headquartered in Toronto, Canada, helps coordinate cooperation among 50 large government-sponsored museums across North America, South America and Europe....It wouldn't let... more
Computer Programming Java Computer Science

10/02/23

java instance methods creations

public Point2D copyOf()This method creates and returns a new, distinct Point2D object with data copied from this Point2D object.public Point2D add(Point2D other)This method creates and returns a... more
Computer Programming

09/29/23

Documenting and Debugging Activity

Use the algorithmic design stage of computational thinking to design a program. Remember that algorithmic design is where you create step-by-step instructions to solve a problem. This must begin... more

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.