Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Intro to Programming in C -program 4 (larger program)

Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf and scanf), math in C, conditions, a while loop, and programmer defined functions.

#define CRT SECURE NO WARNINGS /for Visual studio compiler #includestdio.h> //for printf and scanf

Instructions:

checking and savings

For this assignment you will be implementing a program that simulates a banking application with 2 accounts:

Please use an app with 7 MENU OPTIONS

  1. Initialize the balance in the checking account to $276.20
  2. Initialize the balance in the savings account to $124.61
  3. The program will welcome the user with a friendly message and instructions.
  4. Display the balance in both accounts at the start of execution
  5. Display the item options:
  1. to DEPOSIT to CHECKING ACCOUNT
  2. to WITHDRAW from CHECKING ACCOUNT
  3. to DEPOSIT to SAVINGS ACCOUNT
  4. to WITHDRAW from SAVINGS ACCOUNT
  5. to display CHECKING ACCOUNT BALANCE
  6. to display SAVINGS ACCOUNT BALANCE

(-1) to QUIT

  1. The user will make the selection based on the item number
  2. The user may continue to use the bank app until entering (-1) to QUIT

Use the following programmer defined functions. DO NOT modify the Functions:

/greets the user void Greeting);

/ Displays the list of options available

prompts for the user's selection and returns that value int RunBankChoices();

//Input: one double and one character

//displays the balance of the account ('C', checking or 'S', savings) void DisplayBalance (double accountBalance, char account);

//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);

/Input: one double and one character //declare, ask, and get the amount from the user /subtract the money from the account if available //return the updated balance ('C', checking or 'S', savings) double WithdrawMoney (double accountBalance, char account);

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

Recommended Textbook for

Graph Databases In Action

Authors: Dave Bechberger, Josh Perryman

1st Edition

1617296376, 978-1617296376

More Books

Students also viewed these Databases questions