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

29/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.

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:

Engineering Exam Guru
Smart Homework Helper
Quality Homework Helper
High Quality Assignments
Custom Coursework Service
Top Grade Tutor
Writer Writer Name Offer Chat
Engineering Exam Guru

ONLINE

Engineering Exam Guru

I have read your project details. I can do this within your deadline.

$120 Chat With Writer
Smart Homework Helper

ONLINE

Smart Homework Helper

I am known as Unrivaled Quality, Written to Standard, providing Plagiarism-free woork, and Always on Time

$99 Chat With Writer
Quality Homework Helper

ONLINE

Quality Homework Helper

I have read your project details. I can do this within your deadline.

$34 Chat With Writer
High Quality Assignments

ONLINE

High Quality Assignments

I have read and understood all your initial requirements, and I am very professional in this task.

$38 Chat With Writer
Custom Coursework Service

ONLINE

Custom Coursework Service

I have read your project details. I can do this within your deadline.

$169 Chat With Writer
Top Grade Tutor

ONLINE

Top Grade Tutor

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

$23 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

So far from the bamboo grove chapter - Periodic table scavenger hunt pdf - Information Assurance. - Jcb 4cx vs 3cx - Admin sadeempc com - BUSINESS ETHICS #1 2 pages - Why did brutus betray caesar - 3.3 repeating as a fraction - Drawing of a leaf - Reverse return piping diagram - A book publisher has fixed costs of - How does the height of each hill affect the coaster - Q 3.12: when journalizing a transaction, a short explanation is written - Payment method analysis - The great gatsby research paper thesis - It's not luck chapter summary - Ucl desktop ucl anywhere - The primary objective of financial accounting is to - Create a directory called iso in your home directory - Data Management Systems - Bcg matrix for airline industry - Iu plagiarism tutorial and test answers - God of war cliffs of madness spikes - Work Environment - Courier service database design - Question Bank for the Mid-Term Exams - What criteria concerning moral judgments should we agree with - Intelligence Testing Handout - Sourcing process at federal express case study answers - Analyzing managerial decisions bagby copy company - Egret and deer relationship - Consultant's analysis report on enterprise systems - Child family and community textbook - Gathering leaves question and answers - Slovenian armed forces equipment - Why do echidnas burrow - Turkish films in london cinemas - Sello motau theko capital - Do food safely assessment answers - Business plan project - Business Plan Draft - Ni usb 6211 matlab - Assignment - What is fasb codification system - Annotated Bibliography for Persuasive Speech - Ammu the god of small things - Maersk and hr management challenges in china case study - The adventures of huckleberry finn discussion questions - Compsis at a crossroads case study - A stock is expected to pay a dividend of $0.75 at the end of the year - Bjt dc analysis solved problems - Medical law and ethics ppt - Galaxies visible with binoculars - Alan carr drinks globe for sale - How do policies aid strategy implementation - How does cato die - Nortel accounting scandal - Kings lynn borough council - Narrative essay - Mrs gren science meaning - Amoeba sisters microscopes worksheet - Chapter 7 similarity chapter test form a answer key - Whitechapel club devil in the white city - Radioactive dating game lab worksheet answers - New wave cable tv channel guide - Tesco plc annual report 2016 - Audience centeredness means that public speakers should - Cultural variations in attachment - A knight's tale dance lesson - Paper-1 - Assignment help - Altium import changes from schematic to pcb - Literature a portable anthology 4th edition - HCP- 6710 Week 1 Assignment - Goodwin aged care jobs - Coca cola employee perq points - Situational leadership examples of leaders - Assignment -7-1 - Is social media a good forum for elected leaders - Policy and Ethics:Healthcare Quality - How to make a proscenium stage - Which of the following is a valid objective function for a linear programming problem? - HR:Discussion 10 - Miss universe results 2014 - Harvard referencing university of northampton - 153 fish joseph prince - Definition of intoxication nsw - Daphnia heart rate lab answers - Egadim - Program planning - How to calculate performance rating factor - Seeking Advice on a Marketing Essay Writing Service - Looking out looking in 14th edition chapter 1 pdf - Comparison essay - 108 names of lakshmi - QNT561 Week 1 Statistics Concepts and Descriptive Measures - Aon risk services v anu austlii - What were the major causes of the great depression - Branches of physical science ppt - Ride safe handbook wa