Tutor profile: Samuel S.
Subject: Physics (Newtonian Mechanics)
What is the force pulling an object with a mass of 1kg down a ramp at an incline angle of 45 degrees.
The force pulling the object down the ramp is the perpendicular component of the force of gravity. This is equal to the mass times the force of gravity, divided by the sine of the incline angle. This comes out to be 1 x 9.81 x sin(45) = 9.81 N.
Subject: Java Programming
How could you parse lines on a webpage using native Java Libraries?
Using the URL, URLConnection, and Buffered Reader classes, you could easily parse every line of a webpage. You can do this by defining a URL object with the parameter being the url of the website you are trying to visit. Then you use the openConnection() method of the URL class, that returns a URLConnection object, to open an input stream. This input stream object can be passed into the constructor of an InputStreamReader object, which can be passed into the constructor of a BufferedReader object. The BufferedReader object can then be used with the nextLine() method to return each line as a String.
Subject: Electrical Engineering
What is the sum of all currents flowing into or out of a node in a circuit.
0 (Kirchoff's Current Law)
needs and Samuel will reply soon.