Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Bank account program in c++ using structure

28/03/2021 Client: saad24vbs Deadline: 2 Day

HW2: Bank Accounts - using Structures/Classes:

You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc..

Initially, the account information of existing customers is to be read into an array of BankAccount structures (or simple classes). The data members of the structure will include; first name, last name, social security number, account number, account type (Checking, Savings, or CD), and account balance. The bank can handle up to MAX_NUM accounts. Use the following function to read in the data values:

int read_accts(BankAccount account[], int max_accts);

This function fills up the array (up to max_accts) and returns the actual number of accounts read in (referred to as num_accts).

After initialization, print the initial database of accounts. Use function print_accts() described below.

The program then allows the user to select from the following menu of transactions:

Select one of the following: W - Withdrawal D - Deposit N - New account B - Balance I - Account Info X - Delete Account Q - Quit

Use the following function to produce the menu:

void menu();

This function only displays the menu. The main program then prompts the user for a selection. You should verify that the user has typed in a valid selection (otherwise print out an error message and repeat the prompt). Once the user has entered a selection, one of the following functions should be called to perform the specific transaction. At the end, before the user quits, the program prints the contents of the database.

int findacct(const BankAccount account[], int num_accts, int requested_account);

This function returns the index of requested_account in the array account if the account exists, and -1 if it doesn't. It is called by all the remaining functions.

void withdrawal(BankAccount account[], int num_accts);

This function prompts the user for the account number. If the account does not exist, it prints an error message. Otherwise, it asks the user for the amount of the withdrawal. If the account does not contain sufficient funds, an it prints an error message and does not perform the transaction.

void deposit(BankAccount account[], int num_accts);

This function prompts the user for the account number. If the account does not exist, it prints an error message. Otherwise, it asks the user for the amount of the deposit.

int new_acct(BankAccount account[], int num_accts);

This function prompts the user for a new account number. If the account already exists, it prints an error message. Otherwise, it adds the account to the database. The program then prompts the user to enter the new depositor’s first name, last name, social security number, the account type (Checking, Savings, or CD), and the initial opening deposit.. The function returns the new number of accounts in the database.

int delete_acct(BankAccount account[], int num_accts);

This function prompts the user for an account number. If the account does not exist, or if the account exists but has a non-zero balance, it prints an error message. Otherwise, it closes and deletes the account. It returns the new number of accounts.

void balance(const BankAccount account[], int num_accts);

This function prompts the user for an account number. If the account does not exist, it prints an error message. Otherwise, it prints the account balance.

void account_info(const BankAccount account[], int num_accts);

This function prompts the user for a social security number. If the account does not exist, it prints an error message. Otherwise, it prints the complete account information for the account requested .

void print_accts(const BankAccount account[], int num_accts);

This function prints a table of the complete account information for every active account.

Make sure to use enough test cases so as to completely test program functionality.

EXTRA CREDIT #1: Use nested structures/classes: 1. A BankAccount consists of a Depositor, an account number, an account type, and a balance. 2. A Depositor has a Name and a social security number. 3. A Name consists of first and last names.

EXTRA CREDIT #2: Use a constructor to initialize the data members of a new account (including the initial accounts of the database). Hint: a constructor is a function that can be called.

Notes: 1. All output must be file directed 2. Only output must go to the file - not interactive prompts. 3. No global variables are allowed 4. The program and all functions must be properly commented.

Page 1
Page 2

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Academic Mentor
A+GRADE HELPER
Accounting & Finance Master
Ideas & Innovations
Quality Assignments
Homework Master
Writer Writer Name Offer Chat
Academic Mentor

ONLINE

Academic Mentor

I will cover all the points which you have mentioned in your project details.

$20 Chat With Writer
A+GRADE HELPER

ONLINE

A+GRADE HELPER

Give me a chance, i will do this with my best efforts

$24 Chat With Writer
Accounting & Finance Master

ONLINE

Accounting & Finance Master

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$16 Chat With Writer
Ideas & Innovations

ONLINE

Ideas & Innovations

I will cover all the points which you have mentioned in your project details.

$19 Chat With Writer
Quality Assignments

ONLINE

Quality Assignments

I will cover all the points which you have mentioned in your project details.

$22 Chat With Writer
Homework Master

ONLINE

Homework Master

Hello, I an ranked top 10 freelancers in academic and contents writing. I can write and updated your personal statement with great quality and free of plagiarism

$27 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Eckardt electric tucker ga - Napoleon let china sleep - Year 8 english curriculum qld - Collapsible coiler reeler wire spooler - The ford pinto gas tank explosion - Square root of 170000 - How do you score 2 points in football - 4 methylcyclohexanol to 4 methylcyclohexene - Reliability vs accuracy vs validity - Course challenge khan academy - How to write a psychology case study apa - The absolute age of a rock is expressed with - Programmatic assessment paper - Certificate of title victoria australia - CLA2 Comprehensive Learning Assessment (CLA 2) Presentation - Caco3 2hcl cacl2 co2 h2o balanced equation - Robin hood case analysis answers - Barbie doll marge piercy tone - The secret life of walter mitty short story setting - Phet simulation circuit construction kit - A submarine left hawaii - Pricing strategy questions and answers - Signature assignment financial statement analysis and firm performance - Health Care Delivery Discussion 4 Discussion - Comprehension worksheets for grade 6 - 2al 3cuso4 al2 so4 3 3cu - How to write a leadership philosophy - Zappos case study - 1 2 kg in grams - Lab - Boston university regalia - Attached please find my - Head injury assessment form - Water by the spoonful characters - Huawei antenna catalogue 2019 - How to compare three poems - Katch mcardle formula tdee - Cost of merchandise sold equals beginning inventory - Dance on band gig guide - Comparing and Contrasting Two Websites - Swot analysis lululemon athletica inc - App dis - Fat and sat in pharma ppt - Iso iec ieee 29119 3 test plan template - NEED PROOF IN TURNITIN APA FORMART 25O WORDS - Discussion - Panadol 1-5 years dosage - Engineering industrial training unsw - Case - Odc4/2 - Synthes small frag inventory - Safran turney hospitality - Cloud Computing - Software as a service - Need help with this assignment - Our planet freshwater worksheet - Is distance a vector or scalar - General lab safety experiment 1 neutralization of acids and bases - Chemistry - My husband has madonna complex - Hutton rudby parish council minutes - Pablo neruda ode to the tomato summary - MATH - QNT561 Week 4 Payment Time Case Study - Wk 8 Follow up question - They say i say cliff notes - 12 imams family tree - Office redir microsoft rlid office help - Assignment 1 10/1/20 - Fundamental theorem of group homomorphism - Computer science a structured programming approach using c answers - Scunthorpe to brigg bus - Telstra shared data usage - How to make a salt bridge with filter paper - Beautiful brains by david dobbs - Psychotherapy with individual - Chu ni yi wai - Publix target market - Community DQ4 - Pseudo code notepad++ - Math3066 - The amount of filtrate produced per minute is called the - Accu chek multiclix instructions - Charlotte's web chapter 19 summary - Chapter 5 accounting for merchandising operations test bank - The upward slope of the supply curve reflects the - Occupational therapy practice framework domain and process - Coventry university netball team - Leadership in Nursing - Dell precision 490 memory configuration mismatch - Tizian venus von urbino bildanalyse - Epicurus reader pdf - Concepts of database management 8th edition chapter 5 answers - Jetmaster gas fire troubleshooting - Dual labour market theory barron and norris - Nursing article summary - Essay - Fire sprinkler control valve - Five areas of importance for timeliness and maximization of reimbursement - Hemocytometer lab report - Interview protocol for teachers