This is the second part of my C1002 Term 1 2008 assignment, this post will contain my answer, while you can see the questions in the previous post.
Answer for question 1
JSP diagram:

Function List:
1. Initialize variables
2. Get the first letter
3. Capture the weight of the letter
4. Calculate postage value
5. Scan the stamp’s value
6. Send letter
7. Increase “paid letter” counter
8. Reject letter
9. Increase “underpaid letter” counter
10. Print output for current letter
11. Get next letter
12. Output Summary
13. End Program
Condition List:
1. C1 = Letter box not empty
2. C2 = Stamp value >= Postage value
Answer for question 2
Decision table for the college:
a) List of Conditions:
i. Student age less than 21.
Click here to read the full post…
admin Education, IDIC, Informatics C1002, IDIC, Informatics, Program Design
Hi! This post is about my C1002 Program Design assignment that I take in Term 1 2008, this post will contain the assignment’s questions only, I will post the answer in the next post.
These are the questions:
Question 1
Scenario
The Post-office in country X still using a manual way of weighting the letters and check whether the senders have paid enough postage. The government wants the mail service to be computerized so the mailing process will be faster.
The proposed system is as follows:
All letters will go through machine A to capture the weight, and the computer will automatically calculate the postage value that the sender supposes to pay. Machine B will scan the value of the stamp and compare the value of the stamp with the required postage value. If the postage value is greater then the stamp’s value, a message will display on the screen so the operator can take action accordingly. This program will display number of letters that the postage are underpaid and paid correctly in the summary before the program end.
Click here to read the full post…
admin Education, IDIC, Informatics C1002, IDIC, Informatics, Program Design