I am very new to the programming world i was given an assignment and i've attempted the question but somehow i don't think its quite right can somebody please guide me as to how i can fix it or at least tips as to what i can do to write better algorithms/psuedocodes for my other assignments.
this is what i have
If RESULT is <=5000 then * 8%;
display RESULT 1
IF remaining balance is <=80000 THEN * 3%;
ELSE
IF remaining balance is >80000 THEN * 2.5%;
DISPLAY REMAINING BALANCE
THEN SUM RESULT 1 AND REMAINING BALANCE;
END IF
END IF
END IF
This is the original question.
An architect's fee is calculated as a percentage of the cost of a building. the fee is made up as follows:
8% of the 1st $5000.00 cost of a building and
3% on the remainder if the remainder is less than or equal to $80000.00
2.5% on the remainder if the remainder is more than $80000.00
design an algorithm/psuedocode that will accept the cost of a building and calculate and display the architect's fee
think there is a problem in you pseudocode logic, if RESULT is greater than 50000 nothing happens:
If RESULT is <=5000 then * 8%;
display RESULT 1
IF remaining balance is <=80000 THEN * 3%;
ELSE
IF remaining balance is >80000 THEN * 2.5%;
DISPLAY REMAINING BALANCE
THEN SUM RESULT 1 AND REMAINING BALANCE;
END IF
END IF
END IF