Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Company wants to automate the loan eligibility process (real time) based on customer detail provided while filling online application form. These details are Gender, Marital Status, Education, Number of Dependents, Income, Date_of_Birth and Loan Amount. To automate this process, they have given a problem to identify the customers segments, those are eligible for loan amount so that they can specifically target these customers. The company has decided to take the first 10 customer loan applications. As a group of programmers of the company you have been tasked to build program to automate the process USING C++ programming . 1. The program will calculate the age of the applicant, Only the applicants whose age is greater than 18 will be consider for the application process. 2. The program must allow the applicant to fill-in the application details, name of the applicant, Gender, Marital Status, Education, Number of Dependents and the Income ,the program keeps this data in an array. 3. The company has decided to give a loan to the applicants who meet the following requirements.  The applicant income salary is greater than M5000 ,  Education can be either undergraduate, post-graduate or PhD.  If the number of dependents are less than 10 and the salary is greater than M10 000 and the marital status is married, the applicant has the high chances of securing the loan.  However if the number of dependents is more than the expected minimum number 10, the loan won’t be approved ,the rejected applicants will be kept on the on the list. 4. The program should also keep track of all the applicants with the highest income, and their loan amount is more than M20 000. 5. The program must print all the details for the applicants who qualified for a loan and for those who failed to meet the minimum requirements. 6. The program must print the details of the applicants who qualified for a loan,and for those with the highest loan amount placed on top of the list.

What I have tried:

I am studying c++ please help with this program
Posted
Updated 25-Nov-22 13:30pm

While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for us to do it all for you.

So we need you to do the work, and we will help you when you get stuck. That doesn't mean we will give you a step by step solution you can hand in!
Start by explaining where you are at the moment, and what the next step in the process is. Then tell us what you have tried to get that next step working, and what happened when you did.

If you are having problems getting started at all, then this may help: How to Write Code to Solve a Problem, A Beginner's Guide[^]
 
Share this answer
 
I wish i could show a screenshot.
I am currently stuck where i am supposed to write something like :

If(education="PHD" ||"Post-graduate"||"undergraduate");
{ Cout<<"approved";

So i am not sure how it's supposed to be written it keeps giving errors
 
Share this answer
 
Comments
jeron1 25-Nov-22 17:53pm    
Please just update your original post and not create a new 'Solution'. Post the code that you have written, along with a specific question. The 'if' statement you've posted is wrong for multiple reasons. Read your book and at least try to emulate the syntax.
You cannot specify multiple possible values in a conditional expression like that.

For every conditional expression, you MUST specify what to compare, the operation, and what to compare it to.

C
if (education == "PHD" || education == "Post-graduate" || education == "undergraduate")

Also, the equals operator in C/C++ is '==', not '='. A single '=' means an assignment.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900