Need help solving this, guys.

Background

Your assignment this time is to build an interactive program that allows telemarketers to solicit people in a file for credit cards. The program will open up a text file filled with potential customers and display processed data to the screen in a way that the telemarketer can use it. The program will then give them choices to continue the sales call and finally, will save output to a file for future credit card processing.

Functionality

The program should do the following:

•Read a customer status, name and phone number from a file called potentials.txt

oA customer has a preferred status if the field contains an ‘X’. If it contains anything else, they are not preferred.

•Display the name, phone number and the available interest rate for that customer so that the telemarketer can read it, call the customer and offer them a credit card

oPreferred customers get 7.9%, everybody else gets 12.9%

•Display a menu offering the following options:

oEnter ‘A’ to Accept the card
For this option –
Ask for an address to send the card to
Accept the address
Print a thank you message for telemarketer to read telling the Customer to expect the card soon, happy charging

oEnter ‘T’ to accept and Transfer a balance
For this option-
If preferred – tell them there is no transfer limit
•Accept any dollar amount entered
If not preferred – tell them they can transfer up to 00
•Accept any dollar amount entered as long as it isn’t greater than 1000 (keep asking until you get something less than 1000)
Ask for an address to send the card to
Accept the address
Print thank you message for telemarketer to read telling the customer to expect the card soon, happy charging

oEnter ‘D’ to Decline the card
For this option
If preferred – tempt them with cash back rewards and give them a special phone number to call for a better card
If not preferred – tell them thanks anyhow

•Write the results to a file called confirmed.txt

oThis file should contain the following:
Name
Address
Status flag (X or whatever)
If the account is new (A) or transfer (T)
Any dollar amount they may be transferring.

If the customer declines, they should not appear in the confirmed file

Functionality

You must implement at least three functions other than the main function.

Text file called potentials.txt reads:

———————————–
X Joe Scholtz 437-4798
A Tim Wade 768-7658
X Sara Jobs 326-7857
! Jaynce Bee 354-8678
————————————–

Technorati Tags: , , , , , , , , , ,

Like this post? Subscribe to my RSS feed and get loads more!