Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Intro to Programming in C-program 5 Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), math in

image text in transcribed

image text in transcribed

Intro to Programming in C-program 5 Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), math in C, condition PRACTICE, a while loop, file input and output processing, and programmer defined functions. 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 starting 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 accountBalance, char account); //SAME AS PROGRAM 4 //Input: one double and one character //declare, ask, and get the amount from the user and add it to the account //return the updated balance ('C', checking or 'S', savings) double DepositMoney(double accountBalance, char account); Use the template code provided to create the file with the checking and savings account balances in the file: Please use an app with only deposit Or quit MENU OPTIONS 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. Additional information: - One source code file (unformatted text) will be submitted - The file name must match the assignment (Iastname_program5.c) - The code should be tested and run on an IDE before it is uploaded onto Canvas - The code must be submitted on time in order to receive credit, do not wait until the last minute - Late submissions, or email submissions will not be accepted for grading - All programming assignments are individual work, sharing code is considered cheating Here are some tips and tricks that will help you with this assignment and make the experience more enjoyable. - Do not try to write out all the code at once. - For each new line of code written (2-3 lines), build it to see if it compiles successfully. - After any successful build, run the executable to see what happens so you know what to do next! If the program performs as expected, you can then move onto the next step If you try to write everything at once and build it successfully to find out it does not work properly, you will get frustrated trying to find out the logical error in your code! - Logical errors are the hardest to fix and identify in a program! - Start the assignment early! Do not wait last minute (the day of) to begin the assignment. - Do not make any assumptions, if you have any questions, please ask

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions