Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Tutorial 2

Jamie

‘j’ ‘a’ ‘m’ ‘I’ ‘e’ ‘\0’

1. A computer supplies called True Disk has set up accounts for countless businesses in the Klang
Valley. 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 the computer supplies is greater than $1000, subtract 4% for the
order; if the amount is between $500 and $1000, subtract a 2% discount, if the amount is less
than $500, do not apply any discount.

scanf("%*[^\n]");

2. PCK Limited wishes to employ a systems analyst to undertake a major project. The decision will
be based on the following:

If a person is suitably qualified, has experience of more than 5 years and is aged over 30, he will
be called for an interview. If he is less than 30 years old but qualified and has the necessary
experience, he will also be called for an interview. If the candidate is qualified and is aged over 30
but lack of experience, his record will be kept on file. If the person is qualified but is neither
experienced nor over 30 years old, he will then be put on file.

If he does not have the necessary qualification but the candidate is experienced and is over 30
years old, he will be called for an interview. If he has the relevant experience but not the
qualification and is under-aged, his record will be kept on file. If he does not have the necessary
qualification or experience but is aged over 30 his application will be rejected. He will also be
rejected if he does not meet all conditions.

You might also like