Question: I need your help on the assignment for Application development class, using C# to create application An Internet service provider offers there subscription packages to

I need your help on the assignment for Application development class, using C# to create application

An Internet service provider offers there subscription packages to its customers, plus a discount for nonprofit organizations: a) Package A: 10 hours of access for $9.95 per month. Additional hours are $2.00 per hour.

b) Package B: 20 hours of access for $14.95 per month. Additional hours are $1.00 per hour.

c) Package C: Unlimited access for $19.95 per month. d) Nonprofit Organizations: The service provider gives all nonprofit organizations a 20% discount on all packages. The user should select the package the customer has purchased (from a set of radio buttons) and enter the number of hours used. A check box captioned NonProfit Organization should all appear on the form. The application should calculate and display the total amount due. If the user selects the Nonprofit Organization checkbox, a 20% discount should be deducted from the final charges. The following represents the requirements for this project: 1. The project should be named Project2

2. When saving the project, uncheck the Create directory for solution checkbox.

3. The form (file and object name) should be renamed from Form1 to frmMain

4. The form layout should be very similar to the following in terms of control alignment, sizes, spelling, meaningful labels and an overall professional look: 5. When the application is run have the form display in the middle of the screen

6. Set the Form Accept and Cancel Button properties

7. The RadioButton controls should be within a GroupBox. The Nonprofit Organization CheckBox control should be within a GroupBox and it should be contained within the Select a Subscription Package GroupBox.

8. The label which will hold the calculated Total Amount Due should have a BorderStyle property set to Fixed3D

9. Each button control should have an access key defined

10. Ensure the proper tab order is set as follows: a. The form should start with Package A selected (this also applies after the Clear button is clicked) b. The tab order after that is CheckBoxTextBoxCalculate buttonClear ButtonExit button

11. Each time the application is run the Package A Subscription Package should be selected by default.

12. Once you are done with the final design of the form layout then lock all the controls. 13. In the code add the following comment lines at the top of the file. Replace the <> with the appropriate information. //Project: Project #2 //Programmer: 14. The maximum and minimum number of hours, purchase price of each package, hours of access provided by each package, rate of each additional hours for each package and available discounts should all be declared using constants (you can use double as the data type for all constants and variables). No hard coding of numbers should be used anywhere in your code except when defining the constants.

15. The Calculate button should use the Package selected, appropriate discount and hours used to calculate the total amount due. The calculated value should be displayed as currency with two decimal places.

16. The Clear button should reset all the controls that can be changed by the user or labels that are used for displaying output. It should then set the focus back to the Package A RadioButton control.

17. The Exit button should cause the application to end

18. For this assignment, the following requirements apply to the Hours Used input control:

a. The minimum hours can be 0

b. The maximum hours can be 744

c. Can be real numbers (i.e. with decimals)

19. When non-numeric hours are entered the program should display the following error MessageBox. Note: Test the program by using abc for the hours used.

20. When hours are outside the permissible values the program should display the following error MessageBox: Note: The minimum and maximum hours permissible should not be hard coded in the message string. Test the program by using 744.1 for the hours used. 21. Create a method called DisplayErrorMessage that accepts a string value and then displays the appropriate Messagebox as shown above. The method should also set the focus back to hours used and highlight the text in the textbox.

22. Use the following data to determine if the application is calculating properly: Package and Hours The Monthly Charge Package A, 5 hours, nonprofit $7.96 Package A, 25 hours $39.95 Package A, 25.3 hours, nonprofit $32.44 Package A, 700.66 hours $1,391.27 Package B, 10 hours, nonprofit $11.96 Package B, 25 hours $19.95 Package B, 25.3 hours, nonprofit $16.20 Package B, 700.66 hours $695.61 Package C, 18 hours, nonprofit $15.96 Package C, 25 hours $19.95 Package C, 25.3 hours, nonprofit $15.96 Package C, 700.66 hours $19.95 Package A, abc, nonprofit Invalid Error Message Displayed Package A, 744.1, nonprofit Invalid Error Message Displayed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!