Assignments / Exercises on Process Specifications
Assignments / Exercises on Process Specifications
1. Write a decision tree to solve the logic
of the problem below:
A student has a problem to decide on where to
spend his dinner. Somehow it depends on the following conditions:
If his bank
account’s shows that he got > RM 1000; he will go to HYATT hotel special
dinner.
If his money is around RM500 and RM1000, then he
shall have his dinner at ARENA, JUSCO
If his money is less than RM500 then he has his dinner
at ‘justanyWarung’
Any other cases, he
decides not to have dinner at all.
2. A
student has to decide whether to drop SCD2613 or continue. This is the
condition:
If
attendance less than 80% then he better drop the class because he cannot sit
for final exam meaning that chances to get an A is zero. Else he may continue
but chances to get grade A is not 100% unless he scored in the final exam and
did all the homework and project correctly.
Draw the
decision tree or table.
3. A computer
supplies firm called True Disk has set up accounts for countless businesses in
KL. True Disk sends out invoices monthly and will give discounts if payments
are made within 10 days. The discounting policy is as follows: If the amount of
the order for computer supplies is greater than $1,000, subtract 4 percent for
the order; if the amount is between $500 and $1,000, subtract
a 2-percent discount; if the amount is less than $500, do not apply any
discount. All orders made via the Web automatically receive an extra 5-percent
discount. Any special order (computer furniture, for example) is exempt from
all discounting. Develop a decision
table / tree for True Disk discounting decisions, for which the condition
alternatives are limited to Y and N.
4. A
particular flower decides whether to open its petals in the following ways.
Draw a decision table to represent the logic of the case below:
If it is
daytime and it is not raining it will open its petals
In all other
circumstances it will close its petals