# Tutor profile: Lakshay G.

## Questions

### Subject: Geometry

$$△ABC$$ is an isosceles triangle with $$AB=AC$$ and $$AD$$ as the median to base $$BC$$. If $$∠ABC=35^o$$, then what is $$∠BAD$$?

$$∠ABC=35^o$$ and $$AB = AC$$ As $$AD$$ is median to the base $$BC$$, it bisects the side $$BC$$ so that, $$BD=DC$$. In two triangles, $$△ABD$$ and $$△ACD$$ with common side $$AD$$ all three pairs of corresponding sides are equal to each other and so the triangles are congruent. This gives us, $$∠ADB=∠ADC=90^o$$. And so the $$∠BAD=180^o−35^o−90^o=55^o$$.

### Subject: Basic Math

In the formula for compound interest $$A=P(1+r)^t$$ $$r$$ is interest rate annually, $$t$$ is time in years. Above formula is valid when interest is compounded once in a year. Using the above formula develop a formula if interest is to be compounded $$n$$ times a year.

If interest is compounded $$n$$ times a year then modified interest rate will be $$r/n$$ and modified time will be $$nt$$ So formula will be $$A=P(1+r/n)^{nt}$$ where, $$t$$ = Number of years amount is invested or borrowed $$r$$= Annual interest rate at which amount is invested or borrowed $$n$$= Number of times interest is compounded in a year

### Subject: C Programming

********************************** #include <stdio.h> int main() { //code int a=32768; printf("%d",a); return 0; } *********************************** In the above code I have one problem, it prints -32768 insted of 32768. There is an error with storing 32768 in an int data type. So how can I store 32768 in an int data type?

Int data type is capable of storing values between -32768 to 32767. But we are trying to store 32768 which is out of range of int data type so it will create overflow and instead of 32768 it will be stoing -32768. So to avoid this problem we have two ways 1> We can use unsigned int if we are not interested in negative integers. 2> Or we can simply use long int which can easily accommodate our integer.

## Contact tutor

needs and Lakshay will reply soon.