C++

09/16/19

Why is it faster to process a sorted array than an unsorted array?

Here is a piece of C++ code that seems very peculiar. For some strange reason, sorting the data miraculously makes the code almost six times faster. <!-- language: lang-cpp --> #include... more

09/16/19

How many caramel apples are covered with sprinkles?

Cara has 120 caramel apples to sell. Each Apple is covered with one topping..1/5 covered w/peanut 1/3 covered w/choc chips 3/10 covered w/coconut

09/15/19

the midpoint of AB is M(7,5). the coordinates of point A are (4,1) find the coordinate of point B

the midpoint of AB is M(7,5). the coordinates of point A are (4,1) find the coordinate of point B

Help plss! ): Calculate a Percent Increase or a Percent Decrease

James purchases a property for $150,000 in 2015. In the first year of ownership the capital appreciation of the property (how much its value increases by per annum) is 4%. In year 2, the housing... more

Domain of the function

F(x)= 5x+2 , g(x)=x-3(f+g)(x)=

09/15/19

(6+sqrt-49)(6-sqrt-49) in a+bi form

C++

09/15/19

Easiest way to convert int to string in C++?

What is the easiest way to convert from `int` to equivalent `string` in C++. I am aware of two methods. Is there any easier way? (1) int a = 10; char *intStr = itoa(a); string str =... more

09/14/19

I need help asap please

Consider the function f(x)=−x2+6 on the domain [0,∞).Use the range of f(x) to determine the domain of f−1(x).What is the domain of... more

09/14/19

Using quadric equation

It says to simplify, type exact answer, using radicals and i as needed. Use integers or fractions for any number. Use a comma to separate as needed. If the solution set is -11 - the square root of... more

Simplifying for derivative

consider the function f(x) = 4sqrt(x)-1a) Simplify as much as possible in f(4+h)-f(4)/hb) Use the result to find the derivative of f'(4)

Alternative method for Derivatives

Let f(x) = 5/(x+3)A) . Reduce with the definition f(x)-f(1)/x-1 so that there is only one x.B) . Use that answer from a to find derivative f'(1)

09/13/19

College Algebra

If the first 4 terms of a geometric sequence are , then the formula for the  term in the sequence is ___________.

The Student Budget

Jenna works at the grocery store and earns $9 an hour. She is busy with extracurricular activities and only works 20 hours during the week. However, she picks up an eight hour Sunday shift once a... more

09/13/19

How to allow users to input their own data.

I was taught a way to allow users to put in their own input instead of giving them a set variable. So instead of giving a user the set name "Sam" they could put "Dan" or "Shrek" etc... However when... 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.