Question: In this problem, we are interested in cuboids, that is a 3 - dimensional rectangular box represented by its width, length and height. Create a
In this problem, we are interested in cuboids, that is a dimensional rectangular box represented by its width, length and height. Create a Cuboid struct to represent a dimensional rectangular box and implement the following functions:
ScaleCuboid method that takes a positive integer a and cuboid by reference as input and scales the three dimensions of the cuboid by a ie:
o width times a height times a and length times a
ComputeArea method that takes a Cuboid as input and returns the outside surface area of the cuboid expressed as follows:
o height times widthheight times lengthwidth times length
ComputeVolume method that takes a Cuboid as input and returns the volume of the cuboid expressed as follows: height times width times length
isCube method that takes a Cuboid as input and returns true if the cuboid is a cube; ie: height width length.
Note: Dont forget to add #include to use bool
Write a C program main function to test your struct and functions
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
