Assignment 2


Home


Due Date: 4pm, Friday 2-May-08 (week 9)
Marks: 12%

Problem Description

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.

Example Run

The following is an example run with all input and output shown.


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 ***


Requirements

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.

Sections Required

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).

1. Title Page

This should contain:

2. Statement of Authorship

This must contain:

The work will not be marked without a signed statement of authorship.

3. Table of Contents

4. Defining Diagram

5. Pseudo Code

6. Data Dictionary

7. Desk Check

8. Visual Basic Code

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."

9. Test Plan & Runs

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 Plan

Test Set 1: Examples provided
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 Set 2: Incorrect purchase cost
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 Set 3: Yes/No validation
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

Guide to Marks

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).