Enable contrast version

Tutor profile: Ayham I.

Inactive
Ayham I.
Math and Computer Science Tutor for 2 years
Tutor Satisfaction Guarantee

Questions

Subject: Java Programming

TutorMe
Question:

Create a Square object in which its area can be obtained using this method: public double getArea() Make sure that method exists in your code. Then, create a SquareTester class that gives the square's width and length, and is able to print out the area of the square (Format does not matter, what matters is the logic followed).

Inactive
Ayham I.
Answer:

First, Lets create the Square Class: public Square(double w, double l){ width = w; length = l; } public Square(){ width = 0; length = 0; } public void setLength(double length){ this.length = length;} public void setWidth(double width){ this.width = width;} public double getLength(){ return length;} public double getWidth(){ return width; } public double getArea(){ return length*width; } } Then create the SquareTester Class: public class SquareTester{ public static void main(String[] args){ Square s = new Square(); s.setLength(2); s.setWidth(5); System.out.print(s.getArea()); } }

Subject: Computer Science (General)

TutorMe
Question:

What is the hexadecimal number of the binary number 1011010?

Inactive
Ayham I.
Answer:

As a note, here is a number presentation of Hexadecimal numbers, where regular decimal numbers' equivalence is given in Hexadecimal: 0 = 0 1 = 1 2 = 2 3 = 3 4 = 4 5 = 5 6 = 6 7 = 7 8 = 8 9 = 9 10 = A 11 = B 12 = C 13 = D 14 = E 15 = F First, let us convert the binary number to a decimal number: In order to do so, we have to multiply each number (in order) starting from the right by multiplying the first number by 1, then multiplying next terms by 2 times more than number used for the previous term: 1 0 1 1 0 1 0 * * * * * * * 64 32 16 8 4 2 1 Finally, add the total of each product: = 64 + 16 + 8 + 2 = 90 then we convert the decimal number to hexadecimal number by finding the remainder of each number found (quotient) from 90 after dividing it by 16, until the last product found is Zero. 90 / 16 = 5 and remainder of 10 5 / 16 = 0 and remainder of 5 All what is left to do is writing down the remainders from bottom to top in their hexadecimal format: 5 = 5 and 10 = A, therefor, 5A is the Hexadecimal version of 1011010

Subject: Calculus

TutorMe
Question:

What is the position rate of change of a car, in feet, given it's position(P) function after a period (t) of 3 seconds? P(t) = 5t^2 + 3t + 5

Inactive
Ayham I.
Answer:

Rate of change(R.O.C) is in another word, DERIVATIVE. To find the derivative of a function, use this formula: ______________ | x^n ===> nx^(n-1) | --------------------------- Example: x^2 => 2x AND: x^1 => 1 AND: 5 => 0 In which a derived function is denoted with a ('). So P(T) will become P'(T) OR dP/dT (Explained below) ----------------------------------------------- We are trying to calculate RATE OF CHANGE of an object's SPEED, OVER a certain TIME. Speed of Car = Positioning difference / Time difference Shortly: Speed = dP/dt First, we have to find the function's rate of change, which can be find through the formula given above, by applying on EVERY TERM of the original function; P(t) = 5t^2 + 3t + 5 Which becomes: P '(t) = 10t + 3 ==> After Differentiation (Finding rate of change formula) then we only need to plug in the time given in the question (3 seconds) for every t, since t represents time: P '(3) = 10(3) + 3 = 33 feet per second. OR dP/dt = 10(3) + 3 = 33 feet per second Lastly, get a different car cause this one is slow!

Contact tutor

Send a message explaining your
needs and Ayham will reply soon.
Contact Ayham

Request lesson

Ready now? Request a lesson.
Start Lesson

FAQs

What is a lesson?
A lesson is virtual lesson space on our platform where you and a tutor can communicate. You'll have the option to communicate using video/audio as well as text chat. You can also upload documents, edit papers in real time and use our cutting-edge virtual whiteboard.
How do I begin a lesson?
If the tutor is currently online, you can click the "Start Lesson" button above. If they are offline, you can always send them a message to schedule a lesson.
Who are TutorMe tutors?
Many of our tutors are current college students or recent graduates of top-tier universities like MIT, Harvard and USC. TutorMe has thousands of top-quality tutors available to work with you.