The test consists of three tasks located in directories app, physics and
ping-pong. Fork the repository, add/edit files in the directories in order to
complete the test. The completed test must be submitted as a GitHub pull request
to prog-1/test-1-1 repository.
-
Explain what the program in the directory
appdoes. Add your explanations as comments in the source code. Feel free to add any comments that you think are necessary. -
Write a program in the directory
physics. The user provides three numbers: inductance of three inductorsL1L2andL3. The program must calculate and print the total inductance of three inductors connected in parallel. The total inductanceLcan be found using the formula1/L = 1/L1 + 1/L2 + 1/L3.Example:
The program finds the capacity of three inductors connected in parallel. Enter inductance of three inductors: 1 2 3 The total inductance of the three inductors connected in parallel is 0.5454545454545454. -
Write a program in the directory
ping-pongthat prints the following for a provided number:Pingif the number is NOT divisible by 2;Pongif the number is NOT divisible by 5;PingPongif the number is NOT divisible by both 2 and 5;- The number itself otherwise.
Example 1:
The program prints Ping, Pong or a number. Enter a number: 12 PongExample 2:
The program pints Ping, Pong or a numbers. Enter a number: 10 10