Define the simpleinterestloan class which is a sub class

Assignment Help C/C++ Programming
Reference no: EM131097755

Homework: Object Oriented Programming, Windows Controls, and Exception Handling

This is an individual homework assignment. Use VB.NET to develop a loan calculator as a Windows Form application.

1. User interface Design:

(1) The basic user interface requires the following Windows Form controls:

TextBox: Let the user specify a loan amount (p),
TextBox: Let the user specify an annual interest rate (r) as a percentage,
TextBox: Let the user specify the number of years for the calculation period (n),
ListBox: Is used to display the monthly payment (A) and remaining balance (B) after payment for each month over n years
CheckBox: Is used to Indicate if the loan is a simple interest loan or a compound interest loan
Button: Calculates the monthly payment and remaining balance after each
payment for each month over n years and display the result in the ListBox, 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 Property Value

(2) 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 incons as indicated in the screenshots below.

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).

OOP Programming:

(1) Define the Loan class. This class assumes that the amount of loan rises because the interest is added to the principle amount at the end of each time period. This class has two properties: loan amount (p), annual interest rate r (0 <r < 1), and loan length in years (n>=0). A constructor is needed for instantiation and initialization. The class has a function that calculates the monthly payment:

A = (r / 12) * p
      1- (1+ r / 12)
      -(n*12)

The class has another function that takes the number of months (N) as the input and returns the ending balance (B) at the end of month N:

(2) Define the SimpleInterestLoan class, which is a sub class of the Loan class.

This class assumes that the interest will not be added to the principle amount. This class has two overridden functions for calculating the monthly payment (A) and ending balance (B) at the end of month N, respectively:

(3) When the user enters a non-numeric value in any of the three TextBox controls, 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.

(4) Use the data validation technique to check if the annual interest rate percentage specified by the user is greater than or equal to 0 and less than or equal to 1.

(5) When the user clicks CalculateButton, your program should use the function defined either in Loan or SimpleInterestLoan class depending upon the status of LoanTypeCheckBox. Apply polymorphism to this programming task.

Display the amortization result showing the monthly payment and the end of balance for every month over the period of n years. The amortization result should be displayed in the ListBox in the following format (use vbTab as the separator between values):

(6) The ClearButton does the following after it is clicked:

• Clear the contents of all the TextBox controls
• Clear the items in DisplayListBox

(7) 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.)

Instructions for Homework Submission: Compress your entire VB project folder into a .zip file using Windows. To compress your VB project in Windows, you need to browse to the folder level where you can see your top project folder (one level above the folder where the .sln file is stored). Next, right click on the project folder and select "Send to" à "Compressed(zipped) Folder". You will see a file created with the extension ".zip".

Upload the zip file to our Scholar site.

Reference no: EM131097755

Questions Cloud

Contractor should pay to purchase the crane : A contractor must choose between buying or renting a crane for the duration of a 5 year construction project. The contractor uses an MARR of 8%. At the end of the project, the crane can be sold for 21% of its initial cost. The cost to operate and mai..
Regulatory environment of global business : Locate an article from a reputable source specifically related to the readings for this week or the previous week.The article may not be an article that we discussed in class nor an article about a case discussed in the textbook. Write a review (..
Noexperience or skills in this competency area : BEFORE YOU START consider where you want to be professionally 5 years from when you graduate, and the specific nature and requirements of the type of job or area of specialization you envision yourself having - for example Project Manager of a maj..
Debate concerning repeal of the provision : In the debate concerning repeal of the provision allowing capital gains on assets passed on to one’s heirs to escape taxation, some have reasoned that death is not voluntary, and therefore one should not tax capital gains upon death. Evaluate and exp..
Define the simpleinterestloan class which is a sub class : Define the SimpleInterestLoan class, which is a sub class of the Loan class. When the user enters a non-numeric value in any of the three TextBox controls, your program is going to throw an exception when the value is converted into a number.
Bow many software instructions will execute : Compare the time required to execute the following computation using a custom circuit versus using a microprocessor.
Short-run and long-run impacts of decrease in money supply : Use the IS-LM/ AD-AS model to show the short-run and long-run impacts of a decrease in money supply (M) on the real interest rate (r), real GDP (Y), the unemployment rate, investment spending (I), consumption spending (C), the nominal money supply (M..
According to the general rule of thumb : An industry consists of six firms with annual sales of $300, $500, $400, $700, $600, and $600. What is the HHI? According to the general rule of thumb, the HHI of this industry implies that the market structure is ________ (competitive, noncompetitiv..
Competitor charges for substitute product : You are given the following information: (a) Your firm’s demand equation is defined as follows: Q_d=100-4P_A+2P_s+.1I, where Q_d is the quantity demanded for your product, P_A is the price that you charge for your product, P_s is the price that a com..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Complete the payroll program with following driver object

complete the payroll program with the following driver objects.

  Given the following test scores and grade equivalents

Given the following test scores and grade equivalents, write a function which is passed a score, and returns a letter grade based on the score entered. A number less than 0 or greater than 100 is invalid.

  Illustrate example from ansi c programming language

Illustrate example from ANSI C programming language, without using nested procedures, to show the fact that "assignment-by-sharing in conjunction with quasi-dynamic object binding

  Write an application that can hold five integers in an array

Write an application that can hold five integers in an array. Display the integers fromfirst to last, and then display the integers from last to first.

  Compute and return the celsius temperature

Write a program that takes as input a depth (in kilometers) inside the earth and displays the temperature at this depth in degrees Celsius and in degrees Fahrenheit. The relevant formula is

  Execution goes back to the caller by default

The execution goes back to the caller by default, when the last statement in a method is reached? Assuming that no return statement is used, do you agree with the preceding statement?

  Define the inheritance and polymorphism

Inheritance and Polymorphism

  Rewrite the overloaded input operator for the ratio class

Rewrite the overloaded input operator for the Ratio class so that, instead of prompting for the numerator and denominator, it reads a fraction type as "22/7".

  Design and code a new function that accepts as parameters

design and code a new function that accepts as parameters the gross pay by value and the federal tax state tax local

  Advanced programming techniques

Joe has joined FIT technologies recently as a software developer. He is a fresher and does not know advanced programming techniques. To include him in the team that is developing the application, Damien, the Project Manager, decides to conduct a t..

  Program that stores information for date-time objects

Derive class WeekDay from class DateTime such that WeekDay::display() will display local date time using values from the parameters and the corresponding weekday.

  Organize a lot of data under a single structure

Arrays make it possible to organize a lot of data under a single structure. For example, an application that tracks daily sales revenue at a retail store could use the month and day of the month as indexes to the array to store and to retrieve sales ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd