06/29/19

Force all && to be executed?

Consider the following variadic function template <typename Type, typename... Types> bool f(Type& arg, Types&... args) { return f(arg) && f(args...); } template... more

06/29/19

determine whether point lies inside triangle?

The program needs to read the values of three coordinates - P1(x1,y1) - P2(x2,y2) - P3(x3,y3) as well as another coordinate P(x,y) and determine whether this point is inside a triangle... more

what is this guys

C++

06/28/19

Where to put default parameter value in C++?

What's the place for the default parameter value? Just in function definition, or declaration, or both places?

Did I write the equation in standard form of a parabola correctly?

Put the equation into the standard form of a parabola by completing the square.Given equation: 12y=5x^2-60x+26412y/12=5x^2/12-60x/12+264/12y=5x^2/12-5x+22

Logical fallacy detection and/or identification with natural-language-processing?

Is there a package or methodology in existence for the detection of flawed logical arguments in text? I was hoping for something that would work for text that is not written in an academic... more

06/28/19

The probability of rolling either a 2, a ,5 or a 3 The probability of rolling either a 6 or a 1

A peculiar die has the following properties: on any roll the probability of rolling either a 6, a 1, or a 4 is 12, just as it is with an ordinary die. Moreover, the probability of rolling either... more

06/28/19

Please I kindly need help in solving these qustions

1. Determine whether the lines given by the equations below are parallel, perpendicular, or neither. Also, find a rigorous algebraic solution for each problem.a.    b.    c.  [Suggestion: go... more

06/27/19

I need help on this math problem. Please Explain

The student council members are making corsages to sell for the prom. They spend $450 on materials such as flowers, ribbons, elastic, and pins. They are selling the corsages for $8.50 each. They... more

Farming Watermelon Statistics Question

What price do farmers get for their watermelon crops? In the third week of July, a random sample of 42 farming regions gave a sample mean of x = $6.88 per 100 pounds of watermelon. Assume that σ is... more

06/27/19

Evaluate Composite functions

f(n)= 2(1/3)^n-1 +4h(t) = T+4/t-2(h x f) (0)=

What is the slope of a line that passes through point (-4,0) and has the same amount of 36 units of area on each half of the line?

So there is a picture but I can place it in here so I hope this worksThere is 9 2x4 rectangle on a grid and a line passes through the point (-4,0) and divides the area of the rectangles so that... more

06/27/19

Factor the following of Trinomial

6-h-h2

06/27/19

What is the Objective-C way of getting a nullable bool?

How should I go about getting a bool value that I can assign true, false and nil to in Objective-C? What is the Objective-C way of doing this? Much like C#'s Nullable<bool>. I'm looking to... more

06/27/19

What is permutation in Discrete Math?

C

06/27/19

#define macro for debug printing in C?

Trying to create a macro which can be used for print debug messages when DEBUG is defined, like the following pseudo code: #define DEBUG 1 #define debug_print(args ...) if (DEBUG)... more

Syntax error message with GW-BASIC?

I am currently stymied by the following error message from GW-BASIC: Syntax error in 450 Ok 450 STEP=0 Here is the context: 400 ON KEY(13) GOSUB 590 ' right arrow key makes direction... more

Searching an Array for an Exact Match in C++

Ensure the provided code file named MichiganCities.cpp is open. Study the prewritten code to make sure you understand it. Write a loop statement that examines the names of cities stored in the... more

06/26/19

How dangerous is it to compare floating point values?

I know `UIKit` uses `CGFloat` because of the resolution independent coordinate system.But every time I want to check if for example `frame.origin.x` is `0` it makes me feel sick: if... more
C

06/26/19

Valid, but worthless syntax in switch-case?

Through a little typo, I accidentally found this construct: int main(void) {  char foo = 'c';  switch(foo)  {   printf("Cant Touch This\ "); // This line is Unreachable ... more

06/26/19

How many public playgrounds exist in the United States? How to answer using statistics and probability?

I have a goal of estimating how many public playgrounds exist in the United States. There are many methods of gathering real data about playgrounds, but, unfortunately, there is no single... more

06/26/19

Basketball Records

Spellman college 10 wins, 18 losses home gamesMorehouse college 9 wins, 19 losses home games Spellman college 12 wins, 4 losses away gamesMorehouse college 56 wins, 20 lossesA. Give numerical... more

Algebra Question

Consider the equation  and the relation “(x, y) R (0, 2)”, where R is read as “has distance 1 of”. For example, “(0, 3) R (0, 2)”, that is, “(0, 3) has distance 1 of (0, 2)”. This relation can also... 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.