Display "="*100
Display "{'Labor Cost
Estimator':^100}"
Display "="*100
Declare string task_name and
repeat
Declare integer duration_days,
rate_per_day and num_workers
while True
Enter task_name
Enter repeat
Enter duration_days
Enter rate_per_day
Enter num_workers
Calculate total_cost = duration_days*
rate_per_day*num_workers
Display "{'Labor
Cost Estimate':-
^100}"
Display "Task:
{task_name}"
Display "Total labor
cost: ₱{total_cost}"
Do you want
to add
Input Task
another task?
Name
Display “\
nExiting Labor
Cost Estimator.”
Declare string
foundation_type
Declare float
concrete_cost_per_cubic_
meter, rebar_cost_per_kg,
formwork_cost_per_squar
e_meter,
main_rebar_weight and
formwork_area
Calculate concrete_cost =
foundation_volume *
concrete_cost_per_cubic_meter
Calculate rebar_cost =
main_rebar_weight * rebar_cost_per_kg
Calculate formwork_cost =
formwork_area *
formwork_cost_per_square_meter
Declare float foundation_volume,
concrete_cost_per_cubic_meter,
main_rebar_weight, rebar_cost_per_kg,
formwork_area,
formwork_cost_per_square_meter
Display “Enter the value of
foundation_volume:”
Input foundation_volume
Display “Enter the value of
concrete_cost_per_cubic_m
eter:”
Input
concrete_cost_per_cubic_m
eter
Display
“main_rebar_weight:”
Input main_rebar_weight
Display “rebar_cost_per_kg:”
Input rebar_cost_per_kg
Display “formwork_area:”
Input formwork_area
Display
“formwork_cost_per_square
_meter:”
Input
formwork_cost_per_square_
meter
Call
compute_structure_cost(foundation
_volume,
concrete_cost_per_cubic_meter,
main_rebar_weight,
rebar_cost_per_kg, formwork_area,
formwork_cost_per_square_meter)
Display
f”total_foundation_cost
{compute_structure_cost(fou
ndation_volume,
concrete_cost_per_cubic_m
eter, main_rebar_weight,
rebar_cost_per_kg,
formwork_area,
formwork_cost_per_square_
meter)}”
Display \n{'Foundation
Estimation Summary':-
^100}"
Display "Foundation
Type:
{foundation_type}"
Display "Foundation
Dimensions:
{foundation_length} m (L)
× {foundation_width} m
(W) × {foundation_depth}
m (D)"
Display "Concrete
Volume:
{foundation_volume}
cubic meters"
Display "Rebar Weight:
{main_rebar_weight}
kg"
Display "Formwork
Area: {formwork_area}
square meters"
Display "\n{'Foundation
Material Cost':-^100}"
Declare float concrete_cost, rebar_cost,
formwork_cost, total_foundation_cost
Display “Enter the value
of concrete_cost:”
Input concrete_cost
Display “Enter the value
of rebar_cost:”
Input rebar_cost
Display “Enter the value
of formwork_cost:”
Input formwork cost
Display “Enter the value
of total_foundation_cost:”
Input
total_foundation_cost
Call
print_cost_summary(concrete
_cost, rebar_cost,
formwork_cost,
total_foundation_cost)
Display "\n{'Total
Foundation Cost':-
^100}"
Display "Total
Foundation Cost: ₱
{total_foundation_cost:.
2f}"
Declare float
stirrup_spacing,
concrete_cost_per_cubic_
meter, rebar_cost_per_kg,
formwork_cost_per_squar
e_meter,
main_rebar_weight and
formwork_area
Calculate concrete_cost =
column_volume *
concrete_cost_per_cubic_meter
Calculate rebar_cost =
main_rebar_weight * rebar_cost_per_kg
Calculate formwork_cost =
formwork_area *
formwork_cost_per_square_meter
Declare float column_volume,
concrete_cost_per_cubic_meter,
main_rebar_weight, rebar_cost_per_kg,
formwork_area,
formwork_cost_per_square_meter
Display “Enter the value of
column_volume:”
Input column_volume
Display “Enter the value of
concrete_cost_per_cubic_m
eter:”
Input
concrete_cost_per_cubic_m
eter
Display
“main_rebar_weight:”
Input main_rebar_weight
Display “rebar_cost_per_kg:”
Input rebar_cost_per_kg
Display “formwork_area:”
Input formwork_area
Display
“formwork_cost_per_square
_meter:”
Input
formwork_cost_per_square_
meter
Call
compute_structure_cost(column_vo
lume,
concrete_cost_per_cubic_meter,
main_rebar_weight,
rebar_cost_per_kg, formwork_area,
formwork_cost_per_square_meter)
Display f”total_column_cost
{compute_structure_cost(col
umn_volume,
concrete_cost_per_cubic_m
eter, main_rebar_weight,
rebar_cost_per_kg,
formwork_area,
formwork_cost_per_square_
meter)}”
Display "\n{'Column
Estimation Summary':-
^100}"
Display "Column
Dimensions:
{column_width} m (W) ×
{column_depth} m (D) ×
{column_height} m (H)")
Display "Concrete
Volume:
{column_volume} cubic
meters"
Display "Stirrup
Spacing:
{stirrup_spacing}
meters"
Display "Rebar Weight:
{main_rebar_weight}
kg"
Display "Formwork
Area: {formwork_area}
square meters"
Display "\n{'Column
Material Cost':-^100}"
Declare float concrete_cost, rebar_cost,
formwork_cost, total_column_cost
Display “Enter the value
of concrete_cost:”
Input concrete_cost
Display “Enter the value
of rebar_cost:”
Input rebar_cost
Display “Enter the value
of formwork_cost:”
Input formwork cost
Display “Enter the value
of total_column_cost:”
Input total_column_cost
Call
print_cost_summary(concrete
_cost, rebar_cost,
formwork_cost,
total_column_cost)
Display "\n{'Total
Column Cost':-^100}"
Display "Total Column
Cost: ₱
{total_column_cost:.2f}"
compute_structure_cost(foundation_
volume,
concrete_cost_per_cubic_meter,
main_rebar_weight,
rebar_cost_per_kg, formwork_area,
formwork_cost_per_square_meter)
SET concrete_total = foundation volume
* concrete_cost_per_cubic_meter
SET rebar_total = main_rebar_weight *
rebar_cost_per_kg
SET formwork_total = formwork_area *
formwork_cost_per_square_meter
SET total_foundation_cost =
concrete_total + rebar_total +
formwork_total
Return
total_foundation_cost
START
Call
print_cost_summary(concrete
_cost, rebar_cost,
formwork_cost,
total_foundation_cost)
Input concrete_cost
Input rebar_cost
Input formwork_cost
Input
total_foundation_cost
Input "Concrete Cost:
{concrete_cost}"
Input "Rebar Cost:
{rebar_cost}"
Input "Formwork Cost:
{formwork_cost}"
Input "Total
Foundation Cost:
{total_foundation_cost
}"
END
compute_structure_cost(column_vol
ume,
concrete_cost_per_cubic_meter,
main_rebar_weight,
rebar_cost_per_kg, formwork_area,
formwork_cost_per_square_meter)
SET concrete_total = column volume *
concrete_cost_per_cubic_meter
SET rebar_total = main_rebar_weight *
rebar_cost_per_kg
SET formwork_total = formwork_area *
formwork_cost_per_square_meter
SET total_column_cost = concrete_total
+ rebar_total + formwork_total
Return total_column_cost
START
Call
print_cost_summary(concrete
_cost, rebar_cost,
formwork_cost,
total_foundation_cost)
Input concrete_cost
Input rebar_cost
Input formwork_cost
Input
total_column_cost
Input "Concrete Cost:
{concrete_cost}"
Input "Rebar Cost:
{rebar_cost}"
Input "Formwork Cost:
{formwork_cost}"
Input "Total Column
Cost:
{total_column_cost}"
END