Unformatted text preview:

CS 405 – Introduction to Applications Programming with Visual Basic Assignment #4 Due 3/1/12 For this assignment you will create a Visual Basic project containing a single form. Name the project/solution file A4-FName, and the form frmISP. When you have completed the project, zip the top-level folder (with all its contents) and attach the resulting file to an email sent to [email protected] (put 405-A4 in the Subject: line, and change the extension to .zipzip if necessary). Make sure you include your Test Plan document in your project before you do the zip (I suggest putting it in the top-level folder, next to the .sln file). The assignment is officially due by midnight on the date indicated above right. The project is designed to allow the user to select an Internet Service Provider (ISP) service package and calculate their monthly bill based on their ISP usage and package selection. The ISP provider has 3 packages available, as well as a 20% discount for non-profit organizations. 1. Package A: 10 hours of access for $9.95 per month and any additional hours are $2.00 per hour. 2. Package B: 20 hours of access for $14.95 per month and any additional hours are $1.00 per hour. 3. Package C: Unlimited access for $19.95 per month. Your program should present a user interface similar to the one below. All controls and variables should have appropriate names, and your code should be properly formatted (indented and spaced) and commented (see Coding Specifications handout). The form should contain a set of radio buttons to select the desired ISP package, a check box to indicate if they are a non-profit organization and allow input for the number of hours they use their ISP per month. The form should not allow the user to minimize, maximize, or resize. You must declare constants for the minimum (1) and maximum (744) hours per month they can use their ISP. You must declare variables to store data, and they must be of the narrowest scope possible (module-level variables are OK if multiple event procedures need to access their data). You should not accept inappropriate entries from the user (empty, non-numeric, outside the acceptable range) – instead you should request a new, appropriate value. However, the prior entry, whether acceptable or not, should remain in the text box, and be selected/highlighted. The Exit button on the form should cause your program to stop running. The Clear button should reset the form to the default when the form is first displayed. In addition to the specific requirements itemized above, you should make sure that the tab index order is functional, focus is appropriate, and that the overall interface is as user-friendly as possible. The Enter button should be the Default (Calculate) button, any presentation of numbers should be right-aligned, and there should be Access keys as indicated. Also be sure that the user is not able to change the value for the Total Amount Due. Be certain to test your program thoroughly before turning it in to make sure everything works properly. To facilitate this, you must develop a formal Test Plan to use in your own testing, and hand it in as part of the assignment. The Test Plan should follow the Table of Sample Inputs with Expected Outputs format described in class.Extra Credit (10pts): You must have the first part functioning to attempt extra credit. Add a comparison functionality that will display any potential savings for the customer based on their package selection and ISP usage. The updated form should be as displayed below. Add a check box for Display Potential Savings, that when checked will display the amount Package A customers would save if they selected Package B or C, or the amount Package B customers would save if they selected Package C. If there is no savings, the message should indicate that


View Full Document

UNH CS 405 - Assignment 4

Documents in this Course
Load more
Download Assignment 4
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Assignment 4 and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Assignment 4 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?