1,518 Answered Questions for the topic computer science

Computer Science Math Computer Programming

09/10/22

Total Possible Combinations Of Mostly Unique Sets

Given X sets of N numbers if at least one number of each set must be unique what is the total number of possible of combinations? First set starts at 1, each sequential number is multiplied by 2... more
Computer Science Statistics Probability

09/10/22

Jensen’s Inequality & Strictly convex functions

Using the Jensen’s Inequality to show that f(x) = x 2 is strictly convex function.
Computer Science Web Design Javascript

09/09/22

Hi! Can you please explain the Getting Started with JavaScript materials

1.) A value assigned to a variable can be A) an arithmetic or string expression B) a literal value C) another variable D) any of the given option2.) To include JavaScript from a file on a web page,... more

09/07/22

Need help with coding

We need to create a java program with the name “TheDotProduct2D.java”. This program will transpose a two-dimensional vector (array) using nested loops. Once transpose has occurred, the original... more
Computer Science Computer Programming

08/24/22

Help with Unix Lab - AWK

Write a script called labscript3.awk that will print out all orders shipped in 2014. Print out region, item type and total profit. At the end, it should print out the average total profit (for... more
Computer Science C++

08/14/22

C++ Write a code

Write a program to read a positive integer value less that 100 that represents the number of cents, and to output the change starting with the maximum number of quarters, then dimes, nickels and... more
Computer Science C++

08/14/22

C++ writing a program

Write a program to read from the keyboard two integers values with appropriate prompt messages and to do the following1- Compute and print their sum with an appropriate message.2- compute and print... more

07/31/22

Your program must define and call the following function. The function should return true if the input year is a leap year and false otherwise. (Java)

A common year in the modern Gregorian Calendar consists of 365 days. In reality, Earth takes longer to rotate around the sun. To account for the difference in time, every 4 years, a leap year takes... more
Computer Science Computer General Computer C++

07/28/22

C++ coding for BMI Calculator

can anyone fix this?...im having some error in this c++ code.#include <iostream>#include <string>using namespace std;class Person{ public: string name; int age; float weight; float... more
Computer Science Computer Programming

07/27/22

2. The following algorithm is a divide-and-conquer algorithm for finding the maximum value in array A[1..n].

Function maximum(x,y){ return maximum in A[x..y]}1.                 if y - x £ 1 then return (max(A[x],A[y]))2.                 else3.                 max1 <--- maximum(x, [(x + y) / 2]... more

07/23/22

Programming Python Question

Write a program that takes the NAS website url:  http://www.nasonline.org, downloads the HTML document, and decodes it into a string. Create a list of the topics under review which... more

07/20/22

Write a Program in C++ that calculates the amount of paint needed to paint the walls of a room?

A room has one door, two windows, and a built-in bookshelf and it needs to be painted. Suppose that one gallon of paint can paint 120 square feet.Write a program that prompts the user to input (in... more
Computer Science Computer Programming

06/28/22

Counted Loops In Python for this Scenerio

Suppose there is an island with two rabbits (male and female). Every 30 days, the population of rabbits doubles. Write a program that has the user input the number of days and then calculate the... more
Computer Science

06/26/22

Discrete structures

Consider the following relation R on the set A = {1, 2, 3, 4}: R = {(1, 2), (2, 3), (3, 1), (4, 1)} Find the transitive closure of this relation.
Computer Science

06/26/22

Discrete structures

Consider the following relation R on the set A = {1, 2, 3, 4}: R = {(1, 2), (2, 3), (3, 1), (4, 1)} Find the transitive closure of this relation.
Computer Science C Computer Programming

06/21/22

Need assistance with C code, not running

#include <stdio.h>struct students{ //struct studentchar FirstName; //String to store first namechar secondName; //string to store second nameint ID; //student IDfloat GPA; //student gpachar... more
Computer Science Math Physics

06/21/22

The acceleration due to gravity at the surface of Moon is 1.67 m/s^2. If a stone is thrown upward with a speed of 10 m/s, find

1) the time required to reach the highest point2) the maximum height reached by the stone3) the speed of the stone at t = 8 s4) the displacement of the stone at t = 8 s.
Computer Science Linear Algebra

06/11/22

Question regarding neural networks and least squares using NumPy. How do I start?

You are asked to implement a data-fitting classifier that can predict the label of an input vector. Specifically, in the context of hand-written digit classification, the label is an integer number... more
Computer Science Linear Algebra

06/11/22

Question regarding neural networks and least squares using NumPy. How do I start?

You are asked to implement a data-fitting classifier that can predict the label of an input vector. Specifically, in the context of hand-written digit classification, the label is an integer number... more
Computer Science Computer Engineering

06/08/22

I need help with the following question

Hi, I need help with the following questionProve the program is correct using Hoare logic inference rules where a and b are any two arbitrary numbers.and it is using repeated addition{b>=0} w :=... more
Computer Science Computer Logic

06/07/22

Hoare logic rules

using repeated addition, where a and b are any two arbitrary numbers. Prove the program is correct using Hoare logic inference rules (precondition and postcondition have been given).{b>=0}x:=... more
Computer Science

06/04/22

Wants to know logic how to convert it into code (C lan)

Mr. Sam was born on XX-YY-ZZZZ which happened to be a Saturday. If he died on AA-BB-CCCC, how many birthdays would he celebrate that fall on a Monday?Assume, the year which is divisible by 4 are... more

Computer Networking - Subnetting

An ISP is granted a block of addresses starting with 190.100.0.0/16 (65,536 addresses). The ISP needs to distribute these addresses to three groups of customers as follows: a. The first group has... 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.