Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote