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

C++ program for bank transaction

06/12/2021 Client: muhammad11 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.

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:

Instant Assignment Writer
Study Master
Write My Coursework
Smart Accountants
Top Writing Guru
24/7 Assignment Help
Writer Writer Name Offer Chat
Instant Assignment Writer

ONLINE

Instant Assignment Writer

This project is my strength and I can fulfill your requirements properly within your given deadline. I always give plagiarism-free work to my clients at very competitive prices.

$35 Chat With Writer
Study Master

ONLINE

Study Master

I have worked on wide variety of research papers including; Analytical research paper, Argumentative research paper, Interpretative research, experimental research etc.

$34 Chat With Writer
Write My Coursework

ONLINE

Write My Coursework

As an experienced writer, I have extensive experience in business writing, report writing, business profile writing, writing business reports and business plans for my clients.

$48 Chat With Writer
Smart Accountants

ONLINE

Smart Accountants

I will provide you with the well organized and well research papers from different primary and secondary sources will write the content that will support your points.

$16 Chat With Writer
Top Writing Guru

ONLINE

Top Writing Guru

As per my knowledge I can assist you in writing a perfect Planning, Marketing Research, Business Pitches, Business Proposals, Business Feasibility Reports and Content within your given deadline and budget.

$31 Chat With Writer
24/7 Assignment Help

ONLINE

24/7 Assignment Help

I am an experienced researcher here with master education. After reading your posting, I feel, you need an expert research writer to complete your project.Thank You

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

Med surg remediation - Human impacts on the rainforest past and present bio 220 - The crucible essay conclusion - Predict my future bra size quiz - Project Scenario 5 Lessons Learned Retrospectives - Management accounting practical questions and answers - Problem-2 - How to critique a questionnaire - Evolving practice of nursing and patient care delivery models - Nani poem by alberto rios - Afi framework - Philosophy101 - Collective noun for eggs - How to write a tv show analysis - Properties of metals quiz - Wk4 DQ1 Discussion Question: CLO 1, CLO 3, CLO 5 - How to standardize an argument - Rmit interior design short course - How to develop diversity consciousness - Advantages of eclectic approach - Romans 8 29 30 suggests what about salvation - Jeff ely northwestern university - Put a tic tac in your mouth - Lab 8, Day 3: SDS-PAGE Data Analysis - Perkins restaurant online ordering - Environmental Science lab report - Vic police air wing tracker - Questions to ask a community health nurse - The rocky mountain district sales manager of rath publishing inc - Swinney v cc of northumbria - 4 scholarly sources 300 word count - I need 1500 words on Private Business School - Climbing stairs energy input and output three major types of government - Comparison essay - Business Ethics - Uber Case Study - Computer a history of the information machine pdf - Showdown in a paris theater answer key - How to build a moon board - Family planning clinic aberdare health centre - How far is earth from moon in miles - Fred hollows fndt reg rosebery aus - Chase bank watchung plaza nj - Exsum - Nhf audit and risk conference - Window on humanity 7th edition pdf - Catholic church aboriginal reconciliation - CJ 3200 MOD 5 Case Study - Zone 1 tram melbourne - A thin uniform rod of mass m - Discussion - C bus relay wiring diagram - Wk 4, IOP 480: 360 Leadership Evaluation - 9 10 dihydroanthracene 9 10 α β succinic acid anhydride - Computer forensics multiple choice questions - Total 500 words answer below no plagarism apa format atleast 2 references. - Hands on networking fundamentals answer key - 555 sawtooth generator circuit - Don clark leadership survey - Chapter 14 & 16 Real Estate - Api test in microbiology - Hua xia chinese culture school - Swot analysis of mcdonalds 2017 - 4.05 the great depression - Buffer replacement policies in dbms - The house with a clock in its walls sparknotes - Safer Opioid Use discussion 500 words due 9/7/2020 - Ellen wilkinson school for girls - Non literary text types - Max oxidation state of mn - HR_GLOB_FIN (U1_RPL) - Dichotomous key test - Magnetic flux density formula for circular coil - New york care information gateway - Remote Access Method Evaluation - 36 questions to get to know someone - Project air safety plan - Geomorphology - Stoichiometry of a precipitation reaction - Lundbeck korea managing an international growth engine - Week 4 Diversity and Leadership - Blackboard valpo edu - Health-care system - Cognitive behavioral therapy group settings versus family settings - 5s week 2 assignment BS - Bus incident management database - Adler v george 1964 - Ypte org uk rainforest - Module discussion - Harald mcpike hedge fund - Ucs kvm connection failed - Sony battling the marketing environment - Edgerron company is able to produce two products - Digital logic design traffic light - Five devices arranged in a mesh topology - Lower back pain soap note example - Introducing new coke case study - Co2 enters the inner spaces of the leaf through the - English language unit 4 notes - Material safety data sheet register template - Mis multimedia group inc