Consider a CheckingAccount class, which has the following fields: acctNo, name, balance, status, which represents an active or inactive account, minimum balance, and service charge. If the balance of a checking account falls below the minimum balance, it becomes inactive. No withdrawals may be made until balance is raised above the minimum balance, at which time the account becomes active again. Create appropriate consturctors, accessors, and mutators for the CheckingAccount class. The class should also include the following methods: · withdraw: a method that determines whether the account is inactive before a withdraw is made. (No withdraw will be allowed if the account is not active.) A withdrawal is then made. · deposit: a method that determines whether the account is inactive before a deposit is made. If the account is inactive and the deposit brings the balance over the minimum balance, the account becomes active gain. A deposit is then made. · getMonthlyStatement: a method that prints the account information at the end of each month. If the balance in the account were less than the minimum balance requirement, service fee would be charged. Use notepad or another text editor to create a text file named deposit.txt. The file should contain the following numbers, one per line:100.00124.0078.9237.45 Next, create a text file named withdraw.txt. The file should contain the following numbers, one per line:29.2378.12100.0048.7823.8750.2 The numbers in the deposit.txt are the amount of deposits that were made to a checking account during the month. The numbers in the withdraw.txt are the amount of withdraws that were made to a checking account during the month. Write a program that creates a CheckingAccount object, with starting balance 100. The program should read the values from the deposit.txt file and add them to the account balance. The program will also read the values from the withdraw.txt file and subtract them from the account balance. The program then displays the monthly statement of the account.
by admin | Sep 23, 2022 | Computer Science | 0 comments
Consider a CheckingAccount class, which has the following fields: Â acctNo, name, balance, status, which represents…
A professional Academic Service Provider
Distinguished Writers Ensure Accountability, Confidentiality, High-Quality, and Timely Execution
Distinguished Writers comprises of well-trained professionals striving to give our clients an awesome experience. We engage with our customers throughout the learning process to ensure they are comfortable with both their classwork and homework in order to achieve excellent grades. The team is well-balanced across different fields to suit our clients. Our diversified fields include article writing, thesis proposals, project management, coursework, essay writing, and dissertations among others.Fundamental Values
1. Accountability: The company values professionalism in all our undertakings. As such, we interact transparently with our customers.
2. Confidentiality: The company does not disclose anything to third-parties, and our interactions with customers remain confidential.
3. High-Quality The products are thoroughly proofread and counter-checked to ensure they meet the expected quality levels.
Guarantees
4. Quality is a Guarantee: Our writers are accurately matched with their area of expertise to ensure proper quality is maintained. We are also equipped with adequate software to guarantee error-free products.
5. Money Back Policy: As a client-oriented service, we offer 100% refund for the following: if we received a double payment from you; if you placed similar orders twice (or more) and paid for all of them; the writer has not been assigned; you asked to cancel the order within 20 minutes after placing it; an e-Check payment has been sent (the Dispute Manager will contact you accordingly). Other cases involve a comprehensive investigation by the Dispute Department and feedback given within 24 hours. We value our customers; therefore, the process will be fair, fast, and precise.
5 .Free Revisions: You can request for revisions at no additional cost. Nonetheless, this does not include complete change of the initial order instructions and if it is not past ten days upon your approval.
6. 24/7 Customer Support: Our support staff are always online to provide any assistance when needed
Ordering Process
NOTE: If you have any question, always contact our support team before the commencement of your project. ALL THE BEST”:
Recent Comments