Question: function TotalPoolCost = calculateTotalPoolCost ( pool _ Shape, L , W , S , D ) pool _ volume = calculatePoolVolume ( pool _ Shape,

function TotalPoolCost = calculateTotalPoolCost(pool_Shape, L, W, S, D)
pool_volume = calculatePoolVolume(pool_Shape, L, W, S, D);
numOfcement = pool_volume /9;
cementPrice =30; % Consider making this a parameter or updating dynamically
cementcost = numOfcement * cementPrice;
% Assuming determiningTypeOfTiles updates the global variable TotalTilesPrice
determiningTypeOfTiles();
cementNtiles = TotalTilesPrice + cementcost;
workerpayment = cementNtiles *2;
TotalPoolCost = workerpayment + cementNtiles;
disp(['The total cost of constructing the pool is: RM', num2str(TotalPoolCost)]);
end

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!