{"id":9428,"date":"2020-11-19T11:07:00","date_gmt":"2020-11-19T11:07:00","guid":{"rendered":"http:\/\/onlineclassesguru.com\/?p=9428"},"modified":"2020-11-19T11:07:00","modified_gmt":"2020-11-19T11:07:00","slug":"project-9-2-account-balance-calculator","status":"publish","type":"post","link":"https:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/","title":{"rendered":"Project 9-2 Account Balance Calculator"},"content":{"rendered":"<style type=\"text\/css\"><\/style><p>Project 9-2: Account Balance Calculator<br \/>\nCreate an application that calculates and displays the starting and ending monthly balances for a checking account and a savings account.<\/p>\n<p>Console<br \/>\nWelcome to the Account application<\/p>\n<p>Starting Balances<\/p>\n<p>Checking: $1,000.00<\/p>\n<p>Savings:\u00a0 $1,000.00<\/p>\n<p>Enter the transactions for the month<\/p>\n<p>Withdrawal or deposit? (w\/d): w<\/p>\n<p>Checking or savings? (c\/s): c<\/p>\n<p>Amount?: 500<\/p>\n<p>Continue? (y\/n): y<\/p>\n<p>Withdrawal or deposit? (w\/d): d<\/p>\n<p>Checking or savings? (c\/s): s<\/p>\n<p>Amount?: 200<\/p>\n<p>Continue? (y\/n): n<\/p>\n<p>Monthly Payments and Fees<\/p>\n<p>Checking fee:\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 $1.00<\/p>\n<p>Savings interest payment:\u00a0 $12.00<\/p>\n<p>Final Balances<\/p>\n<p>Checking: $499.00<\/p>\n<p>Savings:\u00a0 $1,212.00<\/p>\n<p>Specifications<br \/>\nCreate interfaces named Depositable, Withdrawable, and Balanceable that specify the methods that can be used to work with accounts. The Depositable interface should include this method:<\/p>\n<p>void deposit(double amount)<\/p>\n<p>The Withdrawable interface should include this method:<\/p>\n<p>void withdraw(double amount)<\/p>\n<p>And the Balanceable interface should include these methods:<\/p>\n<p>double getBalance()<br \/>\nvoid setBalance(double amount)<\/p>\n<p>Create a class named Account that implements all three of these interfaces. This class should include an instance variable for the balance.<\/p>\n<p>Create a class named CheckingAccount that inherits the Account class. This class should include an instance variable for the monthly fee that\u2019s initialized to the value that\u2019s passed to the constructor. This class should also include methods that subtract the monthly fee from the account balance and return the monthly fee.<\/p>\n<p>Create a class named SavingsAccount that inherits the Account class. This class should include instance variables for the monthly interest rate and the monthly interest payment. The monthly interest rate should be initialized to the value that\u2019s passed to the constructor. The monthly interest payment should be calculated by a method that applies the payment to the account balance. This class should also include a method that returns the monthly interest payment.<\/p>\n<p>Create a class named AccountBalanceApp that uses these objects to process and display deposits and withdrawals.<\/p>\n<p>Use the Console class presented in chapter 7 or an enhanced version of it to get and validate the user\u2019s entries. Don\u2019t allow the user to withdraw more than the current balance of an account.<\/p>\n<p><center><a href=\"http:\/\/onlineclassesguru.com\/orders\/ordernow\"><img decoding=\"async\" src=\"https:\/\/encrypted-tbn0.gstatic.com\/images?q=tbn:ANd9GcTyj99p60XCLyLk1htB7-1neRt8-2QdnenNlQ&usqp=CAU\"target=\"_http:\/\/onlineclassesguru.com\/orders\/ordernow\"\/><\/center><p>","protected":false},"excerpt":{"rendered":"<p>Project 9-2: Account Balance Calculator Create an application that calculates and displays the starting and ending monthly balances for a checking account and a savings account. Console Welcome to the Account application Starting Balances Checking: $1,000.00 Savings:\u00a0 $1,000.00 Enter the transactions for the month Withdrawal or deposit? (w\/d): w Checking or savings? (c\/s): c Amount?:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-9428","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v17.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Project 9-2 Account Balance Calculator - onlineclassesguru<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Project 9-2 Account Balance Calculator - onlineclassesguru\" \/>\n<meta property=\"og:description\" content=\"Project 9-2: Account Balance Calculator Create an application that calculates and displays the starting and ending monthly balances for a checking account and a savings account. Console Welcome to the Account application Starting Balances Checking: $1,000.00 Savings:\u00a0 $1,000.00 Enter the transactions for the month Withdrawal or deposit? (w\/d): w Checking or savings? (c\/s): c Amount?:...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/\" \/>\n<meta property=\"og:site_name\" content=\"onlineclassesguru\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-19T11:07:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin_admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/onlineclassesguru.com\/#website\",\"url\":\"https:\/\/onlineclassesguru.com\/\",\"name\":\"onlineclassesguru\",\"description\":\"Cheap Professional coursework and reaction papers help\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/onlineclassesguru.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/#webpage\",\"url\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/\",\"name\":\"Project 9-2 Account Balance Calculator - onlineclassesguru\",\"isPartOf\":{\"@id\":\"https:\/\/onlineclassesguru.com\/#website\"},\"datePublished\":\"2020-11-19T11:07:00+00:00\",\"dateModified\":\"2020-11-19T11:07:00+00:00\",\"author\":{\"@id\":\"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742\"},\"breadcrumb\":{\"@id\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/onlineclassesguru.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Project 9-2 Account Balance Calculator\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742\",\"name\":\"admin_admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/onlineclassesguru.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g\",\"caption\":\"admin_admin\"},\"url\":\"https:\/\/onlineclassesguru.com\/index.php\/author\/admin_admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Project 9-2 Account Balance Calculator - onlineclassesguru","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/","og_locale":"en_US","og_type":"article","og_title":"Project 9-2 Account Balance Calculator - onlineclassesguru","og_description":"Project 9-2: Account Balance Calculator Create an application that calculates and displays the starting and ending monthly balances for a checking account and a savings account. Console Welcome to the Account application Starting Balances Checking: $1,000.00 Savings:\u00a0 $1,000.00 Enter the transactions for the month Withdrawal or deposit? (w\/d): w Checking or savings? (c\/s): c Amount?:...","og_url":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/","og_site_name":"onlineclassesguru","article_published_time":"2020-11-19T11:07:00+00:00","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin_admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/onlineclassesguru.com\/#website","url":"https:\/\/onlineclassesguru.com\/","name":"onlineclassesguru","description":"Cheap Professional coursework and reaction papers help","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/onlineclassesguru.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/#webpage","url":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/","name":"Project 9-2 Account Balance Calculator - onlineclassesguru","isPartOf":{"@id":"https:\/\/onlineclassesguru.com\/#website"},"datePublished":"2020-11-19T11:07:00+00:00","dateModified":"2020-11-19T11:07:00+00:00","author":{"@id":"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742"},"breadcrumb":{"@id":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/onlineclassesguru.com\/index.php\/2020\/11\/19\/project-9-2-account-balance-calculator\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/onlineclassesguru.com\/"},{"@type":"ListItem","position":2,"name":"Project 9-2 Account Balance Calculator"}]},{"@type":"Person","@id":"https:\/\/onlineclassesguru.com\/#\/schema\/person\/1831fa4d28e47b468621cf27932f5742","name":"admin_admin","image":{"@type":"ImageObject","@id":"https:\/\/onlineclassesguru.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/429c8d043f7a770af242b0031e8b9f2b?s=96&d=mm&r=g","caption":"admin_admin"},"url":"https:\/\/onlineclassesguru.com\/index.php\/author\/admin_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/9428"}],"collection":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/comments?post=9428"}],"version-history":[{"count":1,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/9428\/revisions"}],"predecessor-version":[{"id":9429,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/posts\/9428\/revisions\/9429"}],"wp:attachment":[{"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/media?parent=9428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/categories?post=9428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/onlineclassesguru.com\/index.php\/wp-json\/wp\/v2\/tags?post=9428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}