The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 6 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
Create a class named myAccount with fields that hold an account number, the ownerA????1s name, and the account balance. Include a constructor that initializes each field to appropriate default values (supply your own values). Also include methods to get and set each of the data members (data/information hiding concept discussed in class). Include a method name deductMonthlyFee() that reduces the balance by $6.00. Include a static method name explainUnfairAcccountPolicy() that explains that the $12.00 service fee will be deducted each month (provide your best shot in explaining why you would be taking away the money from themA????1.you have to come up with some good explanation, since it is probably unfair and unjustified ?).
Create a class name TestMyAccount whose main method() declares three myAccount objects. Call a getData() method two times. Within the method, prompt the user for values for each field for a myAccount, and return a myAccount object to the main() method where it is assigned to one of the main()A????1s myAccount objects. (Hint: use the short lecture video on how to input the values to objects). Do not prompt the user for values for the third myAccount object, but let it continue to hold the default values. Then, in main() pass each myAccount object in turn to a showValues () (Hint: use the short lecture video on how to input the values to objects) method that displays the data, calls the method that deducts the nonthly fee, and displays the balance again. The showValues () method also ca
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n.P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll