Enable contrast version

# Tutor profile: Anand R.

Anand R.
Tutor for eight years, Summer Research Fellow at Indian Academy of Sciences, Intern at IIT Madras

## Questions

### Subject:Python Programming

TutorMe
Question:

Create a program that stores Employee objects in a dictionary. Use the employee ID number as the key. The program should present a menu that lets the user perform the following actions:  Look up an employee in the dictionary  Add a new employee to the dictionary  Change an existing employee’s name, department, and job title in the dictionary  Delete an employee from the dictionary  Quit the program

Anand R.

### Subject:Trigonometry

TutorMe
Question:

Prove that {\displaystyle \sin[\arctan(x)]={\frac {x}{\sqrt {1+x^{2}}}}} \sin[\arctan(x)]=\frac{x}{\sqrt{1+x^2}}

Anand R.

We start from {\displaystyle \sin ^{2}\theta +\cos ^{2}\theta =1} \sin ^{2}\theta +\cos ^{2}\theta =1 Then we divide this equation by {\displaystyle \cos ^{2}\theta } \cos ^{2}\theta {\displaystyle \cos ^{2}\theta ={\frac {1}{\tan ^{2}\theta +1}}} \cos ^{2}\theta ={\frac {1}{\tan ^{2}\theta +1}} Then use the substitution {\displaystyle \theta =\arctan(x)} \theta =\arctan(x), also use the Pythagorean trigonometric identity: {\displaystyle 1-\sin ^{2}[\arctan(x)]={\frac {1}{\tan ^{2}[\arctan(x)]+1}}} 1-\sin ^{2}[\arctan(x)]={\frac {1}{\tan ^{2}[\arctan(x)]+1}} Then we use the identity {\displaystyle \tan[\arctan(x)]\equiv x} \tan[\arctan(x)]\equiv x {\displaystyle \sin[\arctan(x)]={\frac {x}{\sqrt {x^{2}+1}}}}

### Subject:C++ Programming

TutorMe
Question:

Problems in computations include mathematical precision (i.e. double, float, long, integer) especially when using mixed mode arithmetic. An aspect of using IF statements is to control what appears to the user. Applications must also provide the data in a “useable” and readable format for the user hence formatting for any currency. This application will: 1. Allow the user to enter a dollar amount (i.e. $37.21,$563.44, \$.077) 2. Determine the number of: a. Twenty dollar bills (2,000 pennies) b. Ten dollar bills (1,000 pennies) c. Five dollar bills (500 pennies) d. One dollar bills (100 pennies) e. Fifty cent pieces (50 pennies) f. Quarters (25 pennies) g. Dimes (10 pennies) h. Nickels (5 pennies) i. Pennies (1 penny) for that dollar amount

Anand R.

#include<iostream> //Standard I/O class #include<conio.h> int main() //calling the main function { using namespace std; float dollar,pennies; //defining the variables for dollars and pennies cout<<"\n Enter the amount in dollars: "; cin>>dollar;//Getting the a dollar amount from the user pennies=(dollar*100);//Converting dollar into pennies int penny;//defining a new variable to store the converted integral value of pennies penny=pennies;//Type casting pennies of float type into int cout<<" \n"<<dollar<<" dollars is "<<penny<<" pennies"; //displaying the amount in pennies int rem;//defining a dummy variable to show different values if(penny>0)// { rem=penny/2000;//acquiring the number of 20 dollar bills penny=penny%2000;//getting the remainder amount after taking the number of dollar bills if(rem!=0)//Checking whether 20 dollar bills are required cout<<" \n"<<rem<<" 20 dollar bills ";//displaying the number of 20 dollar bills if(penny!=0)//Checking whether the remainder amount is zero { rem=penny/1000;//acquiring the number of 10 dollar bills penny=penny%1000;//getting the remainder amount after taking the number of dollar bills if(rem!=0)//Checking whether 10 dollar bills are required cout<<" \n"<<rem<<" 10 dollar bills ";//displaying the number of 10 dollar bills } // The above process is repeated for different denominations in the following lines of code if(penny!=0) { rem=penny/500; penny=penny%500; if(rem!=0) cout<<" \n"<<rem<<" 5 dollar bills "; } if(penny!=0) { rem=penny/100; penny=penny%100; if(rem!=0) cout<<" \n"<<rem<<" 1 dollar bills "; } if(penny!=0) { rem=penny/50; penny=penny%50; if(rem!=0) cout<<"\n"<<rem<<" 50 cent pieces "; } if(penny!=0) { rem=penny/25; penny=penny%25; if(rem!=0) cout<<"\n"<<rem<<" quarters "; } if(penny!=0) { rem=penny/10; penny=penny%10; if(rem!=0) cout<<"\n"<<rem<<" dimes "; } if(penny!=0) { rem=penny/5; penny=penny%5; if(rem!=0) cout<<"\n"<<rem<<" nickels "; } if(penny!=0) { rem=penny/1; penny=penny%1; if(rem!=0) cout<<"\n"<<rem<<" pennies "; } } else//If the entered value is 0 dollars cout<<" \n You have entered 0 dollars!";//Displaying the error getch(); return 0; }

## 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.
BEST IN CLASS SINCE 2015
TutorMe homepage