Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 438 Weeks Ago, 5 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Computer Science Posted 26 Apr 2017 My Price 3.00

Implement a class Account

Implement a class Account. An account has a balance, functions to add and withdraw money, and a function to query the current balance. Charge a $5 penalty if an attempt is made to withdraw more money than available in the account.

 

 

Answers

(8)
Status NEW Posted 26 Apr 2017 04:04 PM My Price 3.00

-----------

Attachments

file 1493224346-Answer.docx preview (98 words )
I-----------mpl-----------eme-----------nt -----------a c-----------las-----------s A-----------cco-----------unt-----------. A-----------n a-----------cco-----------unt----------- ha-----------s a----------- ba-----------lan-----------ce,----------- fu-----------nct-----------ion-----------s t-----------o a-----------dd -----------and----------- wi-----------thd-----------raw----------- mo-----------ney-----------, a-----------nd -----------a f-----------unc-----------tio-----------n t-----------o q-----------uer-----------y t-----------he -----------cur-----------ren-----------t b-----------ala-----------nce-----------. C-----------har-----------ge -----------a $-----------5 p-----------ena-----------lty----------- if----------- an----------- at-----------tem-----------pt -----------is -----------mad-----------e t-----------o w-----------ith-----------dra-----------w m-----------ore----------- mo-----------ney----------- th-----------an -----------ava-----------ila-----------ble----------- in----------- th-----------e a-----------cco-----------unt-----------. -----------Ans-----------wer----------- p-----------ubl-----------ic -----------cla-----------ss -----------Acc-----------oun-----------t {----------- ----------- pr-----------iva-----------te -----------int----------- ba-----------lan-----------ce;----------- ----------- pu-----------bli-----------c i-----------nt -----------get-----------Bal-----------anc-----------e()----------- { ----------- re-----------tur-----------n b-----------ala-----------nce-----------; -----------} -----------pub-----------lic----------- vo-----------id -----------set-----------Bal-----------anc-----------e(i-----------nt -----------bal-----------anc-----------e) -----------{ -----------thi-----------s.b-----------ala-----------nce----------- = -----------bal-----------anc-----------e; ----------- } ----------- -----------pub-----------lic----------- vo-----------id -----------add-----------Amo-----------unt-----------(in-----------t
Not Rated(0)