6 kyu
Missing Angle
241 of 754user5196477
Description:
Below is a right-angled triangle:
|\
| \
| \
| \
o | \ h
| \
| θ \
|_______\
a
Your challange is to write a function (missingAngle
in C/C#, missing_angle
in Ruby), that calculates the angle θ in degrees to the nearest integer. You will be given three arguments representing each side: o, h and a. One of the arguments equals zero. Use the length of the two other sides to calculate θ. You will not be expected to handle any erronous data in your solution.
Algorithms
Mathematics
Geometry
Similar Kata:
Stats:
Created | Dec 2, 2016 |
Published | Dec 2, 2016 |
Warriors Trained | 1493 |
Total Skips | 80 |
Total Code Submissions | 2879 |
Total Times Completed | 754 |
C# Completions | 98 |
C Completions | 269 |
Ruby Completions | 43 |
Crystal Completions | 6 |
CoffeeScript Completions | 13 |
Python Completions | 241 |
JavaScript Completions | 152 |
Total Stars | 39 |
% of votes with a positive feedback rating | 91% of 226 |
Total "Very Satisfied" Votes | 192 |
Total "Somewhat Satisfied" Votes | 28 |
Total "Not Satisfied" Votes | 6 |
Total Rank Assessments | 13 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |