Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c programming Scope: Files Banking application. Create a Start menu with the following options. Open Account Login Exit Create a Main menu with the

in c programming Scope: Files
Banking application.
Create a Start menu with the following options.
Open Account
Login
Exit
Create a Main menu with the following options:
Check Balance
Deposit
Withdraw
Show transactions
Exit
Create structure(s) to support the following information:
Owner name
Password
Account balance
Transaction Count
Transaction amount
Starting Balance
Ending Balance
Behavior:
Open Account
a. Get the user name & password, how much they are opening the account with.
Transaction Count starts at 0.
b. Launch Main menu, use this new account as context.
Login
a. Ask for account name and password.
b. Load the account details from the file with that account name.
i. If the file does not exist, or the password does not match, tell them invalid
username/password.
c. Launch the Main menu, use this account as the context.
Check Balance
a. Show current balance.
Deposit
a. Ask the user how much to deposit (positive amount only).
b. Add the amount to the balance and show the new balance.
c. Create a transaction record.Withdraw
a. Same as deposit, but reduce the balance.
Show Transactions
a. Show all the transactions for this account.
Transaction Behavior.
When making a transaction, that record is saved to the transactions file for that account.
Files:
There are two types of files.
Account Info
Holds onto information, such as balance and password
Transaction Details
Holds the transactions for a specific account.
File Structures (Recommended)
Account
Name.info
a. Password
b. Balance
Account Name.tran
a. Starting Balance
b. Transaction Amount
c. Ending Balance
Example Files
File name:
Bob.info
File contents:
P@s$W0rd
,155.25
File name:
Bob.tran
File contents:
,0100100
10020120
12040160
,160-4.75155.25
First value is the starting amount, 2nd is the transaction amount, third is the balance after. The
first record is the amount the account is opened with, so we started at 0, and opened the
account with $100. The 2 nd line we had $100, deposited $20, ending with $120.

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

Relational Database And SQL

Authors: Lucy Scott

3rd Edition

1087899699, 978-1087899695

More Books

Students also viewed these Databases questions