Harvey Wallbanger Norman offer a choice of 1, 2, 3 or 4 year interest free repayment on purchases which cost $600 or more. The purchase cost can be repaid in a lump sum at the end of the interest free period or by regular monthly repayments. Cautious buyers use the regular monthly repayment option as interest of 23% per annum is charged if the full cost of the purchase has not been repaid by the end of the interest free period.
You are to use Access Basic to develop a product which is easy to use and maintain and which allows a user to enter the cost of a purchase and which displays the approximate regular monthly repayments for the 1, 2, 3 and 4 year interest free options. The product should allow the user to enter more than one purchase cost.
Run *** Welcome to the Monthly Repayment Calculator *** Do you wish to enter the cost of a purchase (Yes or No) ? Y Your response must be Yes or No Do you wish to enter the cost of a purchase (Yes or No) ? Yes What is the cost of your purchase ($600 or more) $ ? 500 ERROR: Interest free terms are only offered on a purchase of $600 or more Do you wish to enter the cost of a purchase (Yes or No) ? Yes What is the cost of your purchase ($600 or more) $ ? 600 ******** Monthly Repayments on $600 ********* 1 Year 2 Year 3 Year 4 Year 50 25 17 12 Do you wish to enter the cost of a purchase (Yes or No) ? OK Your response must be Yes or No Do you wish to enter the cost of a purchase (Yes or No) ? Yes What is the cost of your purchase ($600 or more) $ ? 1000 ******** Monthly Repayments on $1000 ********* 1 Year 2 Year 3 Year 4 Year 83 42 28 21 Do you wish to enter the cost of a purchase (Yes or No) ? No *** Thanks for using the Monthly Repayment Calculator ***
Assume that the purchase cost will be in whole dollars.
Display the monthly repayment amounts to the nearest dollar.
Use a Boolean variable and a While loop to validate the Yes or No response to the question "Do you wish to enter the cost of a purchase (Yes or No) ?"
Use a For loop to calculate the monthly repayments for the 4 different interest free options.
The assignment should be word processed with each page numbered. Suggested left margin 2.5cm, right margin a minimum of 1cm.
The following sections are required, (in this order).
This should contain:
This must contain:
The work will not be marked without a signed statement of authorship.
The code should:
Copy the code from Access and paste it into your word processed document.
The code listing should:
You must include a statement indicating whether the code listed successfully compiled (no syntax errors).
Example statement: "The code listed below compiled successfully." or "The code listed below did NOT compile."
Your runs must be made using the program listed in the previous section. You must include a statement indicating that the program runs are for your program as listed in the previous section.
Example statement: "The program runs below are the output of the program listed in the previous section."
| Test Number | Reasons | Inputs | Expected Results | Actual Results | Correct? |
|---|---|---|---|---|---|
| 1 | Example Run | Purchase cost = $600 | Year 1 = 50, Year 2 = 25, Year 3 = 17, Year 4 = 12 |
||
| 2 | Example Run | Purchase Cost = $750 | |||
| 3 | Example Run | Purchase Cost = $4,850 |
| Test Number | Reasons | Inputs | Expected Results | Actual Results | Correct? |
|---|---|---|---|---|---|
| 4 | Below minimum purchase cost | Purchase Cost = $500 | |||
| 5 | Below minimum purchase cost | Purchase Cost = $0 | |||
| 6 | Incorrect data type | Purchase cost = A |
| Test Number | Reasons | Inputs | Expected Results | Actual Results | Correct? |
|---|---|---|---|---|---|
| 7 | Correct response | Yes | What is the cost of your purchase ($600 or more) ? | ||
| 8 | Correct response | No | *** Thanks for using the Monthly Repayment Calculator *** | ||
| 9 | Incorrect response | OK | Your response must be Yes or No | ||
| 10 | Incorrect data type | 1 | Run time error |
The following is a guide to the marks assigned to each section of the assignment.
| Section Name | Percentage of Marks |
|---|---|
| Presentation | 5% |
| Defining Diagram | 10% |
| Pseudo Code | 40% |
| Data Dictionary | 5% |
| Desk Check | 10% |
| Access Basic Code | 20% |
| Test Plan & Runs | 10% |
Written by Chris Cope (and Tim Whitfort).