HW2 VB 'Net Loan Payment Due in class Friday 22 November - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

HW2 VB 'Net Loan Payment Due in class Friday 22 November

Description:

HW2. VB .Net Loan Payment. Due in class Friday 22 November. HW2. IS3001. George Zolla ... 1. Write a VB .Net project that calculates the monthly payment of a loan. ... – PowerPoint PPT presentation

Number of Views:96
Avg rating:3.0/5.0
Slides: 6
Provided by: carlo316
Category:
Tags: class | due | friday | hw2 | loan | net | november | payment

less

Transcript and Presenter's Notes

Title: HW2 VB 'Net Loan Payment Due in class Friday 22 November


1
HW2VB .Net Loan PaymentDue in class Friday 22
November
HW2
IS3001 George Zolla
Naval Postgraduate School
Monterey, CA
2
HW2 Requirements
  • 1. Write a VB .Net project that calculates the
    monthly payment of a loan. The program will allow
    the user to input values for the amount of the
    loan, the annual interest rate, and the length of
    the loan. The program will perform the
    calculation and then display the results to the
    user.

3
HW2 Requirements
  • 2. Use the conventions recommended in the text
    and the guidance and requirements contained in
    the Project Evaluation Sheet including project
    submission instructions. Plus
  • Use meaningful names for controls, variables and
    the form
  • Pay particular attention to the data types used.
  • Ensure the Tab Sequence mirrors the user input
    sequence.
  • Use Default and Cancel buttons
  • Use colors and images to enhance the visual
    effectiveness of the project.

4
HW2 Requirements
  • 3. The Payment function on pages 557 558 may be
    used to calculate the monthly payment
  • Pmt(dblMonthlyRate, dblMonths, dblAmount)
  • 4. You must convert the user's textbox input from
    text to the data type double
  • CDbl(ExpressiontoConvert)  'Convert to Double
  • 5. Format the results with the FormatCurrency
    function found on page 114.

5
HW2 Requirements
  • 6. The following formulas may be used in your
    solution
  • dblMonthlyRate CDbl(txtRate.Text) /1200
  • dblMonths CDbl(txtYears.Text) 12
  • dblAmount CDbl(txtAmount.Text)
  • lblMonthlyPayment.Text - Pmt(dblMonthlyRate,
    dblMonths, dblAmount)
  • Note I divided the Monthly rate by "1200" vice
    "12 to allow the user to enter a whole number
    (i.e 7.0 vice .07). You need a minus sign before
    the Pmt function to make a positive answer.
Write a Comment
User Comments (0)
About PowerShow.com