Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Project # 2 CHECKING ACCOUNT The objective of this project is to provide experie

ID: 3605732 • Letter: P

Question

Project # 2 CHECKING ACCOUNT The objective of this project is to provide experience working with the standard input and expressions. OPENING BALANCE: 5,000.00 DATE DESCRIPTION MOUNT Modify the C++ source you created in Project # 1 to incorporate the following requirements 10/4/2017 Titan Bookstore -$15.00 4, 995.00 1. Declare three new variables to store checking account transaction information: one 2. Declare three new variables to store savings account transaction information: one for 3. Request the checking account balance from the user and store this value in the 4. Request the checking account transaction date from the user and store this value in 5. Request the checking account transaction description from the user and store this 6. Request the checking account transaction amount from the user and store this value 7. Request the savings account balance from the user and store this value in the 8. Request the savings account transaction date from the user and store this value in 9. Request the savings account transaction description from the user and store this 10. Request the savings account transaction amount from the user and store this value 11. Using the data that was assigned to the variables in the previous steps along with for the date, one for the description, and one for the amount. the date, one for the description, and one for the amount variable you previously created the variable you previously created value in the variable you previously created in the variable you previously created variable you previously created the variable you previously created value in the variable you previously created in the variable you previously created. balance calculation, print to the standard out a transaction report for EACH account, Ensure your program is adequately commented. At the beginning of your program use a multiline comment and provide your name, date, and a brief description of the program. Use appropriate comments for your variable declarations. Use appropriate comments for your user input. Use appropriate comments for your output Compile and run your program to ensure there are no errors and it meets the requirements of this project. Submit your source code directly into TITANium by 10/11 at 5:30. I will review your program source code and execution with you during the lab on 10/11 and will provide you with a success code to add to your TITANium submission. formatted as follows:

Explanation / Answer

#include <iostream>

using namespace std;

typedef struct date_t

{

int year;

int month;

int date;

}date_from_user;

int main() {

double checking_account_balance = 5000.00;

double saving_account_balance = 5000.00;

double total_bank_balance = checking_account_balance + saving_account_balance;

double checking_account_amount;

string checking_amount_desc;

date_from_user checking_account_transaction_date;

double saving_account_amount;

string saving_account_desc;

date_from_user saving_account_transaction_date;

char choice;

cout<< " a. Enter checking account transaction";

cout<<" b. Enter saving account transaction";

cout<<" c. Quit";

/* below logic do following operations based on user

input.

1. if user enters 'a',Reads checking account balance,checking account transcation date,checing account description and checking account amount from user and prints to standard output as transaction report.

2. if user enters 'b',Reads the saving account balance, saving account transaction date,the saving account description,saving account amount from user and print them to

standard output as the savings account transaction report.

3. if user enters 'c',Simply exit the program with out doing any input/output operations.*/

switch(choice)

{

case 'a':

{

cout<< " Enter checking account balance";

cin>> checking_account_balance;

cout<< " Enter checking account amount";

cin>>checking_account_amount;

cout<< " Enter checking account desc";

cin>>checking_amount_desc;

cout<<" Enter checking account transaction date in dd/mm/yy";

cin>>checking_account_transaction_date.date >> checking_account_transaction_date.month >> checking_account_transaction_date.year;

cout << " date Description Amount";

cout << "======== =========== ========";

cout <<checking_account_transaction_date.date<<"/";

cout<<checking_account_transaction_date.month<<"/";

cout<<checking_account_transaction_date.year<<" " <<checking_amount_desc<<" " << checking_account_amount;

break;

}

case 'b':

{

cout<< " Enter saving account balance";

cin>> saving_account_balance ;

cout<< " Enter saving account amount";

cin>>saving_account_amount;

cout<< " Enter saving account desc";

cin>>saving_account_desc;

cout<<" Enter saving account transaction date in dd/mm/yy";

cin>>saving_account_transaction_date.date >> saving_account_transaction_date.month >> saving_account_transaction_date.year;

cout << " date Description Amount";

cout << "======== =========== ========";

cout <<saving_account_transaction_date.date<<"/";

cout<<saving_account_transaction_date.month<<"/";

cout<<saving_account_transaction_date.year<<" "<<saving_account_desc<<" " << saving_account_amount;

break;

}

case 'c':

{

exit(1);

}

default:

{

break;

}

}

return 0;

}