Bank Loans

This is a discussion on Bank Loans within the C++ Programming forums, part of the General Programming Boards category; //Chap4, pg 146, Terrance Coleman //prb04-5.cpp // This program helps a bank's vice-president to approve or disapprove loans. // The ...

  1. #1
    Registered User
    Join Date
    Mar 2009
    Posts
    1

    Cool Bank Loans

    //Chap4, pg 146, Terrance Coleman
    //prb04-5.cpp
    // This program helps a bank's vice-president to approve or disapprove loans.
    // The program should prompt the user for the annual income of the applicant
    // the amount of the loan, and the number of years of the loan. The program
    // should display an approval or rejection message.

    #include<iostream>
    #include<iomanip>

    using namespace std;

    int main()
    {
    int Display_Approval;
    double Annual_Income;
    double Loan_Amt;
    int Loan_Years;

    cout << setprecision(2)
    << setiosflags(ios::fixed)
    << setiosflags(ios::showpoint);

    do
    {
    cout << "Display_Approval << approved << endl;
    if ( ("Loan_Amt < 5,000") && ("Annual_Income <= 30,000") )
    if ( ("Loan_Amt >= 5,000) || < 20,000") && ("Annual_Income <= 75,000") );

    cout << endl << endl;
    cout << "Display_Approval << disapproved << endl;

    return 0;
    }

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    21,914
    You should ask a question instead of just dumping code, and the code that you post should be well indented and within [code][/code] bbcode tags.
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    2,501
    Quote Originally Posted by laserlight View Post
    You should ask a question instead of just dumping code, and the code that you post should be well indented and within [code][/code] bbcode tags.
    I agree.... Also, please explain what your code does line by line. There are a few parts where I don't understand what you're trying to do.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Bank Account Problem
    By JayBlay77 in forum C++ Programming
    Replies: 1
    Last Post: 03-19-2009, 08:41 AM
  2. helppp in bank databse
    By neha007 in forum C++ Programming
    Replies: 1
    Last Post: 06-02-2007, 09:43 AM
  3. student loans for leisurely usage
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-02-2003, 01:45 PM
  4. My graphics library
    By stupid_mutt in forum C Programming
    Replies: 3
    Last Post: 11-26-2001, 05:05 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21