Hello This quesion is related to System Analysis & Design Please don\'t answer w
ID: 3712174 • Letter: H
Question
Hello
This quesion is related to System Analysis & Design
Please don't answer with your handwriting
thank you
An online shop about to give free vouchers to its customers with the following specification:
· A customer will deserve a 10 S.R. voucher for each 100 S.R. of their spent once the order reaches 500 S.R. or more.
· These vouchers have ID and valid for one full year
· Only one voucher can be used at the time.
You are asked to help this shop in writing two pseudocodes: one for giving vouchers and one for using a voucher.
Explanation / Answer
1) Giving vouchers
If the customer orders more than 500 S.R then
Give voucher worth 10 S.R for each 100 S.R
else
No voucher
2) Using a voucher
If the customer orders more than 500 S.R then
Give voucher worth 10 S.R for each 100 S.R
If Voucher is used before one year then
If VoucherId is not used and first voucher to be used then
Give benefit of voucher
else
Voucher is not applicable
If
else
No voucher
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.