Calculate the cost photo frame based the size the photo
The University of the South Pacific
Problem Specification
A local picture framing shop accepts orders for two types of frames – regular and fancy. The frames are available in white and can be ordered in some colors the customer can choose from.
0.5" | Yp | 1" |
|
---|
Xp
The cost of a regular frame is $0.15 per inch and the cost of a fancy frame is $0.25 inch. Table 1 shows the costs for the required add-ons for each type of frame. Table 2 shows the cost of each optional add-on associated with regular and fancy style frames that the customer can choose from.
Table 1: Required add-ons
• |
|
0.10 per square inch |
---|---|---|
• |
|
0.15 per square inch |
• |
|
|
---|---|---|
• | Darker colors (Black, Blue, Brown, Dark Cyan, Crimson) | |
• | 5% per square inch | |
---|---|---|
• | 10% per square inch | |
Table 4: Discount on optional additional add-ons
• | ||
---|---|---|
• | Darker colors (Black, Blue, Brown, Dark Cyan, Crimson) | |
|
Finally if the customer wishes to have the picture frame shipped then the standard shipping cost is based on the frame area as given in Table 5.
Specific program constraint:
• Photo dimensions will always be in whole numbers but photos with either length or width of less than or equal to 3 inches are not framed by the shop. Dimensions cannot be zero.
3.How to Submit:
Archive or compress all your VB project files using
archiving software such as WinZip or
WinRAR. Name your archive file using the following file
naming convention: Assignment1_YourID, where YourID is
your student Id number e.g. Assignment1_S01234561. Make sure
you include all the files created by Visual Basic IDE into your archive.
Then submit this archive file in Moodle Assignment 1 Drop box by
5pm Wednesday 6th September (Fiji Standard Time). You
cannot “undo” your submissions in Moodle, so be sure that you submit the
assignment only when you’re totally satisfied. We will not accept
“corrected versions” submitted through other channels, nor will we
accept late assignments.
4.Partial Credit:
Even if your program doesn’t work perfectly, you’ll receive credit for
each part you get to work.