Premise:
Just like example one, after requested for the length and width, the algorithm will also request for the unit cost
per square of the plot, it is this unit cost together with the area
that will be use to calculate the cost of the plot as indicated in step
2.2.
Solution:
Major Steps
1. Request Data
2. Calculate cost
3. Display cost
Stepwise Refinement
1. Request Data
1.1 Request length
1.2 Request width
1.3 Request unit cost
2. Calculate cost
2.1 Area = length * width
2.2 cost = Area * unit cost
3. Display cost
1. Request Data
2. Calculate cost
3. Display cost
Stepwise Refinement
1. Request Data
1.1 Request length
1.2 Request width
1.3 Request unit cost
2. Calculate cost
2.1 Area = length * width
2.2 cost = Area * unit cost
3. Display cost
SHARE THIS POST WITH YOUR FRIENDS...::
Tweet
0 comments:
Leave a Reply