cyndi2all
Aug 23, 2007, 04:51 PM
I need help creating the following program in C++:

Need a program to decide who is eligible for a credit card. I need to write a program to help decide who gets the credit cards. Use a function Get_Credit_Limit() to promt to ask for the customer's present credit limit. The function should return the credit limit. Use a function Get_Acc_Bal() to promt the user for the customers account balance. The function should return the accoutn balance.

Use the function Determine_Action() whose arguments are the customer's credit limit and account balance. Determine_Action() should return 0, 1, or 2 according to the following.
If a customer has a credit limit of at least \$2000 and an account balance of \$500 or less, the customer will receive a credit card. In this case the function should return a 2.

If a customer has a credit limit of at least \$2000 and an account balance of more than \$500, the customer will receive a letter stating after the customers balance falls below \$500 they will receive a credit card. In this case the function should return a 1.

If a customer does not fall into either of these categories, no action will be taken. In this case, the function should return a 0.

Use a function Display_Action() to display the action that will be taken for the customer. Pass to Display_Action() the value that Determine_Action() returned. Based on this value, Display_Action() should display a message that shows the action that should be taken: issue card, send a letter, or no action.

moncoeurdor
Sep 21, 2007, 11:56 PM
This sounds like a class room assignment.

Take advice from someone who knows. I went to a vocational high school and majored in interior house wiring. When the class went out to do electrical work, I hung around and watched others work. After graduating I was unable to hold on to a job. So I went to college and corrected my errors. Don't waste your years in school by having others do your homework for you.

If you are a Computer Science student, you must learn to design and debug software. Without those skills, you will not hold on to any job.

If you submit source code and ask specific questions, more people will respond to your messages.