Question: I am using C++ to create a credit card simulator. Please note that I have already completed the simulator, and just need help cleaning and

I am using C++ to create a credit card simulator. Please note that I have already completed the simulator, and just need help cleaning and fixing up some of the code so that it matches the sample run below. The items in bold are to be the user input. For example, after entering N for new account in my program, the program ends, and must be re-run and press E and input the given account number to display the account information. It should be that when N is input, the account information is displayed with a menu that the user can interact with like the sample run below. The file of my project folder is found below. Please make sure that the code is fixed to where when you compile and run it, the program runs EXACTLY like the sample output below. Again, my project is complete, and needs only a few minutes of touching up, this will not take a lot of your time.

////////////////////////////////////////////////////////////////////////////////

Welcome to the Credit Card simulator!

Existing account or new (E/N): N

Your account number will be: 999999999

Your Credit Limit: $1000.00

Account: 99999999

Outstanding Balance: 0.00

Credit Limit: 1000

Available Credit: 1000

Transaction Options:

0.Quit

1.New Charge

2.Payment

3.Credit Increase Request

4.Card History

Choice: 1

Charge Amount: 100.00

Charge Description: Gas

Account: 99999999

Outstanding Balance: 100.00

Credit Limit: 1000.00

Available Credit: 900.00

Transaction Options:

0.Quit

1.New Charge

2.Payment

3.Credit Increase Request

4.Card History

Choice: 2

Payment Amount: 25

Account: 99999999

Outstanding Balance: 75.00

Credit Limit: 1000

Available Credit: 925.00

Transaction Options:

0.Quit

1.New Charge

2.Payment

3.Credit Increase Request

4.Card History

Choice: 3

Requested Increase: 250

Sorry, but your credit increase cannot be granted at this time.

Account: 99999999

Outstanding Balance: 75.00

Credit Limit: 1000

Available Credit: 925.00

Transaction Options:

0.Quit

1.New Charge

2.Payment

3.Credit Increase Request

4.Card History

Choice: 4

Transaction Log History:

Account 99999999 created, 8/1/2008 10:00:00am

Charge: 100, Gas, 8/1/2008 10:05:00am

Payment: 25, 8/5/2008 4:00:00pm

Limit Increase: 250, declined, 8/6/2008 8:00:00

Account: 99999999

Outstanding Balance: 75.47

Credit Limit: 1000

Available Credit: 924.53

Transaction Options:

0.Quit

1.New Charge

2.Payment

3.Credit Increase Request

4.Card History

Choice: 0

Thanks for using the credit card simulator!

///////////////////////////////////////////////////////////////////////////////////////////////////////////////

Here is the the file that contains the already written program.

https://1drv.ms/u/s!AjLswKvo9tl3hCtNF60fP4hyXjbC

Again, just fix up small errors so that the program runs just like the sample run above. Of course, the account number given will be random and not 99999999.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!