Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions