Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need help making the following program: Create a VB.NET program in MS Visual Studio to compute and display future values. The form 1. The

I need help making the following program:

Create a VB.NET program in MS Visual Studio to compute and display future values.

The form

1. The program has one form, it has no control box

2. The size is (620, 500), the FormBorderStyle is FixedSingle. The start position is center screen, and the windows state is normal.

The Menu

3. The form has three menu items on the top: File, Periods_Per_Year, and Help.

4. Menu File has two menu items, Compute and Exit, with a separate bar between. The shortcut key is Ctrl-C and Ctrl-X, respectively, and the access key is indicated by the underlined character

5. Menu PeriodsPerYear has four menu items: 1, 4, 12, and 365, representing the number of periods per year the interest will be compounded. The short cut key is Ctrl-Y (Yearly), Ctrl-Q (Quarterly), Ctrl-M (Monthly), and Ctrl-D (Daily), respectively.

6. Menu item 12 (Monthly) is checked when the form loads, since interest is normally computed once a month.

7. Menu Help has one menu item About, whose short cut key is Ctrl-A.

The Future Value ListBox

8. The future values are displayed in a listbox in currency format with font Courier New of size 14 pt. The display should be similar to that of the sample program. You can use String.PadLeft method to align the values.

9. The size of the listbox is (370, 193) and it's centered horizontally on the form.

10. There is a label above the listbox with text "Future Values." The font of the label is Sans Serif of size 14 pt, with style Bold and Underlined.

11. Your program should be able to handle rather large amounts such as $1,000,000 over 30 years with rate 20%.

The Input TextBoxes and ComboBox

12. There is a textbox for the user to enter the principal.

13. The principal textbox accepts digits, backspace, and at most one decimal point.

14. It will beep and reject any illegal character, including a second decimal point.

15. There is a DropDown ComboBox for the user to select or enter the annual rate.

16. The combobox lists rates from 5% to 12% with an increment of 1%, and the rate of 7% is displayed in the beginning, i.e., in the textbox.

17. The user can also type in a rate, in percentage format.

18. The combobox accepts digits and backspace.

19. It will beep and reject any illegal character other than %.

20. There are two textboxes for the user to enter start year and end year.

21. The textboxes accept digits and backspace.

22. They will beep and reject any illegal characters.

23. There is a label above each input textbox and the combobox.

Menu items events

24. Clicking on menu item Exit will terminate the program.

25. Clicking on menu item Compute will check the input values, and only when the inputs are valid the future values will be computed and displayed.

26. To compute the future values, a principal must be entered; a rate must be selected or entered, a start year and an end year must be entered, the end year must be at least as large as the start year, and the end year must not be larger than 99. Note: the start year may be of any value between 0 and 99.

27. You should use the VB function FV to compute the future values.

28. The inputs are validated in the order specified above. When an invalid input value is found, the validating process will stop, a message box is displayed, and the focus will go to the control with the invalid value (textbox for End Year when end year is smaller than the start year).

29. The menu items of PeriodsPerYear are used to set the number of periods per year the interest will be compounded. (Hint: click on any one of the menu items should set the value of a class variable such as periods_per_year to the menu items corresponding value, then check itself and uncheck all other items, so that there is only one item checked at anytime).

30. Clicking on the About menu item will display a message box that displays the following message on three lines:

Your name

Department of Computer Science and Software Engineering

The title should be "Future Values Program" and, of course, use your own full name.

31 All the menu events can also be triggered by the access keys and the short cut keys.

32. When a different value is selected for Annual Interest Rate, the future values should be re-computed and displayed if no input value is missing. But no message box is displayed if some input is missing.

Other Requirements

33. Tab order: txtPrincipal, cboRate, txtStart, txtEnd, and lstFutureValues.

34. You should create the following procedure on your form:

' Called when to compute and display the future values Private Sub computeAndDisplayFutureValues()

' to be completed End Sub

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

detailed concept on Passive attacks and active attacks

Answered: 1 week ago