1,518 Answered Questions for the topic computer science
Computer Science Computer Programming
09/06/23
C function to reverse an array of integers
Write a C program that reverses an array of integers.
Computer Science
09/04/23
Proving asymptotic relationships
I am trying to teach myself asymptotic notations. I feel like I'm in over my head. I read the explanations in the textbook, and Khan Academy. But when I try to do proofs, I can't grasp anything.I'm...
more
08/31/23
True or false computer introduction
a. Applications requiring complex, sophisticated mathematical calculations use mainframesb. Instead of the term, port, the term, connector, sometimes is used to identify audio and video ports
Computer Science
08/02/23
can you help create a pseudocode
07/26/23
Matlab Code png to binary
I am having trouble converting my PNG image to binary. The image name is correct, but I am getting a confusing error on line 4. I put the code with the error mesage below. Thank you.fullFileName =...
more
Computer Science Organic Chemistry
07/20/23
How Big Is A Light Year?
Some say it is 100 million marathons! Others say it is 100 billion marathons across!
07/18/23
mod question in discrete math
mod problem,for any positive integer mm - 1 mod mCould I say it congruence to m - (m - 1) mod m in next line?Below is from a real exam, I was rushing to it, so the explanation might not very...
more
07/16/23
Counting problem
There are exactly 20 students currently enrolled in a class. How many different ways are there to pair up the 20 students, so that each student is paired with one other student? Solve this in at...
more
06/11/23
IEEE-754 standard for 32-bit floating point
Using the IEEE-754 standard for 32-bit floating point, what biased exponents and mantissa values as given below represent NaN? (Choose all that apply) 0 and nonzero 0 and 255 0 and 0 255...
more
06/11/23
What is the biased exponent in this example, expressed as decimal?
Question 10To find the IEEE-754 SP floating point representation of the binary number 0.0000111, one first shifts thedecimal point to the (left or right) by right, 5 places. Question 11(Continuing...
more
06/11/23
Write the decimal number 29.23 as an unsigned fixed point binary
Write the decimal number 29.23 as an unsigned fixed point binary representation with 5 bits for the integer part and 4 bits for the fractional part. Be sure to round up, if needed, to obtain the...
more
Computer Science Discrete Math
06/08/23
Discrete mathematics in Computer Science: Stable matching
I am trying to understand the proof of the theorem below but do not understand definition of employer optimal. Do all employer pair with top optimal candidate means employer optimal or just at...
more
Computer Science Computer Programming
06/02/23
What’s the best way to start learning to code?
Computer Science
05/31/23
In which of the following addition problems (using two’s complement notation) does an overflow error occur?
In which of the following addition problems (using two’s complement notation) does an overflow error occur?a) 0011+ 1010b) 0100+ 0100c) 1100+ 1100
What Combinations Apply RISC-V
A nested function calls another function (plot_function with parameter a0) and is also called by another function. Given the code that follows RISCV calling convention, which sets of registers...
more
RISC-V Conventions
You are the author of the function F while your friend is the author of the function G. Both F and G are located in the same RISC-V main memory but you and your friend do not know the contents of...
more
Order of RISC-V Conventions
Suppose we have the following stack, where the red line is the indicator for sp: Suppose we now want the stack to contain these additional data items in the following order:We are given the...
more
05/31/23
Online Resources for ML/NNs
I am a novice programmer with a bit of conceptual background in ML/NNs, but I haven't programmed much in Python. Besides tutorials like Kaggle or platforms like Coursera/Edx, what are some free...
more
Assembly and RISC-V Calling Convention
A nested function calls another function (plot_function with parameter a0) and is also called by another function. Given the code that follows RISCV calling convention, which sets of registers...
more
Order of Stack using RISC-V
Suppose we have the following stack, where the red line is the indicator for sp: Suppose we now want the stack to contain these additional data items in the following order:We are given the...
more
05/30/23
Let x = 131 in base 10. If x is represented as an 8-bit unsigned binary integer, and you apply the operation x << 4, what will the result be in base 10?
Let x = 131 in base 10. If x is represented as an 8-bit unsigned binary integer, and you apply the operation x << 4, what will the result be in base 10?
05/29/23
MATLAB Plot of Solutions and Directional Field
I'm trying to plot solutions along with the directional field as in the image given below, of the constant harvesting model given bydP/dt = r*P(1 - (P/M)) - h , P(0) =p0 , where r = 0.8, M = 8000...
more
05/09/23
I defined a class ListNode, with few extra definitions added: ListNode_str.h
Re-write this code as a template class, and re-name this file to ListNode.h
#pragma once
#include<iostream>
#include<string>
using std::string;
class ListNode
{
string value; //...
more
05/09/23
Grab the file arraysWork.cpp.
It will not compile as it has some errors in it. Feel free to remove them when you are working on the code. Your goal is to comment on every single line in the function main except for the return...
more
05/05/23
Python Programming - Reading & Resizing Videos in Google Colab Using OpenCV
I used the below code to read and display a video file in Google Colab. However, I do not understand how to resize it to a specific size. Any help would be highly...
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.