Thursday, December 24, 2009

What programming languages can be used to write Operating Systems?

Besides C and assembler...?What programming languages can be used to write Operating Systems?
C is definitely the most efficient language to write an OS. Unix was translated from assembly to C back in the day.What programming languages can be used to write Operating Systems?
You could write an OS in Java if you wanted. Pascal would work. Do you understand what an operating system is?
You could write an Operating System in just about any programming language.


You could write one in Logo with turtle graphics if you wanted to.
Mostly operating systems are written using C. Like linux kernel is written in C. But u can add gui like things later by combining other languages
You could write an OS in any language... but most likely, no single language would be feasable.





Some would obviously be easier to do than others.

Differences/Similarities between Object-Oriented and Top Down programming languages?

They are not languages and they are two very different things.


The Object-Oriented is a strategy (paradigm) for writing programs and programming modules.


Top-down and Bottom-up are strategies to design applications, process information and ordering knowledge.





Hope it helps

Programming, simulate a 3D terrain using a 2D axis. Have trouble rotating camera to view whole terrain

I want to simulate a 3D terrain using a 2D axis. I can convert 2D points to 3D points but I have trouble rotating the camera to look at the terrain at a X degree angle from a point above the terrain. The following pseudo code shows my logic.





// converting 2d to 3d points


// this algorithm assumes the


// origin starts from the middle


// not top left with a z axis that increases


// as it comes out towards the camera





//it's distance away from the origin along the z axis


camera = 256





//Corner A


x1 = -10;


y1 = 0;


z1 = 10;





//Corner B


x2 = 10;


y2 = 0;


z2 = 10;





//Corner C


x3 = 10;


y3 = 0;


z3 = -10;





//Corner D


x4 = -10;


y4 = 0;


z4 = -10;





//Looks like this, yahoo answers may screw


//the formatting though


// D-------------------C


// |############|


// |############|


// |############|


// |############|


// A-------------------B





//plotting point A,B,C,D


//------------------------------------


//Corner A


camera_distance = camera - z1;


new_x1 = x1 * camera / camera_distance;


new_y1 = y1 * camera / camera_distance;


pixel_set(new_x1, new_y1);





//Corner B


camera_distance = camera - z2;


new_x2 = x2 * camera / camera_distance;


new_y2 = y2 * camera / camera_distance;


pixel_set(new_x2, new_y2);





//Corner C


camera_distance = camera - z3;


new_x3 = x3 * camera / camera_distance;


new_y3 = y3 * camera / camera_distance;


pixel_set(new_x3, new_y3);





//Corner D


camera_distance = camera - z4;


new_x4 = x4 * camera / camera_distance;


new_y4 = y4 * camera / camera_distance;


pixel_set(new_x4, new_y4);


//------------------------------------





The trouble occurs now. At the moment we're looking at the front of a 3D square with no hight that goes out towards the negative direction of the z axis. Because objects get smaller the further there away from the camera suggests that the interval DC can not be seen because it's hidden by the interval AB. What I want to do is move the camera up and then rotate the camera X degree down so I can view the whole square from an areal view, like Age Of Empire's kind of thing. Any suggestions would be greatProgramming, simulate a 3D terrain using a 2D axis. Have trouble rotating camera to view whole terrain
Hello,





You are on the right track concerning the conversion from 2D space to 3D space. It seems you are trying to create a 3D workspace where you want to manipulate your object. I would recommend you to use Transformation matrices. Transformation matrices which are widely used in 3D Graphics will allow you to do what you wanted quickly and efficiently.





You can, rotate, scale, shear, reflect, project, etc your shape in 3D space easily using a transformation matrix. I wont explain how to do each manipulation since it is heavily documented on the net if you do a simple search.





Take a look a wikipedia for quick reference regarding some simple transformations:


http://en.wikipedia.org/wiki/Transformat鈥?/a>





The one you would need is shearing in the direction you would like. You would need to translate all the points wrt to the transformation matrix you are currently using.





Good luck!

What certification should i get that includes programming and comptia a+ and network+?

A+ and Network+ are individual certifications, and are not 'included' in any other certification. You can find training courses that will cover both of them, but the exams are done separately.





Programming will also be completely separate.

Why do you think Raw isn't on hulu like all the other other USA programming?

If you mean Raw as in Monday Night Raw by the WWE, then its because Vince McMahnon is who he is. He won't give out rights for his product anywhere unless he's getting some serious $$$. I think he'd sooner start putting it up on WWE.com itself rather than let anyone else offer it. There may eventually be enough demand that we'll see that happen, but right now it seems as though he's content on how his stuff is being distributed.
  • blonde highlight
  • oil offshore
  • printer ink
  • printer ink
  • How can I get Java/PHP/MySQL programming job?

    How can I get my foot on the door for Java programming job? Should I enroll to 1-2 years computer school just to get programming job?





    Somebody suggest me to participate in the SourceForge.net Java project. Will the employer convince once I put the project in my resume? (After the completion of the project )How can I get Java/PHP/MySQL programming job?
    Enrolling in a school to get the required certificates would be the best option, this gives you actual qualifications for company's to view, Major company's will not look at you twice if you have no qualifications.





    However if you are certain you have self taught yourself adequately you can try freelancing work, build yourself an on-line showcase to show off your works and talents search for a project on freelancing sites.





    such sites are





    www.freelancers.com or www.rentacoder.com

    How to run a program in java programming , how to add an element in an array,if the name exist,if wont be aded?

    Can i ask, about the java programming on how to add a name in a string array.If the name already existed in the array it want be added and will say name found. thanks..How to run a program in java programming , how to add an element in an array,if the name exist,if wont be aded?
    You'll have to write a function, contain(String[] a), to do this or else use a class that has a contains() method, like ArrayList.