Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please write the code for this problem i want to write this program in c# Assignment Description In this assignment, you'll implement MutualFund and EmployerSponsoredAccount

image text in transcribed

please write the code for this problem

image text in transcribed

i want to write this program in c#

Assignment Description In this assignment, you'll implement MutualFund and EmployerSponsoredAccount console app classes using inheritance. Why do we care? Inheritance and the polymorphism we get "for free" when we use inheritance are incredibly powerful object-oriented features. Almost any non-trivial game you bu 1/5 include some inheritance. Getting practice with inheritance in this assignment wil you implement more complicated class hierarchies in your games as you need them. Important: You MUST only add code as indicated by the comments in that file. If you don't, you're virtually guaranteed to fail all the test cases in the automated grader. Requirements For this assignment, you need to implement the MutualFund and EmployerSponsoredAccount classes as shown in the class diagram below: Investment Account Abstract Class Fields balance: float Properties Balance get:): float Methods AddMoney(float amount) : void InvestmentAccount float deposit) UpdateBalance:vold Savings Account Class - InvestmentAccount MutualFund Class InvestmentAccount Fields interestRate: float Methods Savings Account(float deposit, float interestRate) ToString: string UpdateBalance) : void Fields ServiceChargePercent: float Methods AddMoney(float amount) : void MutualFund (float deposit) ToString: string UpdateBalance:void Employer Sponsored Account Class + Mutual Fund Methods AddMoney(float amount) : void EmployerSponsored Account{float deposit) ToString(): string The Visual Studio project I provided to you contains the PersonalData class (with the constructor and properties unimplemented) and a Program class that tests the PersonalData class. You shouldn't change the Program.cs file at all (if you do, you'll

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

Readings In Database Systems

Authors: Michael Stonebraker

2nd Edition

0934613656, 9780934613651

More Books

Students also viewed these Databases questions

Question

List the components of the strategic management process. page 72

Answered: 1 week ago