# Tutor profile: Brady L.

## Questions

### Subject: Computer Science (General)

How would one go about designing a security system that checks for a correct password typed in before allowing the user to gain access?

The programmer should first create a while loop that encompasses the entire program that does not allow the user to exit the program until some variable, let's say x, equals one. The program starts by setting x = 0. The programmer should then declare a string (or array of chars depending on the language) and prompt the user to input a password, using an 'if' statement to compare the input to the string. If the password is correct, set x = 1, otherwise output that the password is incorrect and have x remain equal to zero.

### Subject: Calculus

If a car merging onto a highway and its distance traveled is equal to the function y = 2x^(3/2), find the car's acceleration.

First the velocity must be found by finding the derivative of 2x^(3/2) which can be calculated by bringing down the 3/2 and multiplying it by the coefficient 2, giving you 3x^(3/2). Then you have to subtract one from the exponent to complete the derivative, giving you 3x^(1/2). But since we want acceleration we need to take the derivative a second time using the same process, multiplying 1/2 by the coefficient 3 and subtracting 1 from the exponent, resulting in (3/2)x^(-1/2).

### Subject: Physics

Fill in the blanks in the following sentence: In a typical electrical circuit, _______ divides in series and _______ divides in parallel.

Answer: Voltage, current.

## Contact tutor

needs and Brady will reply soon.