Oct 24

Yeah I want to learn computer programming and I’ve stated teaching myself Python but I’m not sure if thats the best program to start out on or not. So yeah plz help me ;)
This question is asked quite a bit and the majority of people answer with a C language. There are definite benefits from learning c / c++ first due to the syntax being similar to java and because it is so widely used, but I would still vouch for Python as the best language for someone who has no prior programming experience.

The cons of Python are pretty clear:
Unless you’re an avid unix/linux user, you aren’t going to run into it very often. (note that you can use Python on Windows)
The syntax isn’t all that similar to other languages.
It’s not used as frequently as c / c++.
It’s more resource intensive than c / c++.

The nice part about python is that it’s an easy to learn language. You only need to take in a few concepts at a time, and having experience with the general concepts an OO language like Python will help you in learning another OO language like c or c++.

I like to use the ‘hello world’ example to make the point. Here is ‘hello world’ in c++:
—-
#include <iostream>
using namespace std;

int main()
{
cout << ‘hello world’ << endl;
return 0;
}
—-
In this simple program, there are several concepts that you would need to understand. like #include (and certain compilers have mandatory includes which can be problematic if you are new). You need to be aware of namespaces, functions, cout, endl, strings, returns, bracket and semicolon usage, etc. It’s alot to take in if you have never dealt with it before. Also, the difficult syntax results in poor readability to the new user, which can result in bad programming habits like excessive nesting and overly complex implementations. As a final note on c++, you will have to put up with the nuisances of forward calling or the painstaking debugging the first time you learn about / experience overflowing buffers and the way c++ rounds numbers.

Now for ‘hello world’ in Python:
—-
print ‘hello world’
—-
That’s much less of an eyesore. There are 2 concepts: 1) the print command, and 2) strings. Plus, even if you had absolutely no knowledge of Python, you have an idea of what this program actually does. Readability is a major pro.

====
In all, I’d at least take a look at c / c++. If you have trouble with it or if you simply have time and want to learn in more casual sessions, Python is a great choice.

Oct 24

A 1 kg ball is thrown straight up in the air. What is the net force acting on the ball when it reaches its maximum height? What is the ball’s acceleration at that point?

There is only one force on the ball, the force of gravity. Since the acceleration of gravity is always 9.8 m/s^2, the acceleration of the ball is 9.8m/s^2 downward. Since we know force is the acceleration times the mass of an object, multiply 9.8m/s^2 by 1 kg, to get the force, 9.8N.

Oct 16

I am going to school for computer programming and specializing in java script. I am also learning Arabic. I just want to know if knowing Arabic is helpful in the computer world. If it isn’t what other languages are compatible?

The arabic language matters to about 22% of the world’s population. There’s a lot of lost science and other books of knowledge that were written in arabic (due to wear and tear, computer programs may be able to decipher the missing words ) . Other uses of arabic are for design purposes (like company names written in arabic) and also, the arabic style of writing seems very artistic and of a flow-type, which could make it a base for logo design. I can think of many other uses, but a language combined with programming isnt always the greatest option (unless you’re a genius that has a mathematical need for a language combined with programming )

Oct 16

1) Centripetal and centrifugal force on the object is equal and opposite, so both cancel each other and net force is zero.
2) The velocity constantly changes, and change in velocity cannot be zero and change is towards the center , thus acceleration cannot be zero since a=change in velocity/change in time, that means net force is in the direction towards the center( because direction of force is same as direction of acceleration.)
3) If Net force is non zero, why doesn’t object goes to the center?

