7 kyu
Surface Area and Volume of a Trapezoidal Prism
179pshp
Description:
Write a function that returns the total surface area and volume of a trapezioidal prism as an array [area, volume], rounded to the nearest integer. A trapezoidal prism is shape that has trapezium (trapezoid) cross sections in one direction and rectangular cross sections in the other directions.
a = top width of trapezium cross section, b = base width of trapezium cross section, h = height of cross section (distance from a to b), l = length of prism.
Diagram of a trapeziodal prism:
https://d138zd1ktt9iqe.cloudfront.net/media/seo_landing_files/trapezoidal-prism-1622086836.png
Trapezium cross section:
a
__________
/ \ |
/ \ |h
/______________\ |
b
The tapazium cross section has one line of symmetry:
____|____
/ | \
/ | \
/______|______\
|
Fundamentals
Algorithms
Mathematics
Algebra
Geometry
Similar Kata:
Stats:
Created | Oct 14, 2016 |
Published | Oct 17, 2016 |
Warriors Trained | 472 |
Total Skips | 12 |
Total Code Submissions | 1170 |
Total Times Completed | 179 |
JavaScript Completions | 179 |
Total Stars | 7 |
% of votes with a positive feedback rating | 91% of 68 |
Total "Very Satisfied" Votes | 57 |
Total "Somewhat Satisfied" Votes | 10 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 9 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |