Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use VB.NET to develop a college tuition projection calculator as a Windows Form application. TextBox: Let the user specify the current college tuition amount (p).

Use VB.NET to develop a college tuition projection calculator as a Windows Form application.

image text in transcribedimage text in transcribedimage text in transcribed

TextBox: Let the user specify the current college tuition amount (p). TextBox: Let the user specify the college name. ComboBox: Let the user specify the resident status, which can be in-state or out- of-state. TextBox: Let the user specify the number of years (n) that tuition projection will be made. ListBox: Is used to display the projected tuition over each of the next n years. Button: Calculates the projected tuition over the next n years and display the result in the ListBox above, Button: Clear all user inputs on the user interface. Label controls should be used whenever they are needed. The properties of the above controls should be specified as follows. Control TextBox TextBox ComboBox TextBox ListBox Button Property Name Name Name Name Name Name Text Name Text Text AcceptButton CancelButton Value Starting Tuition TextBox CollegeNameTextBox ResidentComboBox YearTextBox DisplayListBox CalculateButton Calculate ClearButton Clear | Tuition Calculator CalculateButton ClearButton Button Form (2) (10 pts) MenuStrip and ToolStrip: Add a MenuStrip and a ToolStrip control (shown below) to the user interface. You need to specify the accelerator, shortcut keys, and icons as indicated in the screenshots below. The "New Entry" toolstripbutton will clear the user entries when clicked. You can get the icon files from the SilkIcon Library (the icon file to be used are new.png, calculator.png, and door_out.png). O o x x Tuition Calculator Function Help O x - Tuition Calculator Function Help Calculate Ctrl+C Clear Entries Exit Tuition Calculator O Function Help About New Entry Calculate Exit OOP Programming (70 points): (1) (20 pts) Define a Tuition class. This class defines in-state tuition projection. You should have two properties: College Name and Current Tuition, in this class. A constructor is needed for property instantiation and initialization. The class has a function that calculates the projected tuition amount using the following formula: Projected tuition in the nth year = current tuition * (1+0.05) (2) (10 pts) Define an OutOfState Tuition class, which is a sub class of the Tuition class. Out-of-state tuitions have a higher cost inflation rate. Therefore, the function for calculating the projected out-of-state tuition must be re-defined. The projected tuition is calculated as: Projected out-of-state tuition in the nth year = current tuition * (1+0. (3) (10 pts) When the user clicks Calculate Button, your program should use the function defined either in Tuition or OutState Tuition class depending upon the selected value in Resident ComboBox, Apply polymorphism to this procedure. Display the college name along with the projected tuition amounts for the next n years in DisplaylistBox. You must use a loop structure for displaying the projected tuition amounts (use one or more vbTab as the separator between values). Depending on the selection status of ResidentCheckBox, the output should be either in-state tuitions or out-of-state tuitions. An example output is given below for an in-state tuition estimate with the starting tuition as $12,000: College: Year Projected Tuition 12600.00 13230.00 13891.50 14586.08 15315.38 The output for the out-of-state-tuition with the same starting tuition would be: Year Projected Tuition 13200.00 14520.00 3 15972.00 17569.20 19326.12 (4) (10 pts) In the procedure defined for (3), if the user input value in Tuition TextBox is not a numeric value, your program is going to throw an exception when the value is converted into a number. Use a Try...Catch statement to handle the exception without interrupting the program execution. (5) (10 pts) In the procedure defined for (3), use the data validation technique to check if the number of years (n) specified by the user is greater than or equal to 0. (6) (5 pts The ClearButton does the following after it is clicked: Clear the contents of all the TextBox controls Clear the items in DisplayListBox (7) (5 pts) You also need to make sure that, when the user clicks a ToolStripMenuItem or a ToolStripButton, the corresponding function be executed. Use one event handler to respond to multiple events that are related. When the user clicks the About ToolStripMenuItem, display the name of your application along with any information that you think necessary (version number, author, year, etc.)

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

Recommended Textbook for

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

Does it exceed two pages in length?

Answered: 1 week ago

Question

Does it avoid typos and grammatical errors?

Answered: 1 week ago