155 Answered Questions for the topic Coding

Coding Python


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


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


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


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


Redirect to other page if there are no parameters in url, otherwise stay at current page.

I need to redirect from my website if there are no parameters in the url with javascript, html. (redirect with html,js)For example, if a page on my site was example.com/page and if there were... more
Coding Python


Divide by X HW Zyboo

Write a program using integers userNum and x as input, and output userNum divided by x four times.Ex: If the input is: 2000 2 Then the output is:1000 500 250 125Note: In Python 3, integer division... more

Matrix Multiplication in C programming

Given an n x k matrix A and an k x m matrix B, with 1≤n,m,k≤300, write a C program that computes the matrix product C=AB. All entries in matrices A and B are integers with abolute value less than... more


Python Code- Beginner

I need help with this sample output line and how to code it thank you and only using capital letters no lowercase and no numbers.User InputEnter your plan letter (A, B, or C):


I have a coding question

How do you capitalize the first character of each word in a string in an array?Explain with a simple example please?Thanks

Help me with this please

Write a static void method that will take accept an int array as a parameter and will count the number of times the numbers, 0-9, appear in the array, which can just be print statements

Python Lists (User Input with all integers)

Hello! I designed this code that takes in user input and creates a list and then outputs the sum, highest number, lowest number, and average. Right now it can only take in whole numbers but I was... more

Python While loops and For loops

Is there a way for me to use for loops with not equal marks like you can you with while loops? For example, how can I convert while num!=0 to for loopI created a code for converting binary to... more

How to make GLabel font to resize as the application size changes

I need to adjust the font size of GLabel as the application size changes. I mean, when I resize canvas's windows I need GLabel font to resize too proportionally.


firework py code

There are 3 fireworks. their weight and initial expulsion rate:1) m = 250 grams and V = 6 meters / second2) m = 400 grams and V = 8 meters / second3) m = 650 grams and V = 8 meters / secondThe... more

Roblox studio scripting and coding.

Hello to whoever is reading this, if you have used Roblox studio, not just Roblox, but Roblox studio, please answer the following question: how do you add background music for free to your Roblox... more
Coding Java Programming


Word Frequencies

Write a program that reads a list of words. Then, the program outputs those words and their frequencies. The input begins with an integer indicating the number of words that follow. Assume that the... more


Password requirements

Websites commonly require a password that satisfies several requirements. Write a program that checks if an input string satisfies the following (error message is shown for each): At least 8... more

Password requirement

Websites commonly require a password that satisfies several requirements. Write a program that checks if an input string satisfies the following (error message is shown for each): At least 8... more

Leap year - methods

A common year in the modern Gregorian calendar consists of 365 days. In reality, the earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year... more


Graded Activity C++ Program

A C++ assignment Implement the GradedActivity class. Copying from the pdfs is fine. Create a new class Assignment which is derived from GradedActivity. It should have three private member ints for... more


C++ Grid Writer

C++: In this part of the assignment you will not need to write any code. Instead you will download a software project and submit your answers to questions about the code.The project uses a class... more


C++ Program: Random Number Guesser.

MUST HAVE TWO FILES Submit your RandomNumberGuesser.h and RandomNumberGuesser.cpp filesWrite a derived class of the NumberGuesser class named RandomNumberGuesser. The derived class should override... more

Can someone do me this project?-java

The project description:As a programmer, you have been asked to write a Java application, using OOP concepts, for a Hospital with the following requirements:• The Hospital has several employees and... 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.


Find an Online Tutor Now

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