125 Answered Questions for the topic Coding

26d

Need help with coding...

How do I create a code in Matlab to get the answer to this question?Two boats start together and race across a 60-km-wide lake and back。Boat A goes across at 60 km / h and returns at 60 km / h。Boat... more

08/16/21

Google collaboratory assignment. Python coding. PlZ HELP

Create a ColabTurtle program (within one code block) that creates a Turtle that will draw based on the commands you give it. The program should contain at least 200 lines of commands. You must use... more

08/16/21

Coding assignement help? Need assistance PLZ

Create a ColabTurtle program (within one code block) that creates a Turtle that will draw based on the commands you give it. The program should contain at least 200 lines of commands. You must use... more

need any help plz!

Create 2 int variables, return the statement “There is one negative and onepositive number” if one is negative and one is positive, return thestatement “One of the integers is positive” if one of... more

Google collab programming python

Can anyone help me out with this?Use Google Collab and create a collab notebook named "PythonActivity2"For this assignment please use your lecture and the Google Collab tutorial to help you... more

08/02/21

Java programming finding radius of circle

Create a Java function which calculates the radius of a circle: 1. The function should take no arguments. 2. Ask the user to provide the area value of the circle. 3. Calculate the radius based on... more

07/23/21

Excel: I need to take given data and sort between f, d, or Both. Then I need to separate the data once determined by f or d pounds

So, imagine there is an excel sheet with a column full of f or d values, another with random minute values, and 5 different zone columns with a number in only one of these per row(These 5 columns... more

Need help trying with nested list problem

HI! I have a list of lists, and within the nested lists are tuples (representative of (x,y) coordinates). I want the nested lists to represent a bin.list_of_list = [[(2,1),(4,2),(3,1)],... more

07/06/21

Python: First Fit Algorithm

I'm trying to create a First Fit Algorithm. The approach I'm taking is creating a list of empty lists, which are representative of the bins, where they will then be filled by certain area values... more
Coding Programming

06/28/21

LAB: Warm up: Variables, input, and type conversion. I cannot solve this LAB can someone please help me

(1) Prompt the user to input an integer between 32 and 126, a float, a character, and a string, storing each into separate variables. Then, output those four values on a single line separated by a... more

Java code needed

Java code needed! someone please help me with this code!Write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string.... more

need help with python project

this is all my professor gave me and I don't know what to do Write a class called Counter. The class has the variables: self.count - Keeps track of the current count. self.initial_count -... more

Recursion and Stack Overflow Question

Recursion uses something called the “call stack” where recursive calls to functions are stacked. Explain this using a specific example. When might there be a stack overflow?
Coding Python

05/10/21

Python "Mad Libs "

create "Mad Libs" with Python.First, you must find out the age of the user.If the user is less than 6, they cannot play.Based on their age, they will play one of these 3 types of Mad Libs:age 6-12... more

04/25/21

Using R script functions generate random samples and calculate sample means. Be sure to solve all 3 parts of this problem.

Please show the R script coding/steps to solve this. Please do all 3 parts of this question!!! Thanks in advance!!! :)Assume that we have a normal population with a mean of 10 and a variance of 22,... more

04/24/21

Solve using R Script to compute a 90% confidence interval for the difference between the average running times of films produced by the two companies

Please solve using R Script and show all coding/steps. Thanks in advance!The following data represent the running times of films produced by two motion-picture companies.There are 2 companies, A and... more

04/24/21

Using R Script please show the coding/steps to find the 95% confidence interval for the mean change in percent return to investors.

Thanks in advance!!! Please show all work/ coding in R Script, so I can try to understand how to solve problems like this later on.Fortune magazine (March 1997) reported the total returns to... more
Coding Python

04/24/21

How Can I Add a Receipt?

Hello I'm working on an assignment and I want to figure out how I would be able to save which items the user chooses and how many times he chooses that item so I can form a receipt. This is what I... more

04/19/21

Computer Science I- Programming

I need help to prompt the user to enter a filename in write mode using this input(Enter an output filename (or press enter to quit): )
Coding Python

04/11/21

Optimize my code by converting Recursion to Iteration or any other method

Question: Given the graph where vertices represent worksites and edges represent pairs of sites that must be able to communicate securely. what are the fewest worksites that can have the... more
Coding Python

04/07/21

creating a student and grade database in python

I have an project to make a student and grade data base that you can,add students to: enter name , age and addresssearch for students: by nameadd assignments; add the name of the assignment and it... more

03/26/21

How should I create this file?

Create a class called Blobber inside of a file called blobber.py. Your Blobber class should have the following properties: A private float data field called radius A private float data field called... more

03/26/21

What should I fill in to the spots that I am supposed to fill in?

Use the provided code file to complete the task to match the video. Use the starter code provided. Note that the class is defined in the same file as the main function. This is for convenience and... more

What does each line of code does? For example: static private float Median(float[] array) //method heading for the Median method

static private float Median(float[] array)  { float[] tempArray = array; int count = tempArray.Length; Array.Sort(tempArray); float medianValue = 0; if (count % 2 == 0) { float... more

Please help me plug in the median method into my code. I have the method in the public class program. it is static private.but don't know how to print/output. it in the main.

using System;using System.Linq;public class Program{ static private float Median(float[] array) { float[] tempArray = array; int count = tempArray.Length; Array.Sort(tempArray); float... 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.