Click to like/follow us on:
As a sales manager of a certain company, write an algorithm that will request for the length, width and unit cost per square of a plot, the algorithm will calculate and display the cost of the plot.

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

SHARE THIS POST WITH YOUR FRIENDS...::

0 comments:

Leave a Reply

All Posts

Access all posts here!

Categories

Unordered List

Sample Text

Lists of Jobs in the United States

List of Courses & Outlines For UNN Students

Popular Posts

Like us on Facebook

Recent Posts

    Text Widget