Archive for the ‘using statement’ Category

Rewrite the statement using mathematical symbols or indicate whether the statement is true or false?

October 1, 2009 - 10:03 am 1 Comment

P is equal to the set whose elements are t, c,n,d

a.P=(t,c,n)
b.P=(n,c,d,0)
c.P=(t,c,n,d)

it should be P ={t,c,n,d}
( ) indicates the interval symbol

how to determine the square root using the switch statement in c++?

September 29, 2009 - 9:22 am 1 Comment

i need to make a program that will determine the square root of the input number.. im using the switch statement in c++..

can you also give me the other answer using the other statement…

thanks….

#include <iostream>
#include <math.h>

int main ()
{
int number, result;
cout << "Input a number: ";
cin >> number;
result = sqrt (number);
cout << "The square root of the number is " + result +"." << endl;
return 0;
}

How to insert multiple rows of data using INSERT INTO statement?

September 27, 2009 - 11:15 am 4 Comments

I need to create a dropdownlist that list down countries…
I have a list of countries (starting from Afghanistan….till Zimbabwe )

how to write an INSERT INTO statement so that i can insert this list in one shot….

the table name - tblCountry
the column name - strCountry

can anyone help me with this?

thanks in advance.

the code below is written for MySQL RDBMS:

INSERT INTO tblCountry (strCounty) VALUES (’US’),(’GB’),(’Russia’),…

if you’re running this statement on a production database don’t forget to add LOCK TABLES tblCountry WRITE; before statement and UNLOCK TABLES; after statement to prevent data integrity to be broken.

Complete each statement. Using inductive reasoning, suggest a formula for the sum of the angle measures at the

September 25, 2009 - 12:18 pm 1 Comment

tips of an n-pointed star. Can you deductively prove your formula?

5 Pointed star
m<A + m<B + m<C + m<D + m<E = ?

6 Pointed star
m<A + m<B + m<C + m<D + m<E + m<F = ?

the 6 pointed star is made out of two equilateral triangles (one upside down). So the angles at the tips are 60 degrees.

a 4-pointed star is a square. angles at tips 90 degress.

inductively, i speculate that the 5-pointed star (pentangle) has angles 72 degrees (360/5)

How would you word this statement insted of using the word "stick" ?

September 23, 2009 - 2:26 pm 8 Comments

In conclusion, I ask that you stick with the original agreement?

I ask that you honor the original agreement

How do I prove statement using mathematical induction? Please Help…?

September 21, 2009 - 12:09 pm 1 Comment

I looked through my textbook trying to understand the concept but I am still clueless of how this works. Can someone please explain ?

Prove 2n+1 <= 2^n for all n>=3

Prove (1+x)^n >= 1+nx, where x>= -1

Mathematical induction can be tricky; it’s one of those things you only get a feel for after a lot of practice. I’ll do the first example to try to help show you the way.

First, we establish a base case. For n = 3, we see that 2 * 3 + 1 = 7, which is < 2^3 = 8, and so we know it’s true at that base point.

Now what we do is we assume that it’s true for an arbitrary value n = k. If we can prove that it being true for k implies that it’s true for k + 1, then we have an infinite chain from the base case: 3 implies that it’s true for 4, 4 implies that it’s true for 5, and so on.

Assume that (2k + 1) < 2^k. Then we’d like to show that:

2(k + 1) + 1 < 2^(k + 1)

Well, since 2k + 1 < 2^k, then:

2^(k + 1) > 2(2k + 1) (I just multiplied both sides by two), and so:

2^(k + 1) > 2k + 2 + 2k. But k > 3, so we know that:

2^(k + 1) > 2k + 2 + 2k > 2k + 3, and 2k + 3 = 2(k + 1) + 1

So by this chain of argument, 2^(k + 1) > 2(k + 1) + 1, and so we have that 2^k > (2k + 1) implies that 2^(k + 1) > 2(k + 1) + 1, and since we’ve established that this inequality holds for a base value 3, and since if it’s true for k, it’s true for k + 1, then it must be true for all integers larger than 3, and so we’re done.

Hope this helps!

EXCEL - Using IF statement to return a list of possible options?

September 19, 2009 - 3:09 pm 5 Comments

Is it possible for the value if true part of an IF statement in Excel to return a drop down list (data validation) of possible options? If so, how??? I would appreciate any help. Thanks!!
Ex:
A2 can be cans, bottles or glass (chosen from a drop down list)
I want A3 to be a drop down list of 3 suppliers of either cans, bottles or glass based on which was chosen from A2
So, I’m going for
A3: IF(A2=bottles, [list of suppliers], IF(A2=cans, [list of suppliers], IF(A2=glass, [list of suppliers], " ")))

Thanks again!
Thanks Chaminda!!! That is exactly what I was looking for. I appreciate the help!

- Go to Data Validation and Select "List" option
- In the "Source" box, type your "IF" condition/s.

For example, =IF($D$8>2,$F$5:$F$8," ")

D8 = the cell you base you formula on
F5:F8 = Possible Options

(If D8 is greater than 2, then show the 3 options, if not leave it blank.)

Do we report goodwill (impairment of goodwill) on a Statement of cash flows using a direct & indirect methods?

September 17, 2009 - 2:44 pm 1 Comment

I think, we report it when using an indirect method to prepare SOCF but i am not sure.
Also what is a journal entry to record the following change in balance?
Is it:
Dr Impairement of goodwill 9
Cr Goodwill 9

balance sheet:
good will
balance on jan 1, 2007 is 63
balance on dec 31, 2007 54

income statement:
Impairment of Goodwill 9

Thank you!

In a SOCF, impairment or amortisation of goodwill is treated exactly like depreciation. Using the indirect method, it is added back to your starting point of net income. It doesn’t figure in a direct method SOCF at all since it’s a non-cash expense.

Regarding the journal entry, the more usual way is
Dr Impairment losses
Cr Accumulated impairment losses

Again, it’s like depreciation and accum depn.

Write the algebraic equation using one variable for the following statement. Do not solve.?

September 17, 2009 - 2:00 pm 7 Comments

Write the algebraic equation using one variable for the following statement. Do not solve.

John has five more than twice the number of CDs that Kate has. Together they have 100 CDs.

Let John have x number of CDs
and let Kate have y number of CDs

Then, x is five more than 2 times y
or, x = 5 + 2y (eqn. 1)

Also, x and y together is 100 CDs
or, x + y = 100 (eqn. 2)

substituting eqn.1 in eqn. 2:
5 + 2y + y = 100
or, 5 + 3y = 100
where y is the number of CDs owned by Kate

How do you make a thesis statement using this– by 1700 two distinct regional economies and ways of life were

September 15, 2009 - 10:16 am 2 Comments

emerging: northern and southern. Discuss this regional development and how it evolved.

?

Pick out some interesting aspect of it, and turn it into a statement that requires proof. The body of your thesis will be the proof. I.e., "The greater opportunity for income from agriculture set the South on a path that would far reaching implication for the rest of the century." Then your paper can explain those implications. North=greater industrial capacity; South=more foreign income from exports, along with greater dependence…