Question: // the rest of the main funciton code //display the balances //get the selection ' d ' or ' q ' (initialization for the while


// the rest of the main funciton code //display the balances //get the selection ' d ' or ' q ' (initialization for the while loop) //while (selection != ' Q ' \&\& selection != ' q ')//while loop test //{ //if ( selection == ' D ' || selection ==d ') //{ //et the account //if ( account ==1 ) //{ //\} // if ( account ==2) //{ // deposit to savings 1/3 //else printf(" not recognized"); //\} //get the selection ' d ' or ' q ' (UPDATE for the while loop) // save the new balances to the file at the end, right before return 0 printf(" Saving to the file ); fprintf(outPtr, "\%f ", checkingBalance); fprintf(outPtr, "\%f , savingsBalance); //close the file pointers fclose(inPtr); fclose(outPtr); return ; function defintions
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
