Professional Documents
Culture Documents
Write the analysis, pseudo code, draw the flowchart and develop a complete program
where it calculates the amount to pay for two books which the price for the book is
RM25.50.
The discount given for the books is 5%. Example of the output is:
Quantity: 2
Analysis
Objective:to calculate the amount to pay for two books
Input: price,quantity
Process: totalprice = price * quantity
Discountprice: totalprice*0.95
Output:
Pseudocode
1. start
2. input height & base
3. calculate area = height * base * 0.5
4. print area
5. end
Flowchart
start
Height,base
area
end