Engine displacement is the total swept volume of all cylinders. It is determined by bore (cylinder diameter), stroke (piston travel), and the number of cylinders. Displacement is typically quoted in litres or cubic centimetres for consumer engines.

Given bore B (m), stroke S (m), and number of cylinders N, compute total displacement V_d (m³).
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers7
Suggested Problems
-
7 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Pradheepa, thanks for these problems and this problem group. I suggest not putting the formula in the test suite. Instead, put the numerical answer. That way solvers cannot simply copy your code.