Problem 2239. Avalaible area: wall construction
You need to build a wall to enclose a certain area. Calculate the available area after you build the wall.
Assumptions
- Wall could consist of multiple layers of material. example: a wall of 2 materials: rock of 1 meter thickness and wood of 0.5 meter thickness. The total thickness of the wall 1.5 meters.
- x and y: the dimensions of the area before the wall is build. example: x=5m,y=4m. Total area 20m^2.
Example
Area of dimensions x=5m,y=5m and wall of 3 materials with thicknesses: 0.2m,0.1m,1m . Avalaible area after the wall is build : 5.76m^2
>> AvailableArea(5,5,0.2,0.1,1) >> ans=5.76
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers64
Suggested Problems
-
Increment a number, given its digits
643 Solvers
-
Project Euler: Problem 2, Sum of even Fibonacci
2254 Solvers
-
543 Solvers
-
Generate a vector like 1,2,2,3,3,3,4,4,4,4
10779 Solvers
-
Sum of first n positive integers
577 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!