What is next in this pattern
What is next in this pattern?21/13, 31/26, 11/1?
05/26/19
How do you graph these points: (e,-4) (1/e,-4).
How do I put “e” in the calculator? I have a 30XA. How do you get the e into decimal form?
Concatenate multiple files but include filename as section headers?
I would like to concatenate a number of text files into one large file in terminal. I know I can do this using the cat command. However, I would like the filename of each file to precede the "data...
more
05/26/19
Algebra 2 Word Problem: Any help would be much appreciated
SKYSCRAPERS While working on a high-rise building, a window washer is trying to mix a diluted cleaning solution that is 55% soap. He is adding an 80% soap solution to 1 liter of 40% soap solution....
more
05/26/19
Two dice thrown, one comes up 6?
If my friend throws two dice, and covers them up, but I see that one of them was a 6, what's the probability that they were both 6s given this knowledge?
I'm under the impression that the answer...
more
05/26/19
What is the difference between char array vs char pointer in C?
I am trying to understand pointers in C but I am currently confused with the following:- char *p = "hello" This is a char pointer pointing at the character array, starting at _h_.- ...
more
Why does the C preprocessor interpret the word "linux" as the constant "1"?
Why does the C preprocessor in GCC interpret the word `linux` (small letters) as the constant `1`?
test.c:
#include <stdio.h>
int main(void)
{
int linux = 5;
return 0;
}
Result of...
more
05/25/19
Where does gcc look for C and C++ header files?
On a Unix system, where does gcc look for header files?I spent a little time this morning looking for some system header files, so I thought this would be good information to have here.
show a venn diagram
use a Venn diagram like the one below. A survey of 134 pet owners yielded the following information: 49 pet owners own fish; 57 own a bird; 50 own a cat; 68 own a dog; 2 own all four; 11...
more
05/25/19
typedef struct vs struct definitions?
I'm a beginner in C programming, but I was wondering what's the difference between using `typedef` when defining a structure versus not using `typedef`. It seems to me like there's really no...
more
05/25/19
Why is number of bits always a power of two?
We have 8-bit, 16-bit, 32-bit and 64-bit hardware architectures and operating systems. But not, say, 42-bit or 69-bit ones.Why? Is it something fundamental that makes 2^n bits a better choice, or...
more
05/24/19
Equation of parabola with vertex at (1,-1)
Y=(x-1)^2-1. Y=(x-1)^2+1. Y=(x+1)^2-1. Y=(x+1)^2+1
05/24/19
Comparing two Calendar objects?
I want to compare two Calendar objects to see if they both contain the same date. I don't care about any value below days.I've implemented this and I can't think about any case where it should...
more
05/24/19
Calling base class overridden function from base class method?
public class A { public void f1(String str) { System.out.println("A.f1(String)"); this.f1(1, str); } public void f1(int i, String str) { ...
more
05/24/19
Redirect DOS Output Only if there is Output?
I have a series of lines in a batch file (.bat) running on a Windows machine, e.g.: start /b prog.exe cmdparam1 cmdparam2 > test1.txt start /b prog.exe cmdparam1 cmdparam2 >...
more
05/24/19
How would you access Object properties from within an object method?
What is the "purist" or "correct" way to access an object's properties from within an object method that is not a getter/setter method?I know that from outside of the object you should use a...
more
05/24/19
The consequences and pros/cons of flushing the stream in c++?
I have recently read an article which stated that using `\ ` is preferable to using `std::endl` because `endl` also flushes the stream. But when I looked for a bit more information on the topic I...
more
05/24/19
How to write a simple database engine?
I am interested in learning how a database engine works (i.e. the internals of it). I know most of the basic data structures taught in CS (trees, hash tables, lists, etc.) as well as a pretty good...
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.