Tie a ball to a string and whirl it over your head. The only two forces (neglecting air resistance) acting on the ball are gravity and the tension in the string, and if you spin it fast enough, the tension will be much greater than gravity, and we can neglect gravity as well. So one force pointing towards the center of the circle is all that is needed to maintain circular motion. The reason is deceptively simple. When you accelerate at a right angle to your velocity, the magnitude of the velocity is unchanged, only its direction. If you know a little differential calculus, it’s a very easy thing to show:
A particle moving in a circular path of radius R in a circle around the origin with speed u has position given by
s = ( R cos((u/R) t) , R sin((u/R) t)) )
where u/R is the angular frequency of the sinusoids.
we can find the acceleration by taking two derivatives:
v = ( - u sin((u/R) t) , u cos((u/R) t) )
a = ( - u^2/R sin((u/R) t) , - u^2/R cos((u/R) t) )
notice that the magnitude of a is
|a| = u^2/R
and that is points in the direction opposite the position:
a/|a| = - s/|s|

Oct 11

I assume that those would be two separate fields of study, programming being writing lines of program to create things in a computer and mechanics being the how of what is happening physically in a computer. I don’t know if mechanics and programming are the right terminology, but what I have described is what I would like to learn. I’m a complete beginner in those concepts, and would like advise on what good resources to begin studying those fields are, mainly books, but web links would be appreciated too… although I can find those myself. Thanks a lot.

Instead of mechanics you can say computer architecture or hardware. I used this book http://williamstallings.com/COA5e.html as part of my computer science degree and explains the whole architecture of a computer and how it works, it’s a very good book. And for programming you can use you any introductory book for the language which you want to learn first. I suggest you learn C++ or Java first. You can use this book for Java, http://www.amazon.com/Introduction-Programming-Java-Problem-Approach/dp/0073047023/ref=sr_1_10?ie=UTF8&qid=1309873920&sr=8-10 . Hope it helps.

Oct 11

All the company is - is a desk and a computer (for the sake of argument) but brings in Net Revenue of around $50,000 a month on avarage for the last year, so an avarage of 600K per year in NET INCOME. it also owns a few brand names and contracts with high net worth individuals that are worth millions in future income.

How do you calculate the net worth of a company like that?
The company has no liabilities as well, only income and expenses.

Assign an amount as an asset called goodwill

Sep 28

A 3kg mass is observed moving at a constant velocity of 16m/s. What is the net force acting on the mass?

I can find the answer, if someone would just tell me the proper equation for it. Please?

This seems to be asking about Newton’s 1st law - ‘a body will continue moving uniformly in a straight line unless acted upon by an external force’. Your 3kg mass is "moving at a constant velocity of 16m/s", so we can deduce that the net force acting on it is zero.

‘Net force’ means any difference, for example, between friction and a driving force, or between gravitational force and a supporting force.

Sep 28

Is there any framework or good practices for developing the WPF application?

lol

Sep 8

I will be starting classes this semester to get a vocational degree in computer programming. I was hoping to get a bachelors or associates, but the college does not offer the course with those degrees. Anyway, besides programming, what other jobs could I possibly get with this degree? It may be a dumb question, but I was hoping for some insight. I am taking this course mainly because I enjoy working with computers, and I’m hoping to turn it into a career.

Most people start out as computer operators, or entry level programmers. After that, who knows - dba (data base admin), systems analyst, project manager, network engineer, etc. There are just so many directions to go.

Sep 8

hey guys
I have a question about net income and gross profit.
How gross income and net income are likely to be affected when a company add a new line beside their traditional line?
thanks
hey guys
I have a question about net income and gross profit.
How gross income and net income are likely to be affected when a company add a new line beside their traditional line? if a cereal company adds a new line that is related to its previous line ( new cereal and food and grain-based products ) but outside their traditional line, what will happen to their net income and gross profit?
thanks
if a cereal company adds a new line that is related to its previous line ( new cereal and food and grain-based products ) but outside their traditional line, what will happen to their net income and gross profit?
thanks

Not a tax question.

But to answer your question, it could go either way. Merely adding a product line does not assure success of the line or an improvement of net profit. If Microsoft came out with a line of perfumes, it would probably fail miserably. Ditto if Nike tried to get in the router market.

« Previous Entries Next Entries »