1,486 Answered Questions for the topic computer programming

Computer Programming Trigonometry Javascript

09/19/20

Help with understanding a Javascript program that deals with using trigonometry and transformations

var numPlanets = 4; var arms = 11; var speed = 0.015; var tick = 0; translate(200,200); var draw = function() { background(0, 0, 0); tick += speed; for (var s = 10; s < arms... more

09/19/20

Computer Science - Graphs

I've been given an adjacency matrix and asked to state whether the corresponding graph is undirected or not.How do we say whether a graph is undirected or not simply looking at its adjacency matrix.
Computer Programming Computer Science

09/16/20

How to find the address in column major order?

In a 2D integer array TD, assume that the row indices range from -3 to 7 and column indices range from 6 to 14. An element TD [-3, 6] stored at address 3220. Find out the dimension of TD and... more
Computer Programming Computer Science

09/15/20

In the case of 2D arrays:

Consider a 2D array A of 30 (5x6) elements is stored in the memory of 120 bytes from 2100 to 2216. Find out the address of A[2][4] element in row-major and column-major order.
Computer Programming Computer Science

09/15/20

Find the address of:

Consider an array of 20 elements is stored in the memory of 40 bytes from 200 to 238. Assume array index starts from 3. Find out the address of 10th index element.
Computer Programming Java Computer Science Javascript

09/15/20

Java Messenger Application

Problem Description: Distributed banking application You are required to build an application for Bank of Fiji. The application will allow users to create a bank account and use deposit and... more
Computer Programming

09/14/20

user-defined function

recode the program below by adding another user-defined function that will display the level welcome message. Explain the revision that you have made in your program. Explain how the program... more
Computer Programming Java

09/14/20

java programming

a) Write a method that takes as input a 2-dimensional matrix representing the joint probability distribution over two variables, and returns the marginal probability distribution for either the... more
Computer Programming Java Computer Science Programming

09/13/20

Whats the answer for these Classes and Objects exercise?(Java)

Question 1: Create a class Circle with data types (radius, colors) and methods getRadius (0, getArea().Question 2: Create a class Car with data types (plateNumber, xLocation, yLocation, speed) and... more
Computer Programming Computer Science

09/13/20

Find the time complexity of the given code:

For i=1 to n-1 For j=0 to n-i-1 If a[j] > a[j+1] then Set temp=a[j] Set a[j]=a[j+1] Set a[j+1]= temp
Computer Programming Computer Science Coding

09/13/20

Find the time complexity of the following code:

for(i=1; i<=n; i++) for(j=1; j<=log(i); j++) Print "HELLO";
Computer Programming Computer C++ Computer Science

09/10/20

Coffee Shop programm

need C++ code for the following programmingThe assignment is based on the following scenario: The USP Coffee Shop offers a range of beverages to its customers. The coffee shop is upgrading their... more

09/10/20

windows forms Application

Part 1: Programming – Hotel Room Sales Application1.1 Problem StatementThe current pandemic has seen most hotels in the Pacific Islands on the verge of closure. The locals have been encouraged to... more
Computer Programming Visual Basic

09/10/20

windows forms Application

Part 1: Programming – Hotel Room Sales Application1.1 Problem Statement The current pandemic has seen most hotels in the Pacific Islands on the verge of closure. The locals have been encouraged to... more

09/09/20

-Need the pseudo code and the flowchart. -answer part 3 for the question which is two essays!

here is the code for the program.-Need the pseudo code and the flowchart.-answer part 3 for the question which is two essays!C++ code:#include <iostream>using namespace std;#include... more
Computer Programming

09/08/20

How many bytes of data can a 3 GB hard drive store?

Computer Programming Math Computer Science Mathematics

09/08/20

The 7-bit ASCII code for the character ‘T’ is: 1010100

The 7-bit ASCII code for the character ‘T’ is:1010100An even parity check bit is now appended to the end of the code so 8 bits are transmitted. What will be the transmitted code for the ASCII... more
Computer Programming Computer Science C# Programming

09/08/20

Programming with C#

Hi, why does it become red in the following code?/* Console.Write("Write a number: ");int number = Convert.ToInt32(Console.ReadLine());if (number % 2 == 0 && (11 < number < 21 || 34... more
Computer Programming Computer Science Python

09/07/20

Write a program in python using tuple if possible.

Pure Gems Store sells different varieties of gems to its customers. Emerald, Ivory, Jasper, Ruby, Garnet and their prices are 1760, 2119, 1599, 3920, 3999 respectively. Write a Python program to... more

09/06/20

NEED ANSWER FOR PART 3

NEED ANSWER FOR PART 3
Computer Programming Computer General Computer C++

09/05/20

Need C++ coding or this assignment

NEED A C++ CODING USING DEV-C++ AND THE PSEUDOCODE AND FLOWCHART OF THE PROGRAM CREATED.ESSAY WRITING IN 150-250 WORDS.
Computer Programming Programming C Programming

09/05/20

please convert this c++ program to c :

// C++ program to implement division with large // number #include <bits/stdc++.h> using namespace std; // A function to perform division of large numbers string longDivision(string number,... more
Computer Programming Computer C++ Computer Science

09/05/20

Managing Customer Records in a Bank

Problem: Managing Customer Records in a BankA bank in your town updates its customers’ account at the end of each month. The bank offers two types of accounts: Savings and Checking. Every customer... more
Computer Programming Programming C Programming

09/04/20

please complete this code :(same variables )

hi this is my code to multiple two large numbers can you please complete it so it divides two numbers too (without changing the variables in the code and please be sure it compile correctly with... more
Computer Programming Computer Science Computer Engineering

09/04/20

What is the growth rate function and time complexity of the following code:

Set I=nwhile I>1 J=1 while J<n K=1 while K<n K+=2 J*=2 I/=2

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.