Question: Add name, date, and a briet description here + #define CRT_SECURE_NO_WARNINGS //for Visual Studio compiler #pragma warnng (disable 6031) //ignore scanf warnings #include// for printf





Add name, date, and a briet description here + \#define CRT_SECURE_NO_WARNINGS //for Visual Studio compiler \#pragma warnng (disable 6031) //ignore scanf warnings \#include// for printf and scanf l/greets the user void Greeting () : I/Input: one double and one character //displays the balance of the account ('C', checking or ' S ', savings) void DisplayBalance (double accountBalance, char account); /IInput: one double and one character //declare, ask, and get the amount from the user and add it to the account l/return the updated balance ('C', checking or 's', savings) double Depositmoney (double accountBalance, char account); Int main () I double checkingBalance =120.67; double savingsBalance =423.12; / declare variables for the loop and for the account EILE inPtr; FILE'outPtr; /et the account //if (account =m 1) //1 //1 /ldeposit to checking //1f (account ==2 ) //1 //1 (1) / /else printf(" Innot recognized"); l/get the selection ' d ' or ' q ' (UPDATE for the while 1/1 / /save the new balances to the file at the end, right before return printf(" saving to the file n" ); fprintf(outptr, "sfln", checkingBalance); fprintf(outptr, "sfln", JavingsBalance); llclose the file pointers fclose (inPtI): fclose (outptr): return 0 ; 1 / /function defintions Instructions: For this assignment you will be implementing a program that simulates a banking application deposit ONLY with 2 accounts: checking and savings. The checking and savings balances will be "read from" and "written back" to a txt file called "balancesinput.txt" You should be familiar with program 4 before startimg program 5 Use the following programmer defined functions. DO NOT modify the Functions: //function prototypes - DO NOT MODIFY THE FUNCTIONS //greets the user void Greeting() //SAME AS PROGRAM 4 //Input: one double and one character //displays the balance of the account ('C', checking or 'S', savings) void Displaybalance(double accountbatance, char account): //SAME AS PROGRAM 4 //Input: one double and one character //declare, asi, and get the amount from the user and add it to the account //return the updated batance ('C', checking or 's', savings) double DepositMoney (double accountbatance, char account); Use the template code provided to create the fie with the checking and savings acceunt balances in the fie: int main() double chechingBatance =120.67; Use the template code provided to create the file with the checking and savings accounf balances in the file: 1. Initialize the balance in the checking and savings account with the template code provided 2. The program will welcome the user with a friendly message and instructions. 3. Display the balance in both accounts at the start of execution 4. Display the item options: (d) to DEPOSIT (q) to quit 5. The user will make the selection (d) or (q) 6. Remember that lowercase and uppercase letters are not the same 7. If the user selects ' d ' or ' D ' they with then have the option to select (1) for checking or (2) for savings 8. The purpose of this assignment is to practice, loops, conditions, functions, and files 9. More features to the bank app will be added in program 6 The user may continue to make deposits until entering (' Q ') to QUIT When the user selects (Q) or (q) the new balances will be saved to the file See the template code provided with the assignment
Step by Step Solution
There are 3 Steps involved in it
There are no images attached to your message Based on your provided question I will answer it direct... View full answer
Get step-by-step solutions from verified subject matter experts
