Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question: Foundations Of Computer Science COP 3014 Please provide copyable codes, in C++ Please include the... Foundations Of Computer Science COP 3014 Please provide copyable

Question: Foundations Of Computer Science COP 3014 Please provide copyable codes, in C++ Please include the...

Foundations Of Computer Science COP 3014

Please provide copyable codes, in C++

I NEED THIS AS FAST AS POSSIBLE, PLEASE DO IT ASAP.

Please include the following

project1main.cpp,

statistics.cpp,

statistics.h,

bankaccount.cpp,

bankaccount.h

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

********Here are the functions in UML format so you can copy-n-paste*********

add(value: double): void

get(i: int): double

set(i: int, data: double): void

sum(): double

average(): double

min(): double

max(): double

var(): double

stdev(): double

printStats(): void

image text in transcribedimage text in transcribed

******Here are the functions in UML format so you can copy-n-paste:*******

deposit(amount: double): void

withdrawal(amount: double): void

getBalance(): double

getTotalDeposits(): double

getTotalWithdrawals(): double

getAverageDeposit(): double

getAveragWithdrawal(): double

getMinDeposit(): double

getMinWithdrawal(): double

getMaxDeposit(): double

getMaxWithdrawa(): double

getVarOfDeposits(): double

getVarOfWithdrawal(): double

getStdevOfdeposits(): double

getStdevOfWithdrawal(): double

printAllStats(): void

#include "statistics.h"

class BankAccount{

public:

//...

private:

Statistics deposits; //the aggregation relationship

Statistics withdrawals; //the aggregation relationship

};

image text in transcribed

//code to copy at Statistics.h (PLEASE LOOK IT OVER AND EDIT):

#include #include using namespace std; class Statistics { private: double pdata[]; int index; int capacity; int size; public: Statistics() { index=0; } void add(double value) { pdata[index]=value; index++; } double get(int i) { return pdata[i]; } void set(int i, double data) { pdata[i]=data; } double sum() { double addition=0; for(int i=0;ipdata[i]) minval=pdata[i]; } return minval; } double max() { double maxval=pdata[0]; for(int i=1;i0) { if(getBalance()>=amount) { cout

Please provide copyable codes for the following (in C++):

project1main.cpp,

statistics.cpp,

statistics.h,

bankaccount.cpp,

bankaccount.h

Bank Account Specifications (Required) This Application stores every transaction as soon as a transaction happens. Only amount of the transaction is stored, the date of transaction or any other data is not stored by this class. When the application starts, it will ask the user about what is the maximum number of expected transactions. You will assume that the balance is zero when the program first starts. The application will allow the user to make deposits as long as the balance is not above $100,000 FDIC limit. The application will allow users to withdraw money as long as the withdrawal amount is no more than the available balance. Bank Account Specifications (Required) This Application stores every transaction as soon as a transaction happens. Only amount of the transaction is stored, the date of transaction or any other data is not stored by this class. When the application starts, it will ask the user about what is the maximum number of expected transactions. You will assume that the balance is zero when the program first starts. The application will allow the user to make deposits as long as the balance is not above $100,000 FDIC limit. The application will allow users to withdraw money as long as the withdrawal amount is no more than the available balance

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

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

10th Edition

0137916787, 978-0137916788

More Books

Students also viewed these Databases questions